优化代码

Signed-off-by: java110 <928255095@qq.com>
This commit is contained in:
java110 2024-11-04 09:45:57 +00:00 committed by Gitee
parent 161d7e4e33
commit 4d77b1c401
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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;
} }