|
@@ -77,4 +77,20 @@ class IssueWorkController extends BaseApiController
|
|
|
$result = IssueWorkLogic::detail($params);
|
|
$result = IssueWorkLogic::detail($params);
|
|
|
return $this->data($result);
|
|
return $this->data($result);
|
|
|
}
|
|
}
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 完结投诉
|
|
|
|
|
+ * @return \think\response\Json
|
|
|
|
|
+ */
|
|
|
|
|
+ public function complaintComplete()
|
|
|
|
|
+ {
|
|
|
|
|
+ $params = (new IssueWorkValidate())->post()->goCheck('detail', [
|
|
|
|
|
+ 'user_id' => $this->userId,
|
|
|
|
|
+ 'user_info' => $this->userInfo
|
|
|
|
|
+ ]);
|
|
|
|
|
+ $result = IssueWorkLogic::complaintComplete($params);
|
|
|
|
|
+ if (false === $result) {
|
|
|
|
|
+ return $this->fail(IssueWorkLogic::getError());
|
|
|
|
|
+ }
|
|
|
|
|
+ return $this->success('提交成功', [], 1, 1);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|