|
|
|
@@ -1,5 +1,6 @@ |
|
|
|
package com.iformall.service.impl; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.iformall.common.ErrorCode; |
|
|
|
import com.iformall.common.ResultData; |
|
|
|
@@ -673,6 +674,17 @@ public class DataTowerServiceImpl implements DataTowerService { |
|
|
|
return new ResultData(ErrorCode.WIWIDE_INFO_NOT_FOUND); |
|
|
|
} |
|
|
|
wiWideInfo = list.get(0); |
|
|
|
List<Integer> cap = JSONArray.parseArray(wiWideInfo.getCapability(), Integer.class); |
|
|
|
Integer dataType; |
|
|
|
try { |
|
|
|
dataType = Integer.valueOf(params.get("dataType")); |
|
|
|
}catch (Exception e){ |
|
|
|
return new ResultData(ErrorCode.WIWIDE_INFO_NOT_FOUND); |
|
|
|
} |
|
|
|
|
|
|
|
if (cap == null || !cap.stream().anyMatch(c->c.equals(dataType))) { |
|
|
|
return new ResultData(ErrorCode.WIWIDE_INFO_NOT_FOUND); |
|
|
|
} |
|
|
|
String res = WiwideUtil.queryData(wiWideInfo, getWiwideToken(wiWideInfo), params); |
|
|
|
JSONObject result = JSONObject.parseObject(res); |
|
|
|
if (result.getInteger("result") == 200){ |
|
|
|
|