Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BmobBatch#批量操作方法错误导致无法使用 #22

Open
kaina404 opened this issue Sep 3, 2020 · 0 comments
Open

BmobBatch#批量操作方法错误导致无法使用 #22

kaina404 opened this issue Sep 3, 2020 · 0 comments

Comments

@kaina404
Copy link

kaina404 commented Sep 3, 2020

data_plugin: ^0.0.18

Bmob的批量处理代码有bug,如下:

  • 问题1:
Future<List> process(String method, List<BmobObject> bmobObjects) async {
    List list = List();
    Map params = Map();

    SharedPreferences prefs = await SharedPreferences.getInstance();
    String userJson = prefs.get("user");
    print(userJson);
    BmobUser bmobUser;
    if (userJson != null) {
// 这里解析出来的是map类型,不能直接赋值给BmobUser
      bmobUser = json.decode(userJson);
    }
..........
}

上述问题,我已经本地修复了:

if (userJson != null) {
      var jsonSp = json.decode(userJson);
      bmobUser = BmobUser.fromJson(jsonSp);
    }

但是我看你们这边的接口貌似有问题,如下:

  • 问题2:
    我执行单个数据的插入时是没问题的,但是在使用该批量操作方法时会报错如下:“签名安全验证错误”

求解~~~

@kaina404 kaina404 changed the title BmobBatch#批量操作方法致命错误导致无法使用 BmobBatch#批量操作方法错误导致无法使用 Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant