|
|
@@ -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));
|
|
|
}
|