feat: 修改核销码查询逻辑

This commit is contained in:
mkm 2024-06-28 19:10:56 +08:00
parent aeff0c9d54
commit 919229c8dc

View File

@ -310,7 +310,7 @@ class StoreOrderController extends BaseAdminController
public function writeoff_order() public function writeoff_order()
{ {
$params = (new OrderValidate())->post()->goCheck('check'); $params = (new OrderValidate())->post()->goCheck('check');
$count = StoreOrder::where('verify_code', $params['verify_code'])->find(); $count = StoreOrder::where('verify_code', $params['verify_code'])->whereIn('status',[0,1])->where('refund_status',0)->find();
if (!$count) { if (!$count) {
return $this->fail('无该核销码请检查'); return $this->fail('无该核销码请检查');
} }