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; }