|
|
@@ -27,6 +27,7 @@ import com.fs.erp.dto.sdk.df.enums.RequestUrlEnum;
|
|
|
import com.fs.erp.service.IErpOrderService;
|
|
|
import com.fs.fastGpt.domain.FastGptRole;
|
|
|
import com.fs.fastGpt.service.IFastGptRoleService;
|
|
|
+import com.fs.fastgptApi.util.EventLogUtils;
|
|
|
import com.fs.his.config.FsSysConfig;
|
|
|
import com.fs.his.domain.*;
|
|
|
import com.fs.his.enums.FsStoreOrderLogEnum;
|
|
|
@@ -954,6 +955,9 @@ public class DfOrderServiceImpl implements IErpOrderService {
|
|
|
if ("301".equals(stateEx)){
|
|
|
redisCache.sAdd(signedKey, orderId.toString());
|
|
|
}
|
|
|
+
|
|
|
+ // 保存日志到 fastgpt_event_token_log
|
|
|
+ EventLogUtils.recordEventTokenLog("定时发送ai物流消耗token", null, 1, 400L, 2, qwUser);
|
|
|
} catch (Exception e) {
|
|
|
log.error("AI物流消息发送失败 - orderId: {}, sendId: {}, 错误信息: {}", orderId, sendId, e.getMessage(), e);
|
|
|
}
|
|
|
@@ -1433,6 +1437,9 @@ public class DfOrderServiceImpl implements IErpOrderService {
|
|
|
if ("301".equals(stateEx)){
|
|
|
redisCache.sAdd(signedKey, orderId.toString());
|
|
|
}
|
|
|
+
|
|
|
+ // 保存日志到 fastgpt_event_token_log
|
|
|
+ EventLogUtils.recordEventTokenLog("定时发送ai物流消耗token", null, 1, 400L, 2, qwUser);
|
|
|
} catch (Exception e) {
|
|
|
log.error("每日上午9点和下午4点发送物流消息 AI物流消息发送失败 - orderId: {}, sendId: {}, 错误信息: {}", orderId, sendId, e.getMessage(), e);
|
|
|
}
|