feat: 异常支持重复上报

This commit is contained in:
苟川东 2025-04-28 16:28:16 +08:00
parent 25c3dc4033
commit c99ef60788

View File

@ -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('异常原因不存在,请重新选择');