diff --git a/api/webView/webViewApi.js b/api/webView/webViewApi.js index 2c780fa..426e14b 100644 --- a/api/webView/webViewApi.js +++ b/api/webView/webViewApi.js @@ -82,9 +82,8 @@ export function actionRefreshToken(that) { }); }, function(error) { //回话过期 console.log('回话已经过期'); - let _redirectUrl = conf.mallUrl + '/#/pages/mallTokenRefresh/mallTokenRefresh' let _hasOwnerUrl = window.location.origin+'/#/pages/hcWebViewRefresh/hcWebViewRefresh?java110Id='+uuid(); - let _mallAuthUrl = conf.mallUrl+"/app/userAuth/mallUserRefreshToken?redirectUrl="+_redirectUrl; + let _mallAuthUrl = conf.mallUrl+"/app/userAuth/mallUserRefreshToken?redirectUrl="+_hasOwnerUrl; wechatRefreshToken(_mallAuthUrl, '0', _hasOwnerUrl); }); } diff --git a/pages/hcWebViewRefresh/hcWebViewRefresh.vue b/pages/hcWebViewRefresh/hcWebViewRefresh.vue index caba1d3..357c875 100644 --- a/pages/hcWebViewRefresh/hcWebViewRefresh.vue +++ b/pages/hcWebViewRefresh/hcWebViewRefresh.vue @@ -28,6 +28,11 @@ }, onLoad(options) { let _key = options.key; + let _hcCode = options.hcCode; + if(isNotNull(_hcCode)){ + this.url = conf.mallUrlRefresh + "&hcCode=" + _hcCode; + return ; + } if (isNotNull(_key)) { context.onLoad(options, this._getHcCode); } else {