作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

bug修改

@@ -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';