feat: 异常支持重复上报
This commit is contained in:
parent
25c3dc4033
commit
c99ef60788
|
|
@ -12,11 +12,6 @@ class OrderAbnormalService extends BaseService
|
|||
*/
|
||||
public function create(int $workerId, array $params)
|
||||
{
|
||||
$data = $this->getOrderAbnormal($workerId, $params['order_id']);
|
||||
if ($data) {
|
||||
$this->apiError('您已上报过异常,请勿重复提交');
|
||||
}
|
||||
|
||||
$abnormal = $this->getAbnormalModel()->find($params['abnormal_id']);
|
||||
if (!$abnormal) {
|
||||
$this->apiError('异常原因不存在,请重新选择');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user