|
...
|
...
|
@@ -85,7 +85,7 @@ class GeoQuestionLogic extends BaseLogic |
|
|
|
public function saveGeoQuestion(){
|
|
|
|
//处理数据
|
|
|
|
$count = count($this->param['question']);
|
|
|
|
$sum = $this->model->where('proejct_id',$this->param['project_id'])->sum('question_num') ?? 0;
|
|
|
|
$sum = $this->model->where('project_id',$this->param['project_id'])->sum('question_num') ?? 0;
|
|
|
|
if($sum >= 200 || $count >= 200){
|
|
|
|
$this->fail('当前问题数量大于最大数量200个问题,不允许保存');
|
|
|
|
}
|
...
|
...
|
|