"use strict";const e=require("../common/vendor.js");exports.VerifyLogin=function(){return new Promise(((n,t)=>{e.index.getStorage({key:"userinfo",success:t=>{t.data?t.data.nickName?n(!0):(e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route),e.index.reLaunch({url:"/pages/UserInformation/UserInformation"}),n(!1)):(e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route),e.index.navigateTo({url:"/pages/login/login"}),n(!1))},fail:n=>{console.error("获取用户信息失败",n),e.index.setStorageSync("lastPage",getCurrentPages()[getCurrentPages().length-1].route),e.index.navigateTo({url:"/pages/login/login"}),t(n)}})}))};
