소스 검색

不是付费会员的用户领取付费会员券提示

evoxwht 2 년 전
부모
커밋
75b0434b89
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      crmeb/app/services/activity/coupon/StoreCouponIssueServices.php

+ 3 - 0
crmeb/app/services/activity/coupon/StoreCouponIssueServices.php

@@ -363,6 +363,9 @@ class StoreCouponIssueServices extends BaseServices
     public function issueUserCoupon($id, $user, bool $is_receive = false)
     public function issueUserCoupon($id, $user, bool $is_receive = false)
     {
     {
         $issueCouponInfo = $this->dao->getInfo((int)$id);
         $issueCouponInfo = $this->dao->getInfo((int)$id);
+        if ($user->is_money_level <= 0 && $issueCouponInfo['receive_type'] == 4) {
+            throw new ApiException(400097);
+        }
         $uid = $user->uid;
         $uid = $user->uid;
         if (!$issueCouponInfo) throw new ApiException(400516);
         if (!$issueCouponInfo) throw new ApiException(400516);
         /** @var StoreCouponIssueUserServices $issueUserService */
         /** @var StoreCouponIssueUserServices $issueUserService */