This commit is contained in:
van
2026-09-06 23:24:35 +08:00
parent 5daea0bbdf
commit a169a554b9
3 changed files with 10 additions and 2 deletions
@@ -126,6 +126,10 @@ public class OrderProfitAnalysisServiceImpl implements IOrderProfitAnalysisServi
@Value("${jarvis.order-profit-analysis.touser:}")
private String analysisTouser;
/** 企微应用 AgentId,须与 wxSend qywx.app.reportAgentId 一致 */
@Value("${jarvis.order-profit-analysis.agent-id:1000014}")
private String analysisAgentId;
@Value("${jarvis.wecom.goofish-notify-touser:}")
private String fallbackTouser;
@@ -451,8 +455,9 @@ public class OrderProfitAnalysisServiceImpl implements IOrderProfitAnalysisServi
if (chunks == null || chunks.isEmpty()) {
return false;
}
log.info("利润分析推送拆成 {} 条 toUser={}", chunks.size(), toUser);
return phoneForwardActivePush.schedulePushChunks(toUser, null, chunks);
String agentId = StringUtils.isNotEmpty(analysisAgentId) ? analysisAgentId.trim() : "1000014";
log.info("利润分析推送拆成 {} 条 toUser={} agentId={}", chunks.size(), toUser, agentId);
return phoneForwardActivePush.schedulePushChunks(toUser, agentId, chunks);
}
private static List<String> labelChunks(List<String> chunks) {