自测时发现,success回调函数中有入参,未签约主动点击左上角返回按钮 和签约后返回,在extraData中有值的区别,代码如下所示,请问是否可以根据这个条件判断?
wx.openBusinessView({
businessType: 'wxpayScoreUse',
extraData: {
...
},
envVersion: 'trial',
success(res) {
// 未签约返回
// res = { "errCode": 0, "extraData": {}, "errMsg": "openBusinessView:ok" }
// 签约后返回
// res = { "errCode": 0, "extraData": {"appid": "wxd8f3793ea3b935b8"}, "errMsg": "openBusinessView:ok" }
},
fail() {
},
complete() {
}
})