Skip to content

Commit a3c953d

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)