Authored by ken.hu

fix

... ... @@ -5,6 +5,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.yoho.core.redis.cluster.operations.serializer.RedisKeyBuilder;
... ... @@ -38,7 +39,7 @@ public class ProductQueryServiceImpl implements IProductQueryService {
logger.info("begin invoke ufo.product.series.template, param is:{}", params);
ApiResponse apiResponse = ufoServiceCaller.call(SERIES_METHOD, ApiResponse.class, params);
if (null != apiResponse && apiResponse.getCode() == 200) {
JSONObject productSeriesJSON = (JSONObject) apiResponse.getData();
JSONObject productSeriesJSON = (JSONObject) JSON.toJSON(apiResponse.getData());
if (null != productSeriesJSON && null != productSeriesJSON.get("list")) {
data = productSeriesJSON.getJSONArray("list");
}
... ... @@ -83,7 +84,7 @@ public class ProductQueryServiceImpl implements IProductQueryService {
logger.info("begin invoke ufo.product.sort.template, param is:{}", params);
ApiResponse apiResponse = ufoServiceCaller.call(CATEGORY_METHOD, ApiResponse.class, params);
if (null != apiResponse && apiResponse.getCode() == 200) {
JSONObject productCategoryJSON = (JSONObject) apiResponse.getData();
JSONObject productCategoryJSON = (JSONObject) JSON.toJSON(apiResponse.getData());
if (null != productCategoryJSON) {
data = productCategoryJSON;
}
... ...