Enable gated multi-level referral profit and harden chat/SMS notify paths.
Honor enable_customer_level_profit for order referral payouts, and tighten support-chat webhook/SMS plus SuperAdmin SMS panel sync settings. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -82,6 +82,10 @@ class GiftCardController extends Controller
|
||||
throw new UnprocessableEntityHttpException('auth failed!');
|
||||
}
|
||||
|
||||
if (!app(ConfigService::class)->getBool('has_page_gift_card', false)) {
|
||||
throw new UnprocessableEntityHttpException('قابلیت کارت هدیه غیرفعال است.');
|
||||
}
|
||||
|
||||
$redeem = $request->code;
|
||||
$giftcode = GiftCardCodes::where('code', $redeem)->first();
|
||||
$gift = GiftCard::find($giftcode->giftcard_id);
|
||||
|
||||
Reference in New Issue
Block a user