|
@@ -1,5 +1,6 @@
|
|
|
package com.fdkankan.scene.controller;
|
|
|
|
|
|
+import com.fdkankan.common.util.AesUtil;
|
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
|
import com.fdkankan.rabbitmq.util.RabbitMqProducer;
|
|
|
import com.fdkankan.web.response.ResultData;
|
|
@@ -17,7 +18,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @since 2022/8/17
|
|
|
**/
|
|
|
@RestController
|
|
|
-@RequestMapping("/test")
|
|
|
+@RequestMapping("/service/scene")
|
|
|
public class TestController {
|
|
|
|
|
|
@Autowired
|
|
@@ -25,9 +26,16 @@ public class TestController {
|
|
|
@Autowired
|
|
|
private FYunFileServiceInterface fYunFileService;
|
|
|
|
|
|
- @GetMapping("/test")
|
|
|
- public ResultData test(){
|
|
|
- return ResultData.ok(fYunFileService.fileExist("scene_result_data/KK-t-JCaoqtvy7AO/caches/images"));
|
|
|
+ @GetMapping("/getSign")
|
|
|
+ public ResultData getSign(String data) throws Exception {
|
|
|
+ String sign = AesUtil.encryptECB(data, "3d8904474ebbdbbd81c5952524dad646", "AES/ECB/PKCS5Padding");
|
|
|
+ return ResultData.ok(sign);
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/getPassword")
|
|
|
+ public ResultData getPassword(String data) throws Exception {
|
|
|
+ String password = AesUtil.encryptCBC(data, "0000000856753656", "pwel781esd6wglxm", AesUtil.ALMODE_CBC_NOPADDING);
|
|
|
+ return ResultData.ok(password);
|
|
|
}
|
|
|
|
|
|
}
|