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

@@ -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]);