localStorageUtils.js 490 B

12345678910111213141516171819
  1. //---上正式线的时候,这段代码要删掉-------
  2. localStorage.setItem('wlyyAgent', JSON.stringify({
  3. "id" : 544000,
  4. "uid" : "0de7295862dd11e69faffa163e8aee56",
  5. "openid" : "123",
  6. "token" : "2bae798474fe95c90b5516951aa58829",
  7. "lastUid" : "",
  8. "platform" : 3
  9. }))
  10. //---上正式线的时候,上述代码要删掉-------
  11. function getUserInfo(){
  12. if(localStorage.wlyyAgent!=null&&localStorage.wlyyAgent!=""){
  13. return JSON.parse(localStorage.wlyyAgent);
  14. }else{
  15. return {};
  16. }
  17. }