nvue3 1.1.29 → 1.1.31
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.
- package/package.json +1 -1
- package/src/http.js +7 -2
- package/src/soft.js +4 -4
package/package.json
CHANGED
package/src/http.js
CHANGED
|
@@ -89,10 +89,14 @@ const _request = class {
|
|
|
89
89
|
uri = uri.slice(1);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
this.
|
|
92
|
+
this.uri = apiAlias(uri);
|
|
93
|
+
this.gateway = config.path;
|
|
94
|
+
this.api = config.path + this.uri;
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
api = '';
|
|
98
|
+
uri = '';
|
|
99
|
+
gateway = '';
|
|
96
100
|
method = 'POST';
|
|
97
101
|
code = 0;
|
|
98
102
|
message = '';
|
|
@@ -396,7 +400,8 @@ async function doRequest(request) {
|
|
|
396
400
|
|
|
397
401
|
return new Promise(async (resolve, reject) => {
|
|
398
402
|
request.timer.ready = Date.now();
|
|
399
|
-
|
|
403
|
+
await processor.preprocessing(request);
|
|
404
|
+
// request.header.put = await processor.header(request.api, request.request, request.method);
|
|
400
405
|
const contType = (request.method === 'UPLOAD') ? 'multipart/form-data' : 'application/json';
|
|
401
406
|
request.header.put['content-type'] = contType;
|
|
402
407
|
delete request.header.put['referer'];
|
package/src/soft.js
CHANGED
|
@@ -51,7 +51,7 @@ export default class {
|
|
|
51
51
|
const base = uni.getAppBaseInfo();
|
|
52
52
|
this.name = base.appName || 'unknow'; //应用名称
|
|
53
53
|
this.sdk = base.SDKVersion || '0.0.0'; //SDK主版本号
|
|
54
|
-
this.appid = base.appId; //这是uniAPP的ID,不是小程序的ID
|
|
54
|
+
this.appid = base.appId; //这是DCloud uniAPP的ID,不是小程序的ID
|
|
55
55
|
this.version = base.appVersion; //APP的版本号,也就是在manifest中设置的版本号,小程序为提交申核的版本号
|
|
56
56
|
this.theme = base.theme; //主体色
|
|
57
57
|
|
|
@@ -96,11 +96,11 @@ export default class {
|
|
|
96
96
|
const system = uni.getSystemInfoSync();
|
|
97
97
|
|
|
98
98
|
this.brand = (system.brand || 'unknow').toLowerCase(); //手机品牌
|
|
99
|
-
this.name = system.appName || system.name || 'unknow';
|
|
99
|
+
this.name = system.appName || system.name || 'unknow'; //应用名称,manifest中设的名称
|
|
100
100
|
this.model = system.model || 'unknow'; //手机品牌下的型号
|
|
101
101
|
this.devid = system.deviceId || 'unknow'; //设备唯一编码
|
|
102
102
|
this.sdk = system.SDKVersion || system.hostSDKVersion || '0.0.0'; //小程序主版本号
|
|
103
|
-
this.appid = system.appId;
|
|
103
|
+
this.appid = system.appId; //这是DCloud uniapp的appID
|
|
104
104
|
this.os = system.osName;
|
|
105
105
|
this.osver = system.osVersion;
|
|
106
106
|
this.version = system.appVersion; //APP的版本号,也就是在manifest中设置的版本号,小程序为提交申核的版本号
|
|
@@ -264,7 +264,7 @@ export default class {
|
|
|
264
264
|
plus.runtime.quit();
|
|
265
265
|
return;
|
|
266
266
|
}
|
|
267
|
-
|
|
267
|
+
|
|
268
268
|
uni.showToast({
|
|
269
269
|
title,
|
|
270
270
|
icon: 'none'
|