From 75b0434b89e62806cd7855e72fb417b0c97f7e8b Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Mon, 17 Apr 2023 15:24:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E6=98=AF=E4=BB=98=E8=B4=B9=E4=BC=9A?= =?UTF-8?q?=E5=91=98=E7=9A=84=E7=94=A8=E6=88=B7=E9=A2=86=E5=8F=96=E4=BB=98?= =?UTF-8?q?=E8=B4=B9=E4=BC=9A=E5=91=98=E5=88=B8=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/services/activity/coupon/StoreCouponIssueServices.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crmeb/app/services/activity/coupon/StoreCouponIssueServices.php b/crmeb/app/services/activity/coupon/StoreCouponIssueServices.php index 269a45384..1fd936257 100644 --- a/crmeb/app/services/activity/coupon/StoreCouponIssueServices.php +++ b/crmeb/app/services/activity/coupon/StoreCouponIssueServices.php @@ -363,6 +363,9 @@ class StoreCouponIssueServices extends BaseServices public function issueUserCoupon($id, $user, bool $is_receive = false) { $issueCouponInfo = $this->dao->getInfo((int)$id); + if ($user->is_money_level <= 0 && $issueCouponInfo['receive_type'] == 4) { + throw new ApiException(400097); + } $uid = $user->uid; if (!$issueCouponInfo) throw new ApiException(400516); /** @var StoreCouponIssueUserServices $issueUserService */