提交 54106925 作者: 王进

createuserinfobtn向下做兼容

上级 e164ccf3
...@@ -120,9 +120,9 @@ class WechatSDK { ...@@ -120,9 +120,9 @@ class WechatSDK {
console.log(err) console.log(err)
}) })
} }
private doLogin(res, LoginCallBack, target) { private doLogin(res, LoginCallBack, target?) {
const that = this const that = this
target.destroy() if(target) target.destroy()
// 获取用户信息 // 获取用户信息
const userInfo = res const userInfo = res
const UserObj = { const UserObj = {
...@@ -399,7 +399,7 @@ class WechatSDK { ...@@ -399,7 +399,7 @@ class WechatSDK {
// 米大师支付参数 // 米大师支付参数
private MidasPaymentParams = { private MidasPaymentParams = {
mode: 'game', // 支付的类型 mode: 'game', // 支付的类型
env: '0', // 米大师环境配置, 0:正式环境, 1:沙盒模式 env: '1', // 米大师环境配置, 0:正式环境, 1:沙盒模式
offerId: null, // 在米大师侧申请的应用id offerId: null, // 在米大师侧申请的应用id
currencyType: 'CNY', // 币种 currencyType: 'CNY', // 币种
platform: 'android', platform: 'android',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论