|
@@ -79,13 +79,20 @@ var app = {
|
|
|
getPersonInfoPlus : () => {
|
|
|
return uni.getStorageSync(prefix + 'personInfoPlus')
|
|
|
},
|
|
|
- signOut:()=> uni.removeStorageSync(prefix + 'personInfo'),
|
|
|
+ signOut:()=> uni.removeStorageSync(prefix + 'personInfo'),
|
|
|
+
|
|
|
getOpenId : () => uni.getStorageSync(prefix + 'wx_openId'+process.car.VUE_APP_WXAPPID),
|
|
|
setOpenId : (value) => uni.setStorageSync(prefix + 'wx_openId'+process.car.VUE_APP_WXAPPID, value),
|
|
|
|
|
|
getOpenIdALI : () => uni.getStorageSync(prefix + 'ali_openId'+process.car.VUE_APP_WXAPPID),
|
|
|
setOpenIdALI : (value) => uni.setStorageSync(prefix + 'ali_openId'+process.car.VUE_APP_WXAPPID, value),
|
|
|
-
|
|
|
+ getUID:()=>{
|
|
|
+ if(!(process.env.NODE_ENV === "development") ){
|
|
|
+ return getUserInfo().unionid
|
|
|
+ }else{
|
|
|
+ return process.car.unionid
|
|
|
+ }
|
|
|
+ },
|
|
|
getUserInfo : () => {
|
|
|
return uni.getStorageSync(prefix + 'xpgj_wx_user_info')
|
|
|
},
|