feat: add channel code integral reward

This commit is contained in:
danaisuiyuan
2026-05-21 06:46:18 +08:00
parent ab65147b82
commit 673a19b3f7
8 changed files with 95 additions and 10 deletions

View File

@@ -135,6 +135,14 @@ class UserBillServices extends BaseServices
'status' => 1,
'pm' => 1
],
'channel_code_give_integral' => [
'title' => '渠道码赠送积分',
'category' => 'integral',
'type' => 'channel_code_add',
'mark' => '扫码渠道码赠送{%num%}积分',
'status' => 1,
'pm' => 1
],
'level_give_integral' => [
'title' => '会员卡激活赠送积分',
'category' => 'integral',

View File

@@ -376,7 +376,9 @@ class UserServices extends BaseServices
// 用户注册成功事件
$userInfo = array_merge($res->toArray(), [
'unionid' => $user['unionid'] ?? ''
'unionid' => $user['unionid'] ?? '',
'spread_qrcode_id' => (int)($user['spread_qrcode_id'] ?? 0),
'spread_qrcode_type' => $user['spread_qrcode_type'] ?? ''
]);
event('user.register', [$userInfo, true, $spreadUid]);