重构:优化订单通知消息标签,支持动态显示订单类型
- 新增 OrderMessageLabelResolver 用于解析订单场景标签 - 修改微信公众号下单通知,根据下单类型(随机单/指定单/打赏/礼物)显示对应标签 - 更新 WxCustomMpService 接口,传递 placeType 和 rewardType 参数 - 完善相关单元测试和 Mock 配置
This commit is contained in:
@@ -67,7 +67,14 @@ class WxOrderInfoControllerApiTest extends WxCustomOrderApiTestSupport {
|
||||
// Relax notifications to avoid strict verification noise
|
||||
doNothing().when(notificationSender).sendOrderMessageAsync(Mockito.any());
|
||||
doNothing().when(notificationSender).sendOrderFinishMessageAsync(Mockito.any());
|
||||
doNothing().when(wxCustomMpService).sendCreateOrderMessageBatch(anyList(), Mockito.anyString(), Mockito.anyString(), Mockito.anyString(), Mockito.anyString());
|
||||
doNothing().when(wxCustomMpService).sendCreateOrderMessageBatch(
|
||||
anyList(),
|
||||
Mockito.anyString(),
|
||||
Mockito.anyString(),
|
||||
Mockito.anyString(),
|
||||
Mockito.anyString(),
|
||||
Mockito.anyString(),
|
||||
Mockito.anyString());
|
||||
doNothing().when(overdueOrderHandlerTask).enqueue(Mockito.anyString());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user