| | |
| | | /// <param name="logic">当前对象</param> |
| | | /// <param name="isTip">是否要提示</param> |
| | | /// <returns></returns> |
| | | public ResponsePackNew SwitchLogic(Logic logic,bool isTip=false) |
| | | public ResponsePackNew EnableLogic(Logic logic,bool isTip=false) |
| | | { |
| | | var jArray = new JArray { }; |
| | | var job = new JObject { { "userLogicId", logic.userLogicId }, { "enable", logic.enable } }; |
| | |
| | | if (responsePackNew.Code == StateCode.TOKEN_EXPIRED) |
| | | { |
| | | RefreshToken(); |
| | | SwitchLogic(logic, isTip); |
| | | EnableLogic(logic, isTip); |
| | | } |
| | | if (Check(responsePackNew, isTip) == false) |
| | | { |
| | | return null; |
| | | } |
| | | return responsePackNew; |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 自动化地理围栏状态上报 |
| | | /// </summary> |