|
@@ -975,12 +975,12 @@ var jishu = 0
|
|
|
export const wxConfig = function (configInfo, userInfo, cb) {
|
|
|
let url = ''
|
|
|
const systemInfo = uni.getSystemInfoSync()
|
|
|
- // if (systemInfo.platform === 'ios') {
|
|
|
- // // iOS平台
|
|
|
- // url = getStorage('realAuthUrl')
|
|
|
- // } else {
|
|
|
- url = window.location.href.split('#')[0] //获取到的url是当前页面的域名
|
|
|
- // }
|
|
|
+ if (systemInfo.platform === 'ios') {
|
|
|
+ // iOS平台
|
|
|
+ url = getStorage('realAuthUrl')
|
|
|
+ } else {
|
|
|
+ url = window.location.href.split('#')[0] //获取到的url是当前页面的域名
|
|
|
+ }
|
|
|
api
|
|
|
.post('/user/jsapi/sign', {
|
|
|
url
|