|
|
|
@@ -62,11 +62,13 @@ public class WxGooagooServiceImpl implements WxGooagooService { |
|
|
|
String res = HttpUtil.doPost(config.getApiUrl(), paramMap); |
|
|
|
|
|
|
|
JSONObject result = JSONObject.parseObject(res); |
|
|
|
logger.info("GOOAGOO_RESULT{}"+result.toJSONString()); |
|
|
|
if (result == null) |
|
|
|
return new ResultData(ErrorCode.GOOAGOO_INFO_NOT_FOUND); |
|
|
|
if ("OPEN_SUCCESS".equals(result.getString("rescode"))){ |
|
|
|
return new ResultData(Result.SUCCESS,result.getString("resmsg"), |
|
|
|
result.getJSONObject("data")); |
|
|
|
result.get("data")); |
|
|
|
// result.getJSONArray("data")); |
|
|
|
} else{ |
|
|
|
return new ResultData(ErrorCode.GOOAGOO_OPEN_FAIL,result.getString("resmsg")); |
|
|
|
} |
|
|
|
@@ -81,7 +83,6 @@ public class WxGooagooServiceImpl implements WxGooagooService { |
|
|
|
map.put("timestamp", DateUtils.getSystemTime("yyyyMMDDHHmmss")); |
|
|
|
map.put("messageFormat","json"); |
|
|
|
map.put("v",v); |
|
|
|
map.put("sign",config.getSignKey()); |
|
|
|
map.put("signMethod","MD5"); |
|
|
|
|
|
|
|
return map; |
|
|
|
|