Commit 552e0481 authored by huanle's avatar huanle

0528

parent bdfbbb88
...@@ -60,7 +60,6 @@ class Index extends Controller ...@@ -60,7 +60,6 @@ class Index extends Controller
$this->removeToken($userid, $client); $this->removeToken($userid, $client);
// 设置新的token // 设置新的token
$rs = cache('token_'.$token, $token, $expireSecond); $rs = cache('token_'.$token, $token, $expireSecond);
$t=cache('token_'.$token);
if ($rs) { if ($rs) {
// 设置我的新缓存记录 // 设置我的新缓存记录
$record = cache('token_'.$userid); $record = cache('token_'.$userid);
...@@ -125,7 +124,7 @@ class Index extends Controller ...@@ -125,7 +124,7 @@ class Index extends Controller
public function getUserToken($uid, $client) public function getUserToken($uid, $client)
{ {
$tokens = cache('token_'.$uid); $tokens = cache('token_'.$uid);
var_dump($tokens); //var_dump($tokens);
$tokens = json_decode($tokens, true); $tokens = json_decode($tokens, true);
if (empty($tokens)) { if (empty($tokens)) {
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment