Explorar o código

V1.1.3 调整回调

yumeng %!s(int64=4) %!d(string=hai) anos
pai
achega
899950831d

+ 2 - 19
src/main/java/cn/com/ctop/callback/controller/CallbackController.java

@@ -34,25 +34,8 @@ public class CallbackController {
             Map<String, Object> map = new HashMap<>();
             map.put("auth_code", authCode);
             map.put("state", state);
-            String channelType = json.getString("channelType");
-            if (channelType == null || channelType == "") {
-                result = HttpUtils.httpGet("http://139.186.27.96:8804/jeecg-boot/kuaishou", map, null);
-            } else if (channelType.equals("jiaoyang")) {
-                logger.info("骄阳回调开始");
-                result = HttpUtils.httpGet("http://118.24.244.213:8805/jeecg-boot/kuaishou", map, null);
-            } else if (channelType.equals("youteng")) {
-                result = HttpUtils.httpGet("http://129.28.197.250:8804/jeecg-boot/kuaishou", map, null);
-
-            }
-
-          /*  if (channelType.equals("jiaoyang")) {
-                logger.info("骄阳回调开始");
-                result = HttpUtils.httpGet("http://118.24.244.213:8805/jeecg-boot/kuaishou", map, null);
-
-            } else {
-                logger.info("有腾回调开始");
-                result = HttpUtils.httpGet("http://129.28.197.250:8804/jeecg-boot/kuaishou", map, null);
-            }*/
+            String callbackUrl = json.getString("callbackUrl");
+            result = HttpUtils.httpGet(callbackUrl, map, null);
         } catch (Exception e) {
             e.printStackTrace();
             result = e.getMessage();