|
...
|
...
|
@@ -14,6 +14,7 @@ use App\Http\Controllers\Aside\BaseController; |
|
|
|
use App\Models\ASide\APublicModel;
|
|
|
|
use App\Models\Channel\Channel;
|
|
|
|
use App\Models\Manage\Manage;
|
|
|
|
use App\Models\Project\OnlineCheck;
|
|
|
|
use App\Models\Project\Project;
|
|
|
|
use App\Models\Task\Task;
|
|
|
|
|
|
...
|
...
|
@@ -141,4 +142,27 @@ class OnlineController extends BaseController |
|
|
|
$query = $query->where('gl_project.status',1);//TODO::已提交审核
|
|
|
|
return $query;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :添加审核问题
|
|
|
|
* @name :setQuestion
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/8/18 17:19
|
|
|
|
*/
|
|
|
|
public function setQuestion(){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required',
|
|
|
|
'question'=>'required'
|
|
|
|
],[
|
|
|
|
'id.required' => 'ID不能为空',
|
|
|
|
'question.required' => 'question不能为空'
|
|
|
|
]);
|
|
|
|
$onlineCheckModel = new OnlineCheck();
|
|
|
|
$rs = $onlineCheckModel->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
if($rs === false){
|
|
|
|
$this->response('error',Code::USER_ERROR);
|
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|