feat: 修改核销码查询逻辑
This commit is contained in:
parent
aeff0c9d54
commit
919229c8dc
@ -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('无该核销码请检查');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user