msb_prod
ch 2 years ago
parent 2d7da43c44
commit 096efc9f34

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-07-08 11:46:30
* @LastEditors: ch
* @LastEditTime: 2022-07-12 15:03:22
* @LastEditTime: 2022-07-12 16:54:09
* @Description: file content
*/
@ -17,7 +17,7 @@ import '@/common/utils/uniUtilsIndex'
const ua = navigator ? navigator.userAgent.toLowerCase() : '';
if (ua.includes('micromessenger')) {
const openId = uni.getStorage({ key: 'payOpenId' });;
const openId = uni.getStorageSync('payOpenId')
if (!openId) {
let query = FormatSearchJson(window.location.search);
// 通过订单No获取APPID
@ -31,7 +31,7 @@ if (ua.includes('micromessenger')) {
if (error) {
return false;
}
uni.setStorage({ key: 'payOpenId', data: result.openId });
uni.setStorageSync('payOpenId', result.openId });
})
} else {
ApiGetAuthUrl({

Loading…
Cancel
Save