帖子
帖子
用户
博客
课程
12
返回列表 发新帖
22
帖子
1
勋章
1万+
Y币
本帖最后由 handsix 于 2021-5-13 00:03 编辑
唐创科技 发表于 2021-5-12 14:14
/*
* APICloud JavaScript Library
* Copyright (c) 2014 apicloud.com

这一段判断是错误码,也保存了token值得?
  if (JSON.stringify(ret.error_code)==-2) {
                      $api.setStorage('token1', ret.data.LXYZOT);
                      // ow('guidepage', '../html/login.html')
  }

这段改成下面那样试试
  1.   if (JSON.stringify(ret.error_code)==-2) {
  2.                       //$api.setStorage('token1', ret.data.LXYZOT);
  3.                    ow('guidepage', '../html/login.html')
  4.   }
复制代码
12
您需要登录后才可以回帖 登录

本版积分规则