作者 lyh

gx

... ... @@ -61,8 +61,8 @@ class TaskController extends BaseController
* @method :post
* @time :2023/8/23 15:09
*/
public function info(Request $request, TaskLogic $logic){
$request->validate([
public function info(TaskLogic $logic){
$this->request->validate([
'id'=>'required'
],[
'id.required' => 'ID不能为空'
... ... @@ -71,6 +71,13 @@ class TaskController extends BaseController
return $this->response('success',Code::SUCCESS,$data);
}
/**
* @remark :保存
* @name :save
* @author :lyh
* @method :post
* @time :2023/8/23 17:13
*/
public function save(TaskRequest $request, TaskLogic $logic)
{
$this->param['created_manage_id'] = $this->manage->id;
... ...
... ... @@ -38,6 +38,10 @@ class TaskLogic extends BaseLogic
public function getTaskInfo()
{
$info = $this->model->where(['id'=>$this->param['id']])->with('owner')->with('follow')->first();
if($info === false){
$this->fail('error');
}
$info = $this->getFileUrl($info);
return $this->success($info);
}
... ...