正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -362,7 +362,7 @@ class HouseBoard extends Api | @@ -362,7 +362,7 @@ class HouseBoard extends Api | ||
362 | public function comment_add() | 362 | public function comment_add() |
363 | { | 363 | { |
364 | $param = $this->request->param(); | 364 | $param = $this->request->param(); |
365 | - if(!$param['house_id'] || !$param['house_user_id']){ | 365 | + if(empty($param['house_id']) || empty($param['house_user_id'])){ |
366 | $this->error('缺少必要参数'); | 366 | $this->error('缺少必要参数'); |
367 | } | 367 | } |
368 | if(empty($param['content']) && empty($param['image'])) { | 368 | if(empty($param['content']) && empty($param['image'])) { |
-
请 注册 或 登录 后发表评论