lyhzzz недель назад: 3
Родитель
Сommit
851ccf7956

+ 3 - 0
src/main/java/com/fdkankan/manage_jp/controller/UploadController.java

@@ -153,6 +153,9 @@ public class UploadController extends BaseController{
     @GetMapping("/getStsSignature")
     public synchronized Result getStsSignature( @RequestParam(value = "appCode",required = false)String appCode,
                                              @RequestParam(value = "timestamp",required = false)String timestamp){
+        if(StringUtils.isNotBlank(appCode) || StringUtils.isNotBlank(timestamp)){
+            throw new BusinessException(ResultCode.PARAM_ERROR);
+        }
         String encipher = RsaUtils.encipher(appCode + "-" + timestamp,manageConfig.getStsPublicKey());
         return Result.success(Base64.encode(encipher));
     }