|
|
@ -80,7 +80,8 @@ class VerificationController extends Controller |
|
|
list($id, $verify_code) = $code_arr; |
|
|
list($id, $verify_code) = $code_arr; |
|
|
|
|
|
|
|
|
$order = IndustryOrder::with('industryProduct:id,verify_mobile') |
|
|
$order = IndustryOrder::with('industryProduct:id,verify_mobile') |
|
|
->where(['status' => OrderStatus::OFFLINE_PAID, 'verify_code' => $verify_code])->find($id); |
|
|
|
|
|
|
|
|
->whereIn('status', [OrderStatus::PAID, OrderStatus::PAID_RETAINAGE, OrderStatus::OFFLINE_PAID, OrderStatus::REFUSED_REFUND]) |
|
|
|
|
|
->where(['verify_code' => $verify_code])->find($id); |
|
|
if (!$order) { |
|
|
if (!$order) { |
|
|
return $this->error($input_verify_code . "核销码不存在或订单状态不允许核销"); |
|
|
return $this->error($input_verify_code . "核销码不存在或订单状态不允许核销"); |
|
|
} |
|
|
} |
|
|
|