提交 a794686b authored 作者: chengye's avatar chengye

调试

上级 0790e871
...@@ -152,7 +152,7 @@ class Login extends Controller ...@@ -152,7 +152,7 @@ class Login extends Controller
//存储到redis //存储到redis
Cache::store('redis')->set($encryptKey,json_encode($user),3600); Cache::store('redis')->set($encryptKey,json_encode($user),3600);
return $data; return json($data);
} }
private function getRandomStr($length = 10){ private function getRandomStr($length = 10){
......
...@@ -399,7 +399,8 @@ class Response ...@@ -399,7 +399,8 @@ class Response
$content, $content,
'__toString', '__toString',
]) ])
) { )
{
throw new \InvalidArgumentException(sprintf('variable type error: %s', gettype($content))); throw new \InvalidArgumentException(sprintf('variable type error: %s', gettype($content)));
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论