调试
This commit is contained in:
@@ -156,7 +156,7 @@ class TestController
|
|||||||
'orderid' => $request->orderid,
|
'orderid' => $request->orderid,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$url = $this->baseUrl.'user/freezecoupon';
|
$url = $this->baseUrl .'user/freezecoupon';
|
||||||
$res = $this->http($data, $url);
|
$res = $this->http($data, $url);
|
||||||
|
|
||||||
return $res;
|
return $res;
|
||||||
|
|||||||
@@ -139,6 +139,7 @@ class Init
|
|||||||
if ($this->orderid) {
|
if ($this->orderid) {
|
||||||
$check_count = Coupon::where('orderid', $this->orderid)
|
$check_count = Coupon::where('orderid', $this->orderid)
|
||||||
->where('outletId', $this->outletId)
|
->where('outletId', $this->outletId)
|
||||||
|
->where('total', $this->total)
|
||||||
->where('status', 2)
|
->where('status', 2)
|
||||||
->where('created_at', '>=', now()->subMinutes(3)->format('Y-m-d H:i:s'))
|
->where('created_at', '>=', now()->subMinutes(3)->format('Y-m-d H:i:s'))
|
||||||
->count();
|
->count();
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ class Verification extends PingAnInit
|
|||||||
|
|
||||||
//查询卡券信息
|
//查询卡券信息
|
||||||
$this->query_coupon = (new Query)->setOutletId($this->outletId)
|
$this->query_coupon = (new Query)->setOutletId($this->outletId)
|
||||||
->setCode($this->redemptionCode)
|
->setCode($this->redemptionCode)
|
||||||
->start();
|
->start();
|
||||||
if (is_string($this->query_coupon)) {
|
if (is_string($this->query_coupon)) {
|
||||||
return $this->query_coupon;
|
return $this->query_coupon;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user