正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -85,7 +85,7 @@ class GeoQuestionLogic extends BaseLogic | @@ -85,7 +85,7 @@ class GeoQuestionLogic extends BaseLogic | ||
| 85 | public function saveGeoQuestion(){ | 85 | public function saveGeoQuestion(){ |
| 86 | //处理数据 | 86 | //处理数据 |
| 87 | $count = count($this->param['question']); | 87 | $count = count($this->param['question']); |
| 88 | - $sum = $this->model->where('proejct_id',$this->param['project_id'])->sum('question_num') ?? 0; | 88 | + $sum = $this->model->where('project_id',$this->param['project_id'])->sum('question_num') ?? 0; |
| 89 | if($sum >= 200 || $count >= 200){ | 89 | if($sum >= 200 || $count >= 200){ |
| 90 | $this->fail('当前问题数量大于最大数量200个问题,不允许保存'); | 90 | $this->fail('当前问题数量大于最大数量200个问题,不允许保存'); |
| 91 | } | 91 | } |
-
请 注册 或 登录 后发表评论