From 3810e9ac04693223c3f554644355a1a2dc535686 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Tue, 11 May 2021 16:26:39 +0800 Subject: [PATCH] update path --- lib/models/user/user_info_model.dart | 3 +++ lib/utils/network/manage_func.dart | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/models/user/user_info_model.dart b/lib/models/user/user_info_model.dart index 06f7418..ac7960b 100644 --- a/lib/models/user/user_info_model.dart +++ b/lib/models/user/user_info_model.dart @@ -16,6 +16,9 @@ class UserInfoModel { ///操作权限(借还管理) bool get canOperation => jurisdiction.contains(57); + ///管家 + bool get manager => canSendTicket && canPickUpTicket; + UserInfoModel({this.id, this.roleId, this.nickName, this.jurisdiction}); UserInfoModel.fromJson(Map json) { diff --git a/lib/utils/network/manage_func.dart b/lib/utils/network/manage_func.dart index 967f596..21dcc65 100644 --- a/lib/utils/network/manage_func.dart +++ b/lib/utils/network/manage_func.dart @@ -19,8 +19,7 @@ class ManageFunc { ///派单类型 static Future dispatchListDetailType() async { Response response = await NetUtil().dio.get( - 'http://test.akuhotel.com:8804/IntelligentCommunity' + - API.manage.dispatchListDetailType); + '${API.host}/IntelligentCommunity' + API.manage.dispatchListDetailType); return response.data as List; }