|
|
@@ -1,5 +1,6 @@
|
|
|
package com.fdkankan.contro.controller;
|
|
|
|
|
|
+import cn.hutool.core.codec.Base64;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
@@ -15,6 +16,7 @@ import com.fdkankan.contro.vo.SceneParam;
|
|
|
import com.fdkankan.contro.vo.SceneUploadCountParamVO;
|
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
|
import com.fdkankan.web.response.ResultData;
|
|
|
+import com.fdkankan.web.util.RSAEncrypt;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -23,6 +25,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.validation.Valid;
|
|
|
import java.io.IOException;
|
|
|
+import java.nio.charset.StandardCharsets;
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
|
@@ -197,4 +200,13 @@ public class SceneFileController{
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
|
|
|
+ @SignVerification
|
|
|
+ @PostMapping(value = "/testUpload")
|
|
|
+ public ResultData testUpload(String params) throws Exception{
|
|
|
+// String params = snCode + "#" + fileId + "#" + uniCode;
|
|
|
+ String encode = Base64.encode(RSAEncrypt.encrypt(RSAEncrypt.loadPublicKeyByStr(RSAEncrypt.loadPublicKeyByFile()), params.getBytes(StandardCharsets.UTF_8)));
|
|
|
+ sceneFileBuildService.turntableUploadSuccess(params);
|
|
|
+ return ResultData.ok();
|
|
|
+ }
|
|
|
+
|
|
|
}
|