优化自登陆bug

This commit is contained in:
wuxw 2024-08-27 16:02:39 +08:00
parent f8d25fd69f
commit 917cf312a0

View File

@ -127,7 +127,7 @@ export function _refreshWechatOpenId(options, appId) {
}).then(_data => { }).then(_data => {
if (_data.code == 0) { if (_data.code == 0) {
let _date = new Date(); let _date = new Date();
uni.setStorageSync("refreshUserOpenId", _data.getTime()); uni.setStorageSync("refreshUserOpenId", _date.getTime());
window.location.href = _data.data.openUrl; window.location.href = _data.data.openUrl;
return; return;
} }