| @@ -696,8 +696,6 @@ public class TtOpenMaServiceImpl extends TtMaServiceImpl implements TtOpenMaServ | |||||
| @Override | @Override | ||||
| public TtOpenResult addShopMaterial(TtOpenShopMaterial shopMaterial)throws WxErrorException { | public TtOpenResult addShopMaterial(TtOpenShopMaterial shopMaterial)throws WxErrorException { | ||||
| String uri = API_ADD_SHOP_MATERIAL + "?component_appid=" + ttOpenComponentService.getWxOpenConfigStorage().getComponentAppId(); | String uri = API_ADD_SHOP_MATERIAL + "?component_appid=" + ttOpenComponentService.getWxOpenConfigStorage().getComponentAppId(); | ||||
| log.info("uri--------"+uri); | |||||
| log.info("data--------"+shopMaterial.toJson()); | |||||
| String response = ttOpenComponentService.postByAppAccessToken(appId,uri,shopMaterial.toJson(),"authorizer_access_token"); | String response = ttOpenComponentService.postByAppAccessToken(appId,uri,shopMaterial.toJson(),"authorizer_access_token"); | ||||
| log.info("response--------"+response); | log.info("response--------"+response); | ||||
| return TtOpenGsonBuilder.create().fromJson(response, TtOpenResult.class); | return TtOpenGsonBuilder.create().fromJson(response, TtOpenResult.class); | ||||
| @@ -705,7 +703,8 @@ public class TtOpenMaServiceImpl extends TtMaServiceImpl implements TtOpenMaServ | |||||
| @Override | @Override | ||||
| public String queryShopMeaterial(String supplierExtId) throws WxErrorException { | public String queryShopMeaterial(String supplierExtId) throws WxErrorException { | ||||
| String uri = APIQUERY_SHOP_MATERIAL + "?component_appid=" + ttOpenComponentService.getWxOpenConfigStorage().getComponentAppId(); | |||||
| String uri = APIQUERY_SHOP_MATERIAL + "?component_appid=" + ttOpenComponentService.getWxOpenConfigStorage().getComponentAppId() | |||||
| +"&supplier_ext_id="+supplierExtId; | |||||
| String response = ttOpenComponentService.getByAppAccessToken(appId, uri, "authorizer_access_token"); | String response = ttOpenComponentService.getByAppAccessToken(appId, uri, "authorizer_access_token"); | ||||
| return response; | return response; | ||||
| } | } | ||||