提交 db93a184 编写于 作者: X xiaoyucoding

feat(mp-alipay): 兼容 request 方法

上级 62facd69
......@@ -81,7 +81,7 @@ const protocols = { // 需要做转换的 API 列表
return res
},
request: {
name: 'httpRequest',
name: my.canIUse('request') ? 'request' : 'httpRequest',
args (fromArgs) {
if (!fromArgs.header) { // 默认增加 header 参数,方便格式化 content-type
fromArgs.header = {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册