|
@@ -34,25 +34,8 @@ public class CallbackController {
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|
|
map.put("auth_code", authCode);
|
|
map.put("auth_code", authCode);
|
|
map.put("state", state);
|
|
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) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
result = e.getMessage();
|
|
result = e.getMessage();
|