v4.0.19版本提交
This commit is contained in:
@@ -28,7 +28,7 @@ export class HealthController {
|
||||
return {
|
||||
status,
|
||||
service: 'dukang-api',
|
||||
version: 'prev1',
|
||||
version: '4.0.19',
|
||||
checks: { db, redis },
|
||||
};
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
validateMinPurchase,
|
||||
validateShippingAddress,
|
||||
} from '@dukang/domain';
|
||||
import { loadAppConfig, ClientApp, WECHAT_AUTH_REQUIRED } from '@dukang/shared-types';
|
||||
import { loadAppConfig, ClientApp, WECHAT_AUTH_REQUIRED, formatUserSourceLine } from '@dukang/shared-types';
|
||||
import { PrismaService } from '../../common/prisma/prisma.module';
|
||||
import { serializeBigInt } from '../../common/decorators/current-user.decorator';
|
||||
import { AnalyticsService } from '../analytics/analytics.service';
|
||||
@@ -521,7 +521,7 @@ export class TradeService {
|
||||
where: { id: orderId },
|
||||
include: {
|
||||
city: { select: { name: true } },
|
||||
user: { select: { phone: true, nickname: true, hqRemark: true } },
|
||||
user: { select: { phone: true, nickname: true, hqRemark: true, sourceType: true, sourceLabel: true } },
|
||||
},
|
||||
});
|
||||
if (!order) return;
|
||||
@@ -554,6 +554,7 @@ export class TradeService {
|
||||
const userName = order.user?.nickname?.trim() || '—';
|
||||
const userPhone = (order.user?.phone || '').trim() || '—';
|
||||
const userRemark = (order.user?.hqRemark || '').trim() || '—';
|
||||
const userSource = formatUserSourceLine(order.user?.sourceType, order.user?.sourceLabel);
|
||||
void this.wecomPush.dispatchEvent(
|
||||
'order.paid',
|
||||
{
|
||||
@@ -566,6 +567,7 @@ export class TradeService {
|
||||
userName,
|
||||
userPhone,
|
||||
userRemark,
|
||||
userSource,
|
||||
phoneMasked: userPhone,
|
||||
},
|
||||
{ handlePath: `/orders?orderNo=${encodeURIComponent(order.orderNo)}` },
|
||||
|
||||
Reference in New Issue
Block a user