修改验证配置

This commit is contained in:
zren25
2025-06-05 09:39:40 +08:00
parent c051332def
commit 684437e6c4
4 changed files with 8 additions and 8 deletions

View File

@@ -51,8 +51,8 @@ public class EGEventSubscriptionController {
* 发布事件到事件通道
*/
@PostMapping("/sendEvent")
public ResultDTO<PutEventsResponse> sendEvent(@RequestBody CloudEvents req, @RequestParam("channel") String channel) throws ExecutionException {
return ResultDTO.success(huaWeiService.sendEvent(req, "channel"));
public ResultDTO<PutEventsResponse> sendEvent(@RequestBody CloudEvents req) throws ExecutionException {
return ResultDTO.success(huaWeiService.sendEvent(req));
}
/**

View File

@@ -31,9 +31,9 @@ public class HuaWeiEGService {
* @param event event
* @param channel channel
*/
public PutEventsResponse sendEvent(CloudEvents event, String channel) {
public PutEventsResponse sendEvent(CloudEvents event) {
PutEventsRequest request = new PutEventsRequest();
request.withChannelId(channel);
request.withChannelId("dd6be530-8d13-4e2b-8f41-43489c255ba1");
List<CloudEvents> eventsList = new ArrayList<>();
eventsList.add(event);

View File

@@ -39,13 +39,13 @@ public class CorpusPortraitServiceImpl implements CorpusPortraitService {
@Autowired
TmTelephoneCorpusService tmTelephoneCorpusService;
@Value("${dify.corpus.portrait.dccToken}")
// @Value("${dify.corpus.portrait.dccToken}")
private String dccToken;
@Value("${dify.corpus.portrait.qiweiToken}")
// @Value("${dify.corpus.portrait.qiweiToken}")
private String qiweiToken;
@Value("${dify.corpus.portrait.nameplateToken}")
// @Value("${dify.corpus.portrait.nameplateToken}")
private String nameplateAppKey;
@Autowired
private DataMaskingRuleService dataMaskingRuleService;