issuse message

This commit is contained in:
xiaojia.dxj
2019-08-06 18:58:52 +08:00
parent 1e7a78790d
commit 8670d89c24
5 changed files with 32 additions and 23 deletions

View File

@ -57,12 +57,11 @@ class DataUtils {
// 一键反馈
static Future feedback(Map<String, String> params, context) async {
var response = await NetUtils.post(Api.FEEDBACK, params);
// print(response);
if (response['status'] == 401 && response['message'] == '请先登录') {
Application.router.navigateTo(context, '${Routes.loginPage}',
transition: TransitionType.nativeModal);
}
return response;
return response['success'];
}
//设置主题颜色