mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 14:31:04 +00:00
不是付费会员的用户领取付费会员券提示
This commit is contained in:
parent
e36720f605
commit
75b0434b89
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user