|
...
|
...
|
@@ -817,11 +817,41 @@ class ProjectController extends BaseController |
|
|
|
* @time :2023/11/17 15:23
|
|
|
|
*/
|
|
|
|
public function saveOtherProject(ProjectLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required',
|
|
|
|
'aicc'=>'required',
|
|
|
|
'hagro'=>'required',
|
|
|
|
'exclusive_aicc_day'=>'required',
|
|
|
|
'exclusive_hagro_day'=>'required',
|
|
|
|
],[
|
|
|
|
'id.required' => 'id不能为空',
|
|
|
|
'aicc.required' => 'aicc是否开启不能为空',
|
|
|
|
'hagro.required' => 'hagro是否开启不能为空',
|
|
|
|
'exclusive_aicc_day.required' => '服务天数不能为空',
|
|
|
|
'exclusive_hagro_day.required' => '服务天数不能为空',
|
|
|
|
]);
|
|
|
|
$logic->saveOtherProject();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取其他项目配置
|
|
|
|
* @name :getOtherProject
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/11/17 15:23
|
|
|
|
*/
|
|
|
|
public function getOtherProject(ProjectLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required',
|
|
|
|
],[
|
|
|
|
'id.required' => 'id不能为空',
|
|
|
|
]);
|
|
|
|
$info = $logic->getOtherProject();
|
|
|
|
$this->response('success',Code::SUCCESS,$info);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取渠道信息
|
|
|
|
* @name :getChannel
|
|
|
|
* @author :lyh
|
...
|
...
|
|