@neysf/qiyu-web-sdk 1.1.5 → 1.1.6
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/dist/index.js +3 -3
- package/es/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27,11 +27,11 @@ YSF.init = function (appKey, objParams, env) {
|
|
|
27
27
|
if (!appKey) {
|
|
28
28
|
reject(new Error('appKey必填'));
|
|
29
29
|
}
|
|
30
|
-
if (Object.prototype.toString.call(objParams) !== '[object Object]') {
|
|
31
|
-
reject(new Error('参数类型错误,第二个参数应该是object'));
|
|
32
|
-
}
|
|
33
30
|
var ret = [];
|
|
34
31
|
if (objParams) {
|
|
32
|
+
if (Object.prototype.toString.call(objParams) !== "[object Object]") {
|
|
33
|
+
reject(new Error("参数类型错误,第二个参数应该是object"));
|
|
34
|
+
}
|
|
35
35
|
for (var item in objParams) {
|
|
36
36
|
ret.push(item + "=" + objParams[item]);
|
|
37
37
|
}
|
package/es/index.js
CHANGED
|
@@ -21,11 +21,11 @@ YSF.init = function (appKey, objParams, env) {
|
|
|
21
21
|
if (!appKey) {
|
|
22
22
|
reject(new Error('appKey必填'));
|
|
23
23
|
}
|
|
24
|
-
if (Object.prototype.toString.call(objParams) !== '[object Object]') {
|
|
25
|
-
reject(new Error('参数类型错误,第二个参数应该是object'));
|
|
26
|
-
}
|
|
27
24
|
var ret = [];
|
|
28
25
|
if (objParams) {
|
|
26
|
+
if (Object.prototype.toString.call(objParams) !== '[object Object]') {
|
|
27
|
+
reject(new Error('参数类型错误,第二个参数应该是object'));
|
|
28
|
+
}
|
|
29
29
|
for (var item in objParams) {
|
|
30
30
|
ret.push(item + "=" + objParams[item]);
|
|
31
31
|
}
|