|
...
|
...
|
@@ -90,6 +90,7 @@ class GeoQuestionController extends BaseController |
|
|
|
* @param : keywords->提交的关键字
|
|
|
|
* @param : status->状态(0:可执行 1:禁止执行)
|
|
|
|
* @param : project_id->项目id
|
|
|
|
* @param : type->类型(1:品牌 2:营销)
|
|
|
|
*/
|
|
|
|
public function saveGeoQuestion(){
|
|
|
|
$this->request->validate([
|
|
...
|
...
|
@@ -98,12 +99,14 @@ class GeoQuestionController extends BaseController |
|
|
|
'keywords'=>'required',
|
|
|
|
'url'=>'required',
|
|
|
|
'status'=>'required',
|
|
|
|
'type'=>'required',
|
|
|
|
],[
|
|
|
|
'project_id.required' => '项目ID不能为空',
|
|
|
|
'question.required' => '项目ID不能为空',
|
|
|
|
'keywords.required' => '项目ID不能为空',
|
|
|
|
'url.required' => '项目ID不能为空',
|
|
|
|
'status.required' => '项目ID不能为空',
|
|
|
|
'type.required' => '类型不能为空',
|
|
|
|
]);
|
|
|
|
$data = $this->logic->saveGeoQuestion();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
...
|
...
|
|