正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -60,7 +60,7 @@ class Almighty extends Api | @@ -60,7 +60,7 @@ class Almighty extends Api | ||
60 | */ | 60 | */ |
61 | public function questionList() | 61 | public function questionList() |
62 | { | 62 | { |
63 | - $user_id = $this->auth->id; | 63 | + $user_id = $this->auth->id ? $this->auth->id : 0; |
64 | $answer_type = $this->request->param('answer_type'); | 64 | $answer_type = $this->request->param('answer_type'); |
65 | $question_type = $this->request->param('question_type'); | 65 | $question_type = $this->request->param('question_type'); |
66 | $where['q.target_type'] = '1'; | 66 | $where['q.target_type'] = '1'; |
-
请 注册 或 登录 后发表评论