同一个券码,重复提交校验,3秒内视为同一笔订单。
This commit is contained in:
@@ -148,7 +148,7 @@ class Init
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notes: 校验是否已经核销过。3秒内视为同一订单
|
* Notes: 校验是否已经核销过。3秒内视为同一订单。不能提交订单id 只能这么办
|
||||||
* @Author: 玄尘
|
* @Author: 玄尘
|
||||||
* @Date : 2020/8/8 13:43
|
* @Date : 2020/8/8 13:43
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ 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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class YsdVerification extends Init
|
|||||||
return $this->query_coupon;
|
return $this->query_coupon;
|
||||||
}
|
}
|
||||||
|
|
||||||
//检查可核销次数
|
//检查可核销次数,100元为1次
|
||||||
if ($this->query_coupon->activity && $this->query_coupon->activity->need_check) {
|
if ($this->query_coupon->activity && $this->query_coupon->activity->need_check) {
|
||||||
$ret = $this->CheckCount();
|
$ret = $this->CheckCount();
|
||||||
if ($ret !== true) {
|
if ($ret !== true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user