dengsixing 1 tahun lalu
induk
melakukan
4dbbea378c

File diff ditekan karena terlalu besar
+ 1 - 0
src/main/java/com/fdkankan/common/ThreeDESUtil.java


+ 25 - 0
src/main/java/com/fdkankan/feign/WS4AServiceClient.java

@@ -0,0 +1,25 @@
+package com.fdkankan.feign;
+
+import com.alibaba.fastjson.JSONObject;
+import com.chinatower.framework.common_service.response.ProcessResult;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.http.MediaType;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+
+/**
+ * @author SQL
+ * @ClassName WS4AServiceClient
+ * @Description
+ * @Date 2023/2/3 14:56
+ */
+@FeignClient(name = "WS4A",  url = "${gateway.url}")
+public interface WS4AServiceClient {
+
+    @PostMapping(path = "/WS4A/token/checkProwadaToken", produces = MediaType.APPLICATION_JSON_VALUE)
+    ProcessResult checkProwadaToken(@RequestBody JSONObject args);
+
+    @PostMapping(path = "/WS4A/token/createProwadaToken", produces = MediaType.APPLICATION_JSON_VALUE)
+    ProcessResult createProwadaToken(@RequestBody JSONObject args);
+
+}

+ 5 - 4
src/main/java/com/fdkankan/scene/service/impl/SceneServiceImpl.java

@@ -44,6 +44,7 @@ public class SceneServiceImpl extends ServiceImpl<SceneMapper, Scene> implements
 
     @Value("${tieta.checkToken.syscode}")
     private String syscode;
+    @Value("${}")
 
     @Autowired
     private SceneFileMappingService sceneFileMappingService;
@@ -63,10 +64,10 @@ public class SceneServiceImpl extends ServiceImpl<SceneMapper, Scene> implements
         params.put("ACCTID", acctId);
         params.put("TOKEN", token);
 
-        JSONObject result = tietaFeignClient.checkProwadaTokenMicro(params);
-        if(!"0".equals(result.get("RSP"))){
-            return ResultData.error(4000, (String) result.get("ERRDESC"));
-        }
+//        JSONObject result = tietaFeignClient.checkProwadaTokenMicro(params);
+//        if(!"0".equals(result.get("RSP"))){
+//            return ResultData.error(4000, (String) result.get("ERRDESC"));
+//        }
 
         String num = param.getNum();
         SceneInfoVO sceneInfoVO = null;