|
|
@@ -696,6 +696,8 @@ public class TtOpenMaServiceImpl extends TtMaServiceImpl implements TtOpenMaServ |
|
|
|
@Override |
|
|
|
public TtOpenResult addShopMaterial(TtOpenShopMaterial shopMaterial)throws WxErrorException { |
|
|
|
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"); |
|
|
|
return TtOpenGsonBuilder.create().fromJson(response, TtOpenResult.class); |
|
|
|
} |
|
|
|