Commit 552e0481 authored by huanle's avatar huanle

0528

parent bdfbbb88
......@@ -60,7 +60,6 @@ class Index extends Controller
$this->removeToken($userid, $client);
// 设置新的token
$rs = cache('token_'.$token, $token, $expireSecond);
$t=cache('token_'.$token);
if ($rs) {
// 设置我的新缓存记录
$record = cache('token_'.$userid);
......@@ -125,7 +124,7 @@ class Index extends Controller
public function getUserToken($uid, $client)
{
$tokens = cache('token_'.$uid);
var_dump($tokens);
//var_dump($tokens);
$tokens = json_decode($tokens, true);
if (empty($tokens)) {
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