Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wzj-java
uni-app
提交
6a6de806
U
uni-app
项目概览
wzj-java
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
6a6de806
编写于
3月 11, 2021
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build: runtime
上级
1ac68256
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
34 addition
and
34 deletion
+34
-34
packages/uni-app-plus/dist/index.js
packages/uni-app-plus/dist/index.js
+3
-3
packages/uni-mp-alipay/dist/index.js
packages/uni-mp-alipay/dist/index.js
+4
-4
packages/uni-mp-baidu/dist/index.js
packages/uni-mp-baidu/dist/index.js
+5
-5
packages/uni-mp-kuaishou/dist/index.js
packages/uni-mp-kuaishou/dist/index.js
+4
-4
packages/uni-mp-qq/dist/index.js
packages/uni-mp-qq/dist/index.js
+4
-4
packages/uni-mp-toutiao/dist/index.js
packages/uni-mp-toutiao/dist/index.js
+4
-4
packages/uni-mp-weixin/dist/index.js
packages/uni-mp-weixin/dist/index.js
+4
-4
packages/uni-quickapp-native/dist/vue.dev.js
packages/uni-quickapp-native/dist/vue.dev.js
+1
-1
packages/uni-quickapp-native/dist/vue.prod.js
packages/uni-quickapp-native/dist/vue.prod.js
+1
-1
packages/uni-quickapp-webview/dist/index.js
packages/uni-quickapp-webview/dist/index.js
+4
-4
未找到文件。
packages/uni-app-plus/dist/index.js
浏览文件 @
6a6de806
...
@@ -381,7 +381,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
...
@@ -381,7 +381,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
}
}
if
(
!
keyOption
)
{
// 不支持的参数
if
(
!
keyOption
)
{
// 不支持的参数
console
.
warn
(
`
app-plus
${
methodName
}
暂不支持
${
key
}
`
);
console
.
warn
(
`
The '
${
methodName
}
' method of platform 'app-plus' does not support option '
${
key
}
'
`
);
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
toArgs
[
keyOption
]
=
fromArgs
[
key
];
toArgs
[
keyOption
]
=
fromArgs
[
key
];
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
...
@@ -416,7 +416,7 @@ function wrapper (methodName, method) {
...
@@ -416,7 +416,7 @@ function wrapper (methodName, method) {
const
protocol
=
protocols
[
methodName
];
const
protocol
=
protocols
[
methodName
];
if
(
!
protocol
)
{
// 暂不支持的 api
if
(
!
protocol
)
{
// 暂不支持的 api
return
function
()
{
return
function
()
{
console
.
error
(
`
app-plus 暂不支持
${
methodName
}
`
);
console
.
error
(
`
Platform 'app-plus' does not support '
${
methodName
}
'.
`
);
}
}
}
}
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
...
@@ -463,7 +463,7 @@ function createTodoApi (name) {
...
@@ -463,7 +463,7 @@ function createTodoApi (name) {
complete
complete
})
{
})
{
const
res
=
{
const
res
=
{
errMsg
:
`
${
name
}
:fail
:暂不支持
${
name
}
方法
`
errMsg
:
`
${
name
}
:fail
method '
${
name
}
' not supported
`
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
...
...
packages/uni-mp-alipay/dist/index.js
浏览文件 @
6a6de806
...
@@ -1035,7 +1035,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
...
@@ -1035,7 +1035,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
}
}
if
(
!
keyOption
)
{
// 不支持的参数
if
(
!
keyOption
)
{
// 不支持的参数
console
.
warn
(
`
支付宝小程序
${
methodName
}
暂不支持
${
key
}
`
);
console
.
warn
(
`
The '
${
methodName
}
' method of platform '支付宝小程序' does not support option '
${
key
}
'
`
);
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
toArgs
[
keyOption
]
=
fromArgs
[
key
];
toArgs
[
keyOption
]
=
fromArgs
[
key
];
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
...
@@ -1070,7 +1070,7 @@ function wrapper (methodName, method) {
...
@@ -1070,7 +1070,7 @@ function wrapper (methodName, method) {
const
protocol
=
protocols
[
methodName
];
const
protocol
=
protocols
[
methodName
];
if
(
!
protocol
)
{
// 暂不支持的 api
if
(
!
protocol
)
{
// 暂不支持的 api
return
function
()
{
return
function
()
{
console
.
error
(
`
支付宝小程序 暂不支持
${
methodName
}
`
);
console
.
error
(
`
Platform '支付宝小程序' does not support '
${
methodName
}
'.
`
);
}
}
}
}
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
...
@@ -1117,7 +1117,7 @@ function createTodoApi (name) {
...
@@ -1117,7 +1117,7 @@ function createTodoApi (name) {
complete
complete
})
{
})
{
const
res
=
{
const
res
=
{
errMsg
:
`
${
name
}
:fail
:暂不支持
${
name
}
方法
`
errMsg
:
`
${
name
}
:fail
method '
${
name
}
' not supported
`
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
...
@@ -1151,7 +1151,7 @@ function getProvider ({
...
@@ -1151,7 +1151,7 @@ function getProvider ({
isFn
(
success
)
&&
success
(
res
);
isFn
(
success
)
&&
success
(
res
);
}
else
{
}
else
{
res
=
{
res
=
{
errMsg
:
'
getProvider:fail
:服务[
'
+
service
+
'
]不存在
'
errMsg
:
'
getProvider:fail
service not found
'
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
}
}
...
...
packages/uni-mp-baidu/dist/index.js
浏览文件 @
6a6de806
...
@@ -703,7 +703,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
...
@@ -703,7 +703,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
}
}
if
(
!
keyOption
)
{
// 不支持的参数
if
(
!
keyOption
)
{
// 不支持的参数
console
.
warn
(
`
百度小程序
${
methodName
}
暂不支持
${
key
}
`
);
console
.
warn
(
`
The '
${
methodName
}
' method of platform '百度小程序' does not support option '
${
key
}
'
`
);
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
toArgs
[
keyOption
]
=
fromArgs
[
key
];
toArgs
[
keyOption
]
=
fromArgs
[
key
];
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
...
@@ -738,7 +738,7 @@ function wrapper (methodName, method) {
...
@@ -738,7 +738,7 @@ function wrapper (methodName, method) {
const
protocol
=
protocols
[
methodName
];
const
protocol
=
protocols
[
methodName
];
if
(
!
protocol
)
{
// 暂不支持的 api
if
(
!
protocol
)
{
// 暂不支持的 api
return
function
()
{
return
function
()
{
console
.
error
(
`
百度小程序 暂不支持
${
methodName
}
`
);
console
.
error
(
`
Platform '百度小程序' does not support '
${
methodName
}
'.
`
);
}
}
}
}
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
...
@@ -785,7 +785,7 @@ function createTodoApi (name) {
...
@@ -785,7 +785,7 @@ function createTodoApi (name) {
complete
complete
})
{
})
{
const
res
=
{
const
res
=
{
errMsg
:
`
${
name
}
:fail
:暂不支持
${
name
}
方法
`
errMsg
:
`
${
name
}
:fail
method '
${
name
}
' not supported
`
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
...
@@ -819,7 +819,7 @@ function getProvider ({
...
@@ -819,7 +819,7 @@ function getProvider ({
isFn
(
success
)
&&
success
(
res
);
isFn
(
success
)
&&
success
(
res
);
}
else
{
}
else
{
res
=
{
res
=
{
errMsg
:
'
getProvider:fail
:服务[
'
+
service
+
'
]不存在
'
errMsg
:
'
getProvider:fail
service not found
'
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
}
}
...
@@ -969,7 +969,7 @@ function requestPayment (params) {
...
@@ -969,7 +969,7 @@ function requestPayment (params) {
}
}
if
(
parseError
)
{
if
(
parseError
)
{
params
.
fail
&&
params
.
fail
({
params
.
fail
&&
params
.
fail
({
errMsg
:
'
requestPayment:fail
:
参数 orderInfo 数据结构不正确,参考:https://uniapp.dcloud.io/api/plugins/payment?id=orderinfo
'
errMsg
:
'
requestPayment:fail 参数 orderInfo 数据结构不正确,参考:https://uniapp.dcloud.io/api/plugins/payment?id=orderinfo
'
});
});
}
else
{
}
else
{
swan
.
requestPolymerPayment
(
params
);
swan
.
requestPolymerPayment
(
params
);
...
...
packages/uni-mp-kuaishou/dist/index.js
浏览文件 @
6a6de806
...
@@ -593,7 +593,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
...
@@ -593,7 +593,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
}
}
if
(
!
keyOption
)
{
// 不支持的参数
if
(
!
keyOption
)
{
// 不支持的参数
console
.
warn
(
`
快手小程序
${
methodName
}
暂不支持
${
key
}
`
);
console
.
warn
(
`
The '
${
methodName
}
' method of platform '快手小程序' does not support option '
${
key
}
'
`
);
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
toArgs
[
keyOption
]
=
fromArgs
[
key
];
toArgs
[
keyOption
]
=
fromArgs
[
key
];
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
...
@@ -628,7 +628,7 @@ function wrapper (methodName, method) {
...
@@ -628,7 +628,7 @@ function wrapper (methodName, method) {
const
protocol
=
protocols
[
methodName
];
const
protocol
=
protocols
[
methodName
];
if
(
!
protocol
)
{
// 暂不支持的 api
if
(
!
protocol
)
{
// 暂不支持的 api
return
function
()
{
return
function
()
{
console
.
error
(
`
快手小程序 暂不支持
${
methodName
}
`
);
console
.
error
(
`
Platform '快手小程序' does not support '
${
methodName
}
'.
`
);
}
}
}
}
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
...
@@ -675,7 +675,7 @@ function createTodoApi (name) {
...
@@ -675,7 +675,7 @@ function createTodoApi (name) {
complete
complete
})
{
})
{
const
res
=
{
const
res
=
{
errMsg
:
`
${
name
}
:fail
:暂不支持
${
name
}
方法
`
errMsg
:
`
${
name
}
:fail
method '
${
name
}
' not supported
`
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
...
@@ -709,7 +709,7 @@ function getProvider ({
...
@@ -709,7 +709,7 @@ function getProvider ({
isFn
(
success
)
&&
success
(
res
);
isFn
(
success
)
&&
success
(
res
);
}
else
{
}
else
{
res
=
{
res
=
{
errMsg
:
'
getProvider:fail
:服务[
'
+
service
+
'
]不存在
'
errMsg
:
'
getProvider:fail
service not found
'
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
}
}
...
...
packages/uni-mp-qq/dist/index.js
浏览文件 @
6a6de806
...
@@ -661,7 +661,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
...
@@ -661,7 +661,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
}
}
if
(
!
keyOption
)
{
// 不支持的参数
if
(
!
keyOption
)
{
// 不支持的参数
console
.
warn
(
`
QQ小程序
${
methodName
}
暂不支持
${
key
}
`
);
console
.
warn
(
`
The '
${
methodName
}
' method of platform 'QQ小程序' does not support option '
${
key
}
'
`
);
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
toArgs
[
keyOption
]
=
fromArgs
[
key
];
toArgs
[
keyOption
]
=
fromArgs
[
key
];
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
...
@@ -696,7 +696,7 @@ function wrapper (methodName, method) {
...
@@ -696,7 +696,7 @@ function wrapper (methodName, method) {
const
protocol
=
protocols
[
methodName
];
const
protocol
=
protocols
[
methodName
];
if
(
!
protocol
)
{
// 暂不支持的 api
if
(
!
protocol
)
{
// 暂不支持的 api
return
function
()
{
return
function
()
{
console
.
error
(
`
QQ小程序 暂不支持
${
methodName
}
`
);
console
.
error
(
`
Platform 'QQ小程序' does not support '
${
methodName
}
'.
`
);
}
}
}
}
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
...
@@ -743,7 +743,7 @@ function createTodoApi (name) {
...
@@ -743,7 +743,7 @@ function createTodoApi (name) {
complete
complete
})
{
})
{
const
res
=
{
const
res
=
{
errMsg
:
`
${
name
}
:fail
:暂不支持
${
name
}
方法
`
errMsg
:
`
${
name
}
:fail
method '
${
name
}
' not supported
`
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
...
@@ -777,7 +777,7 @@ function getProvider ({
...
@@ -777,7 +777,7 @@ function getProvider ({
isFn
(
success
)
&&
success
(
res
);
isFn
(
success
)
&&
success
(
res
);
}
else
{
}
else
{
res
=
{
res
=
{
errMsg
:
'
getProvider:fail
:服务[
'
+
service
+
'
]不存在
'
errMsg
:
'
getProvider:fail
service not found
'
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
}
}
...
...
packages/uni-mp-toutiao/dist/index.js
浏览文件 @
6a6de806
...
@@ -753,7 +753,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
...
@@ -753,7 +753,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
}
}
if
(
!
keyOption
)
{
// 不支持的参数
if
(
!
keyOption
)
{
// 不支持的参数
console
.
warn
(
`
头条小程序
${
methodName
}
暂不支持
${
key
}
`
);
console
.
warn
(
`
The '
${
methodName
}
' method of platform '头条小程序' does not support option '
${
key
}
'
`
);
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
toArgs
[
keyOption
]
=
fromArgs
[
key
];
toArgs
[
keyOption
]
=
fromArgs
[
key
];
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
...
@@ -788,7 +788,7 @@ function wrapper (methodName, method) {
...
@@ -788,7 +788,7 @@ function wrapper (methodName, method) {
const
protocol
=
protocols
[
methodName
];
const
protocol
=
protocols
[
methodName
];
if
(
!
protocol
)
{
// 暂不支持的 api
if
(
!
protocol
)
{
// 暂不支持的 api
return
function
()
{
return
function
()
{
console
.
error
(
`
头条小程序 暂不支持
${
methodName
}
`
);
console
.
error
(
`
Platform '头条小程序' does not support '
${
methodName
}
'.
`
);
}
}
}
}
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
...
@@ -835,7 +835,7 @@ function createTodoApi (name) {
...
@@ -835,7 +835,7 @@ function createTodoApi (name) {
complete
complete
})
{
})
{
const
res
=
{
const
res
=
{
errMsg
:
`
${
name
}
:fail
:暂不支持
${
name
}
方法
`
errMsg
:
`
${
name
}
:fail
method '
${
name
}
' not supported
`
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
...
@@ -869,7 +869,7 @@ function getProvider ({
...
@@ -869,7 +869,7 @@ function getProvider ({
isFn
(
success
)
&&
success
(
res
);
isFn
(
success
)
&&
success
(
res
);
}
else
{
}
else
{
res
=
{
res
=
{
errMsg
:
'
getProvider:fail
:服务[
'
+
service
+
'
]不存在
'
errMsg
:
'
getProvider:fail
service not found
'
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
}
}
...
...
packages/uni-mp-weixin/dist/index.js
浏览文件 @
6a6de806
...
@@ -493,7 +493,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
...
@@ -493,7 +493,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
}
}
if
(
!
keyOption
)
{
// 不支持的参数
if
(
!
keyOption
)
{
// 不支持的参数
console
.
warn
(
`
微信小程序
${
methodName
}
暂不支持
${
key
}
`
);
console
.
warn
(
`
The '
${
methodName
}
' method of platform '微信小程序' does not support option '
${
key
}
'
`
);
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
toArgs
[
keyOption
]
=
fromArgs
[
key
];
toArgs
[
keyOption
]
=
fromArgs
[
key
];
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
...
@@ -528,7 +528,7 @@ function wrapper (methodName, method) {
...
@@ -528,7 +528,7 @@ function wrapper (methodName, method) {
const
protocol
=
protocols
[
methodName
];
const
protocol
=
protocols
[
methodName
];
if
(
!
protocol
)
{
// 暂不支持的 api
if
(
!
protocol
)
{
// 暂不支持的 api
return
function
()
{
return
function
()
{
console
.
error
(
`
微信小程序 暂不支持
${
methodName
}
`
);
console
.
error
(
`
Platform '微信小程序' does not support '
${
methodName
}
'.
`
);
}
}
}
}
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
...
@@ -575,7 +575,7 @@ function createTodoApi (name) {
...
@@ -575,7 +575,7 @@ function createTodoApi (name) {
complete
complete
})
{
})
{
const
res
=
{
const
res
=
{
errMsg
:
`
${
name
}
:fail
:暂不支持
${
name
}
方法
`
errMsg
:
`
${
name
}
:fail
method '
${
name
}
' not supported
`
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
...
@@ -609,7 +609,7 @@ function getProvider ({
...
@@ -609,7 +609,7 @@ function getProvider ({
isFn
(
success
)
&&
success
(
res
);
isFn
(
success
)
&&
success
(
res
);
}
else
{
}
else
{
res
=
{
res
=
{
errMsg
:
'
getProvider:fail
:服务[
'
+
service
+
'
]不存在
'
errMsg
:
'
getProvider:fail
service not found
'
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
}
}
...
...
packages/uni-quickapp-native/dist/vue.dev.js
浏览文件 @
6a6de806
此差异已折叠。
点击以展开。
packages/uni-quickapp-native/dist/vue.prod.js
浏览文件 @
6a6de806
此差异已折叠。
点击以展开。
packages/uni-quickapp-webview/dist/index.js
浏览文件 @
6a6de806
...
@@ -560,7 +560,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
...
@@ -560,7 +560,7 @@ function processArgs (methodName, fromArgs, argsOption = {}, returnValue = {}, k
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
keyOption
=
keyOption
(
fromArgs
[
key
],
fromArgs
,
toArgs
);
}
}
if
(
!
keyOption
)
{
// 不支持的参数
if
(
!
keyOption
)
{
// 不支持的参数
console
.
warn
(
`
快应用(Webview)版
${
methodName
}
暂不支持
${
key
}
`
);
console
.
warn
(
`
The '
${
methodName
}
' method of platform '快应用(Webview)版' does not support option '
${
key
}
'
`
);
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
}
else
if
(
isStr
(
keyOption
))
{
// 重写参数 key
toArgs
[
keyOption
]
=
fromArgs
[
key
];
toArgs
[
keyOption
]
=
fromArgs
[
key
];
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
}
else
if
(
isPlainObject
(
keyOption
))
{
// {name:newName,value:value}可重新指定参数 key:value
...
@@ -595,7 +595,7 @@ function wrapper (methodName, method) {
...
@@ -595,7 +595,7 @@ function wrapper (methodName, method) {
const
protocol
=
protocols
[
methodName
];
const
protocol
=
protocols
[
methodName
];
if
(
!
protocol
)
{
// 暂不支持的 api
if
(
!
protocol
)
{
// 暂不支持的 api
return
function
()
{
return
function
()
{
console
.
error
(
`
快应用(Webview)版 暂不支持
${
methodName
}
`
);
console
.
error
(
`
Platform '快应用(Webview)版' does not support '
${
methodName
}
'.
`
);
}
}
}
}
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
return
function
(
arg1
,
arg2
)
{
// 目前 api 最多两个参数
...
@@ -642,7 +642,7 @@ function createTodoApi (name) {
...
@@ -642,7 +642,7 @@ function createTodoApi (name) {
complete
complete
})
{
})
{
const
res
=
{
const
res
=
{
errMsg
:
`
${
name
}
:fail
:暂不支持
${
name
}
方法
`
errMsg
:
`
${
name
}
:fail
method '
${
name
}
' not supported
`
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
isFn
(
complete
)
&&
complete
(
res
);
...
@@ -684,7 +684,7 @@ function getProvider ({
...
@@ -684,7 +684,7 @@ function getProvider ({
isFn
(
success
)
&&
success
(
res
);
isFn
(
success
)
&&
success
(
res
);
}
else
{
}
else
{
res
=
{
res
=
{
errMsg
:
'
getProvider:fail
:服务[
'
+
service
+
'
]不存在
'
errMsg
:
'
getProvider:fail
service not found
'
};
};
isFn
(
fail
)
&&
fail
(
res
);
isFn
(
fail
)
&&
fail
(
res
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录