Skip to content

Commit 90e0081

Browse files
authored
solve the problem that api 422 exception
change the request method from `post` to `get`
1 parent afbb30e commit 90e0081

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/common/dao/UserDao.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class UserDao {
3838
};
3939
HttpManager.clearAuthorization();
4040

41-
var res = await HttpManager.netFetch(Address.getAuthorization(), json.encode(requestParams), null, new Options(method: "post"));
41+
var res = await HttpManager.netFetch(Address.getAuthorization(), json.encode(requestParams), null, new Options(method: "get"));
4242
var resultData = null;
4343
if (res != null && res.result) {
4444
await LocalStorage.save(Config.PW_KEY, password);

0 commit comments

Comments
 (0)