assets/js/login.js
@@ -1,7 +1,7 @@ import { setSessionGuid } from "./userAction" const app = getApp(); export const loginInfo = (app, callback) => { if (app.config.appId == 27) { @@ -57,6 +57,10 @@ getUserInfo(app, callback, res.token) // 记录登录统计 setSessionGuid() //登录记录积分 app.MG.app.creatUserBehavior({ refCode: "sign" }) } else { console.log(res); callback(false) @@ -85,7 +89,6 @@ }) } } // 获取登录用户身份 const getUserInfo = (app, callback, token) => { app.MG.identity.getCurrentAppUser().then(res => {