提交 5290fb20 作者: 王进

IOS支付上报异常

上级 5d64332e
const Config = {
// 配置项目参数
appid: "wx8ccb2ef82e44df92", // 换openid
appName: "测试应用", // 应用名称
productCode: "b5488a667a66561aa97ce2a70137487e", // 产品code
productKey: "d0e3e7998c6b3b47dd9e42c3769edd2c", // 产品key,用于生成签名
appVersion: "产品版本号(cp)", // 产品版本号
offerid: "1450016203", // 支付
sdkVersion: "1.0.0", // SDK版本号,SDK接口需要
shareTitle: "鲸鱼游戏棒棒棒", // 分享标题
shareImageUrl: "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3903587193,374462562&fm=27&gp=0.jpg" //分享图片链接
// 结束
}
\ No newline at end of file
...@@ -182,6 +182,7 @@ class WechatSDK { ...@@ -182,6 +182,7 @@ class WechatSDK {
const params = { // 跳转参数 const params = { // 跳转参数
appId: res.data.weixin_mini_program_app_id, // 跳转的小程序appid appId: res.data.weixin_mini_program_app_id, // 跳转的小程序appid
path: '', // 跳转到首页 path: '', // 跳转到首页
envVersion: 'trial', //跳转到体验版
extraData: postParams, extraData: postParams,
success: () => { console.log("跳转成功") }, success: () => { console.log("跳转成功") },
fail: () => { console.log("跳转失败") } fail: () => { console.log("跳转失败") }
...@@ -211,8 +212,9 @@ class WechatSDK { ...@@ -211,8 +212,9 @@ class WechatSDK {
platform.showModal(params) platform.showModal(params)
} }
} }
} else { // 继续未完成订单 } else { // 输出订单失败消息
that.printf(res.msg, 1) that.printf(res.msg, 1)
that.sdkAlert(res.msg)
} }
}, err => { console.log(err) }) }, err => { console.log(err) })
} }
......
...@@ -88,7 +88,8 @@ class WxgamePlatform { ...@@ -88,7 +88,8 @@ class WxgamePlatform {
showMsg(str) { showMsg(str) {
wx.showToast({ wx.showToast({
title: str, title: str,
duration: 1500 icon: 'none',
duration: 3000
}) })
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论