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

This commit is contained in:
evoxwht 2023-04-17 15:24:30 +08:00
parent e36720f605
commit 75b0434b89

View File

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