|
@@ -40,7 +40,7 @@ public class KindServiceImpl implements KindService {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public List<Kind> findByNameCn(String name) throws Exception {
|
|
public List<Kind> findByNameCn(String name) throws Exception {
|
|
|
- String url = conf.getB2c() + "/api/product/kind/findByName" + name;
|
|
|
|
|
|
|
+ String url = conf.getB2c() + "/api/product/kind/findByName/" + name;
|
|
|
HttpUtil.Response res = HttpUtil.sendGetRequest(url, null);
|
|
HttpUtil.Response res = HttpUtil.sendGetRequest(url, null);
|
|
|
if(res.getStatusCode() != 200) throw new Exception("查询类目信息失败");
|
|
if(res.getStatusCode() != 200) throw new Exception("查询类目信息失败");
|
|
|
return JSONObject.parseArray(res.getResponseText(), Kind.class);
|
|
return JSONObject.parseArray(res.getResponseText(), Kind.class);
|