Authored by 胡古飞

fix shopsNew

... ... @@ -288,9 +288,10 @@ public class ShopsServiceImpl extends BaseService implements IShopsService, Appl
// 3、查询店铺和全球购品牌
SearchApiResult shopListApiResult = shopListService.searchShopList(paramMap);
if (shopListApiResult == null) {
if (shopListApiResult != null) {
JSONObject jsonObject = (JSONObject) shopListApiResult.getData();
JSONArray shop_list = jsonObject.getJSONArray("shop_list");
if (shop_list != null && !shop_list.isEmpty()) {
for (int i = 0; i < shop_list.size(); i++) {
JSONObject shop_info = shop_list.getJSONObject(0);
if (shop_info.getJSONObject("yoho_shop") != null) {
... ... @@ -305,10 +306,11 @@ public class ShopsServiceImpl extends BaseService implements IShopsService, Appl
}
}
}
}
// 4、获取有货品牌信息
returnMap.put("brand", this.getYohoBrand(paramMap));
//5、返回结果
// 5、返回结果
return searchApiResult.setData(returnMap);
} catch (Exception e) {
return SearchApiResultUtils.errorSearchApiResult("searchShopsNew", paramMap, e);
... ...