🐛Fix: Secret 已被弃用

This commit is contained in:
2025-10-13 14:07:39 +08:00
parent adad851991
commit ea837b6b94
2 changed files with 0 additions and 12 deletions
@@ -1,7 +0,0 @@
package cn.hezhaohui.webhook.constant;
public class Payload {
public final static String SECRET = "dn293830";
}
@@ -9,7 +9,6 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import static cn.hezhaohui.webhook.constant.Payload.SECRET;
@RestController
@RequestMapping("/hook")
@@ -23,10 +22,6 @@ public class HookController {
public void handlePush(@RequestBody GiteaPushEvent event) {
log.info(event.toString());
if(!SECRET.equals(event.getSecret())) {
return;
}
hookService.handlePush(event);
}
}