public class WxChannelBasicServiceImpl extends Object implements WxChannelBasicService
| 构造器和说明 |
|---|
WxChannelBasicServiceImpl(BaseWxChannelServiceImpl shopService) |
| 限定符和类型 | 方法和说明 |
|---|---|
AddressCodeResponse |
getAddressCode(Integer code)
获取地址编码(最多获取4级)
|
ChannelImageResponse |
getImg(String mediaId)
根据media_id获取图片
|
ShopInfoResponse |
getShopInfo()
获取店铺基本信息
|
ChannelImageInfo |
uploadImg(int respType,
File file,
int height,
int width)
上传图片
|
ChannelImageInfo |
uploadImg(int respType,
String imgUrl)
上传图片
|
QualificationFileResponse |
uploadQualificationFile(File file)
上传资质图片
|
public WxChannelBasicServiceImpl(BaseWxChannelServiceImpl shopService)
public ShopInfoResponse getShopInfo() throws WxErrorException
WxChannelBasicServicegetShopInfo 在接口中 WxChannelBasicServiceWxErrorExceptionpublic ChannelImageInfo uploadImg(int respType, String imgUrl) throws WxErrorException
WxChannelBasicServiceuploadImg 在接口中 WxChannelBasicServicerespType - 0:media_id和pay_media_id;1:图片链接(商品信息相关图片请务必使用此参数得到链接)imgUrl - 图片urlWxErrorException - 异常public ChannelImageInfo uploadImg(int respType, File file, int height, int width) throws WxErrorException
WxChannelBasicServiceuploadImg 在接口中 WxChannelBasicServicerespType - 0:media_id和pay_media_id;1:图片链接(商品信息相关图片请务必使用此参数得到链接)file - 图片文件height - 图片的高,单位:像素width - 图片的宽,单位:像素WxErrorException - 异常public QualificationFileResponse uploadQualificationFile(File file) throws WxErrorException
WxChannelBasicServiceuploadQualificationFile 在接口中 WxChannelBasicServicefile - 资质图片WxErrorException - 异常public ChannelImageResponse getImg(String mediaId) throws WxErrorException
WxChannelBasicServicegetImg 在接口中 WxChannelBasicServicemediaId - media_idWxErrorExceptionpublic AddressCodeResponse getAddressCode(Integer code) throws WxErrorException
WxChannelBasicServicegetAddressCode 在接口中 WxChannelBasicServicecode - 地址行政编码,不填或者填0时,拉取全国的省级行政编码WxErrorExceptionCopyright © 2025. All rights reserved.