Develop #1

Merged
siujamo merged 40 commits from develop into main 2026-06-04 17:40:34 +08:00
Showing only changes of commit 9594efe716 - Show all commits
@@ -8,7 +8,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.server.ResponseStatusException; import com.onixbyte.deltaforceguide.exeption.BizException;
import org.yaml.snakeyaml.Yaml; import org.yaml.snakeyaml.Yaml;
import java.time.Duration; import java.time.Duration;
@@ -112,7 +112,7 @@ public class WebhookService {
toLong(data.get("firearmId")), toLong(data.get("firearmId")),
(String) data.get("firearmName")); (String) data.get("firearmName"));
if (firearmId == null) { if (firearmId == null) {
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, throw new BizException(HttpStatus.BAD_REQUEST,
"YAML must contain firearmId or firearmName"); "YAML must contain firearmId or firearmName");
} }
String name = (String) data.get("name"); String name = (String) data.get("name");