From 09efc1e323afe7e27275d25523071bb530a3c3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=84=E5=B0=98?= <122383162@qq.com> Date: Sat, 8 Aug 2020 14:32:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E4=B8=80=E4=B8=AA=E5=88=B8=E7=A0=81?= =?UTF-8?q?=EF=BC=8C=E9=87=8D=E5=A4=8D=E6=8F=90=E4=BA=A4=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=EF=BC=8C3=E7=A7=92=E5=86=85=E8=A7=86=E4=B8=BA=E5=90=8C?= =?UTF-8?q?=E4=B8=80=E7=AC=94=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 4 ++++ packages/coupon/src/Action/Init.php | 4 ---- packages/coupon/src/Action/pingan/Verification.php | 1 - packages/coupon/src/Action/ysd/YsdVerification.php | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..daee571 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/tests/ +/.idea +/.env +/.editorconfig \ No newline at end of file diff --git a/packages/coupon/src/Action/Init.php b/packages/coupon/src/Action/Init.php index f94d153..537fc19 100644 --- a/packages/coupon/src/Action/Init.php +++ b/packages/coupon/src/Action/Init.php @@ -154,10 +154,6 @@ class Init */ public function HasCheck() { - $code = $this->redemptionCode; - $total = $this->total; - $outletId = $this->outletId; - $info = Coupon::where('redemptionCode', $this->redemptionCode) ->where('outletId', $this->outletId) ->where('total', $this->total) diff --git a/packages/coupon/src/Action/pingan/Verification.php b/packages/coupon/src/Action/pingan/Verification.php index eac8d6e..59485eb 100644 --- a/packages/coupon/src/Action/pingan/Verification.php +++ b/packages/coupon/src/Action/pingan/Verification.php @@ -49,7 +49,6 @@ class Verification extends PingAnInit } try { - $params = [ 'couponNo' => $coupon->redemptionCode, 'partnerOrderId' => date('ymdHis') . sprintf("%0" . strlen(999999) . "d", mt_rand(0, 999999)), diff --git a/packages/coupon/src/Action/ysd/YsdVerification.php b/packages/coupon/src/Action/ysd/YsdVerification.php index fc2795e..c8fe440 100644 --- a/packages/coupon/src/Action/ysd/YsdVerification.php +++ b/packages/coupon/src/Action/ysd/YsdVerification.php @@ -34,7 +34,7 @@ class YsdVerification extends Init return $this->query_coupon; } - //检查可核销次数,100元为1次 + //检查可核销次数,100元为1次。 if ($this->query_coupon->activity && $this->query_coupon->activity->need_check) { $ret = $this->CheckCount(); if ($ret !== true) {