Skip to content

Commit c81a866

Browse files
authored
Merge pull request #264 from ufolux/patch-1
solve the problem that api 422 exception
2 parents de41a6d + a3c953d commit c81a866

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)