This commit is contained in:
2020-08-24 09:14:18 +08:00
parent da9d0d258f
commit e114200ea7
3 changed files with 4 additions and 3 deletions

View File

@@ -139,6 +139,7 @@ class Init
if ($this->orderid) {
$check_count = Coupon::where('orderid', $this->orderid)
->where('outletId', $this->outletId)
->where('total', $this->total)
->where('status', 2)
->where('created_at', '>=', now()->subMinutes(3)->format('Y-m-d H:i:s'))
->count();

View File

@@ -30,8 +30,8 @@ class Verification extends PingAnInit
//查询卡券信息
$this->query_coupon = (new Query)->setOutletId($this->outletId)
->setCode($this->redemptionCode)
->start();
->setCode($this->redemptionCode)
->start();
if (is_string($this->query_coupon)) {
return $this->query_coupon;
}