|
|
@@ -20,7 +20,7 @@ public class PublicConfigController {
|
|
|
@PostMapping("/value")
|
|
|
public Result<String> getValue(@RequestBody Map<String, String> params) {
|
|
|
String key = params.get("key");
|
|
|
- if (key == null || key.isEmpty()) {
|
|
|
+ if (key == null || key.trim().isEmpty()) {
|
|
|
return Result.error("key is required");
|
|
|
}
|
|
|
String value = sysConfigService.getValue(key);
|