Commit 15c493c1 by 张立顺

加上打印信息

1 parent adf35d0c
...@@ -130,6 +130,7 @@ export default { ...@@ -130,6 +130,7 @@ export default {
this.merchantId = merchantId this.merchantId = merchantId
this.merchantName = merchantName this.merchantName = merchantName
console.log(appId, 'appId') console.log(appId, 'appId')
console.log('ap.getAuthCode', ap.getAuthCode)
// 请求用户授权 // 请求用户授权
ap.getAuthCode({ ap.getAuthCode({
// appId: '${appId}', // appId: '${appId}',
...@@ -140,6 +141,9 @@ export default { ...@@ -140,6 +141,9 @@ export default {
}, function (res) { }, function (res) {
console.log('res.authCode', res.authCode) console.log('res.authCode', res.authCode)
res.authCode && that.gteOpenId(res.authCode) res.authCode && that.gteOpenId(res.authCode)
}, function (res) {
console.log('res.fail', res)
// res.authCode && that.gteOpenId(res.authCode)
}) })
// this.gteOpenId('ab3aa51e466140b5b96475706653UX72') // this.gteOpenId('ab3aa51e466140b5b96475706653UX72')
...@@ -156,7 +160,7 @@ export default { ...@@ -156,7 +160,7 @@ export default {
methods: { methods: {
gteOpenId(code) { gteOpenId(code) {
// ap.alert(JSON.stringify(code)) // ap.alert(JSON.stringify(code))
// console.log('gteOpenId', code) console.log('gteOpenId', code)
code && alipayOauthToken({ code }).then((result) => { code && alipayOauthToken({ code }).then((result) => {
console.log('alipayOauthToken', result) console.log('alipayOauthToken', result)
const { userId } = result const { userId } = result
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!