同一个券码,重复提交校验,3秒内视为同一笔订单。

This commit is contained in:
2020-08-08 14:29:08 +08:00
parent 02883d10c0
commit ac9d3d9a25
3 changed files with 2 additions and 3 deletions

View File

@@ -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
*/ */

View File

@@ -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;
} }

View File

@@ -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) {