mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
Compare commits
2 Commits
161d7e4e33
...
97a82f9977
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
97a82f9977 | ||
|
|
4d77b1c401 |
@ -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;
|
||||||
}
|
}
|
||||||
@ -183,6 +183,8 @@ export function loginByOpenId(openId) {
|
|||||||
uni.setStorageSync("currentCommunityInfo", {
|
uni.setStorageSync("currentCommunityInfo", {
|
||||||
communityId: _json.data.communityId,
|
communityId: _json.data.communityId,
|
||||||
communityName: _json.data.communityName,
|
communityName: _json.data.communityName,
|
||||||
|
sCommunityTel:_json.data.communityTel
|
||||||
|
|
||||||
});
|
});
|
||||||
uni.removeStorageSync("ownerInfo");
|
uni.removeStorageSync("ownerInfo");
|
||||||
saveUserLoginInfo(_json.data.userId, _json.data.token, _json.data.key);
|
saveUserLoginInfo(_json.data.userId, _json.data.token, _json.data.key);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user