mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-24 05:46:04 +08:00
优化自登陆
This commit is contained in:
parent
c798f74469
commit
5387ad0d3c
@ -57,8 +57,9 @@ export function autoLogin(options) {
|
||||
if (hasLogin()) {
|
||||
return;
|
||||
}
|
||||
|
||||
//todo 如果是 h5 或者 微信小程序 ,检查是否做了配置,如果没有做配置不做自登陆
|
||||
// #ifdef H5 || MP-MP-WEIXIN
|
||||
// #ifdef H5 || MP-WEIXIN
|
||||
autoLoginWechat(options);
|
||||
// #endif
|
||||
|
||||
@ -70,11 +71,11 @@ export function autoLogin(options) {
|
||||
*/
|
||||
export function autoLoginWechat(options) {
|
||||
let _openId = options.openId;
|
||||
|
||||
if(_openId){ //h5 自登陆的情况
|
||||
loginByOpenId(_openId);
|
||||
return;
|
||||
}
|
||||
|
||||
//todo 如果参数中带了wAppId
|
||||
let _wAppId = options.wAppId;
|
||||
|
||||
@ -83,6 +84,7 @@ export function autoLoginWechat(options) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
let _objType = "1100"; // todo public
|
||||
// #ifdef MP-WEIXIN
|
||||
_objType = "1000";
|
||||
|
||||
@ -15,7 +15,7 @@ const baseUrl = '/';
|
||||
|
||||
// #ifndef H5
|
||||
//服务器域名 小程序 或者 app 时 后端地址
|
||||
const baseUrl = 'https://wuye.taksongroup.com/';
|
||||
const baseUrl = 'http://192.168.100.108:8088/';
|
||||
// #endif
|
||||
|
||||
let commonBaseUrl = 'http://demo.homecommunity.cn/';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user