msb_prod
ch 3 years ago
parent 2d7da43c44
commit 096efc9f34

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

Loading…
Cancel
Save