ucservice 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25555,8 +25555,7 @@ let account = {
25555
25555
  message: '',
25556
25556
  systemTime: '',
25557
25557
  //yyyy-MM-dd HH:mm:ss
25558
- data: '' //返回更新成功的ID
25559
-
25558
+ data: ''
25560
25559
  }
25561
25560
  },
25562
25561
  deleteAccountNet: {
@@ -29929,6 +29928,23 @@ let $ = __webpack_require__("1157");
29929
29928
  const loadJson = function (url, param, backSuccfn, async, method, headers) {
29930
29929
  method = method ? method : 'POST';
29931
29930
  async = async == undefined ? true : async;
29931
+
29932
+ for (key in param) {
29933
+ //检测手机号码, 外地号码头部(非杭州)加00,本地号码加0
29934
+ if (/_phone01$/.test(key)) {
29935
+ let tel = key.replace(/_phone01$/, "");
29936
+
29937
+ if (param[key] == 0) {
29938
+ //外地号码
29939
+ param[tel] = "00" + param[tel];
29940
+ } else {
29941
+ param[tel] = "0" + param[tel];
29942
+ }
29943
+
29944
+ delete param[key];
29945
+ }
29946
+ }
29947
+
29932
29948
  let ajaxContent = {
29933
29949
  'method': method,
29934
29950
  'url': url,
@@ -31084,7 +31100,7 @@ const messageOp = sip => {
31084
31100
  if (ret.code == 0) {
31085
31101
  resolve(ret);
31086
31102
  } else {
31087
- console.log("删除短信失败", ret.code);
31103
+ console.log("查询接收短信列表失败", ret.code);
31088
31104
  reject(ret.code);
31089
31105
  }
31090
31106
  }, '', net.method);
@@ -31187,7 +31203,7 @@ const recordOp = sip => {
31187
31203
  if (ret.code == 0) {
31188
31204
  resolve(ret);
31189
31205
  } else {
31190
- console.log("分页查询通知音记录列表失败", ret.code);
31206
+ console.log("上传通知音失败", ret.code);
31191
31207
  reject(ret.code);
31192
31208
  }
31193
31209
  }, '', net.method);
Binary file