作者 wangzhi

222

... ... @@ -777,6 +777,10 @@ class Index extends Api
*/
public function ClassificationOnTheLeftSideOfTheHomePage()
{
// $user_id = $this->is_token($this->request->header());
$user_id=$this->request->header();
dump($user_id);
die;
$class_a = Db::name('classa')->select();
foreach ($class_a as $k => $v) {
$first_list[$k]['id']=$v['id'];
... ...
... ... @@ -329,7 +329,7 @@ class Api
*/
protected function is_token($token)
{
if (empty($token['Authorization'])) {
if (empty($token['authorization'])) {
$this->error('请登录后在操作');
}
$is_token = Db::name('user')->where(['token' => $token['token']])->find();
... ...