webadmin端增加商铺日志
This commit is contained in:
@@ -161,6 +161,17 @@ export class RedeemService {
|
||||
|
||||
const ttl = await this.redis.ttl(`redeem:token:${token}`);
|
||||
|
||||
this.analyticsService.trackStoreOneSafe(storeAccountId, 'SHOP_H5', {
|
||||
storeId: account.storeId,
|
||||
eventName: 'store_redeem_preview',
|
||||
extraJson: {
|
||||
tokenSuffix: token.slice(-8),
|
||||
amount: cached.amount,
|
||||
userId: cached.userId,
|
||||
redeemType: cached.allocations && cached.allocations.length > 1 ? 'DIRECT' : cached.couponId ? 'COUPON' : 'DIRECT',
|
||||
},
|
||||
});
|
||||
|
||||
return serializeBigInt({
|
||||
token,
|
||||
amount: cached.amount,
|
||||
@@ -288,6 +299,17 @@ export class RedeemService {
|
||||
storeId: account.storeId.toString(),
|
||||
amount,
|
||||
};
|
||||
this.analyticsService.trackStoreOneSafe(storeAccountId, 'SHOP_H5', {
|
||||
storeId: account.storeId,
|
||||
eventName: 'store_redeem_confirm',
|
||||
refType: 'REDEEM_RECORD',
|
||||
refId: record.id,
|
||||
extraJson: {
|
||||
redeemNo: record.redeemNo,
|
||||
amount,
|
||||
userId: cached.userId,
|
||||
},
|
||||
});
|
||||
this.analyticsService.trackOneSafe(BigInt(cached.userId), 'SHOP_H5', {
|
||||
eventName: 'benefit_redeem_success',
|
||||
refType: 'STORE',
|
||||
|
||||
Reference in New Issue
Block a user