public void onClick(DialogInterface dialog, int whichButton) {
                    String cardNumber = input.getText().toString();
                    LCQuery<LCObject> query = new LCQuery<>("CardInfo");
                    query.whereEqualTo("Card", cardNumber);
                    query.findInBackground(new FindCallback<LCObject>() {
                        @Override
                        public void done(List<LCObject> list, LCException e) {
                            if (e == null) {
                                if (list.size() > 0) {
                                    LCObject cardInfo = list.get(0);
                                    int resetTimes = cardInfo.getInt("ResetTimes");
                                    if (resetTimes < 3) {
                                        if (resetTimes == 0) {
                                            resetTimes = 1;
                                        } else {
                                            resetTimes += 1;
                                        }
                                        cardInfo.put("ResetTimes", resetTimes);
                                        cardInfo.put("Mac", "");
                                        cardInfo.saveInBackground();
                                    } else {
                                        new AlertDialog.Builder(context)
                                                .setTitle("Error")
                                                .setMessage("Reset times reached limit.")
                                                .setPositiveButton("OK", null)
                                                .show();
                                    }
                                }
                            }
                        }
                    });
                }

出现'findInBackground(cn.leancloud.LCUser)' in 'cn.leancloud.LCQuery' cannot be applied to '(anonymous cn.leancloud.callback.FindCallback
这段代码原来是在com.avos.avoscloud上的,改为cn.leancloud报错了,请问一下怎么修改呢

你好,可以这里的实例代码哦:
https://leancloud.cn/docs/leanstorage_guide-java.html#hash8603171

LCQuery<LCObject> query = new LCQuery<>("Student");
query.whereEqualTo("lastName", "Smith");
query.findInBackground().subscribe(new Observer<List<LCObject>>() {
    public void onSubscribe(Disposable disposable) {}
    public void onNext(List<LCObject> students) {
        // students 是包含满足条件的 Student 对象的数组
    }
    public void onError(Throwable throwable) {}
    public void onComplete() {}
});