| | |
| | | import { encryptData } from '@/utils/decryption.js' |
| | | const install = (Vue, vm) => { |
| | | |
| | | uni.$u.http.setConfig((config) => { |
| | |
| | | return config; |
| | | }) |
| | | |
| | | let login = (data = {}) => vm.$u.http.post('web/member/loginH5', data); // 登录 |
| | | let login = (data = {}) => vm.$u.http.post('web/member/loginH5', encryptData(data)); // 登录 |
| | | let categoryTree = (params = {}) => vm.$u.http.get('web/category/categoryTree', { params }); // 查询树 |
| | | let workOrderCreate = (data = {}) => vm.$u.http.post('web/workOrder/create', data); // 创建工单 |
| | | let upload = (data = {}) => vm.$u.http.post('web/public/upload', data); // 上传 |
| | |
| | | import { decryptedData } from '@/utils/decryption.js' |
| | | const install = (Vue, vm) => { |
| | | // 是否正在刷新的标记 |
| | | let isRefreshing = false |
| | |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | if (response.data.message) { |
| | | const tm = response.data.message |
| | | const list = tm.split(' ') |
| | | let msg = list[0] |
| | | if (list.length > 1 && response.data.data) { |
| | | msg = decryptedData(list[1], list[0]) |
| | | response.data.data = decryptedData(list[1], response.data.data) |
| | | response.data.message = msg |
| | | } |
| | | } |
| | | return response.data; |
| | | }, (response) => { |
| | | return Promise.reject(response) |
| | |
| | | private static JSONObject json = new JSONObject(); |
| | | |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | private static QywxUtil qyUtil; |
| | | @Value("${qiwei.serviceurl}") |
| | | private static String qiweiUrl; |
| | | private String qiweiUrl; |
| | | |
| | | @PostConstruct |
| | | private void init() { |
| | | qyUtil = this; |
| | | systemDictDataBiz = qyUtil.systemDictDataBiz; |
| | | // QywxUtil.qiweiUrl = serviceurl; |
| | | } |
| | | |
| | | |
| | |
| | | String res = null; |
| | | try { |
| | | Map<String,String> headers = new HashMap<>(); |
| | | res = HttpsUtil.postJson(qiweiUrl+url,param); |
| | | res = HttpsUtil.postJson(qyUtil.qiweiUrl+url,param); |
| | | QywxBaseResponse result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,name); |
| | | return result; |
| | |
| | | String res = null; |
| | | try { |
| | | Map<String,String> headers = new HashMap<>(); |
| | | res = HttpsUtil.postJson(qiweiUrl+url,param); |
| | | res = HttpsUtil.postJson(qyUtil.qiweiUrl+url,param); |
| | | T result = JSONObject.parseObject(res, typeReference.getType()); |
| | | // logResult(result,name); |
| | | return result; |