public class WxOpenComponentServiceImpl extends Object implements WxOpenComponentService
ADD_TO_TEMPLATE_URL, API_AUTHORIZER_TOKEN_URL, API_COMPONENT_TOKEN_URL, API_CREATE_PREAUTHCODE_URL, API_GET_AUTHORIZER_INFO_URL, API_GET_AUTHORIZER_LIST, API_MINISHOP_ADD_LIMIT_DISCOUNT_URL, API_MINISHOP_GET_LIMIT_DISCOUNT_URL, API_MINISHOP_UPDATE_LIMIT_DICOUNT_STATUS_URL, API_QUERY_AUTH_URL, API_START_PUSH_TICKET, BATCH_GET_ENVID_URL, BATCH_SHARE_ENV, BIND_OPEN_URL, CHECK_SHOP_AUDITSTATUS_URL, COMPONENT_CLEAR_QUOTA_URL, COMPONENT_LOGIN_PAGE_URL, COMPONENT_MOBILE_LOGIN_PAGE_URL, CONNECT_OAUTH2_AUTHORIZE_URL, CREATE_OPEN_URL, DELETE_TEMPLATE_URL, DESCRIBE_ENVS_URL, FAST_REGISTER_BETA_WEAPP_URL, FAST_REGISTER_PERSONAL_WEAPP_SEARCH_URL, FAST_REGISTER_PERSONAL_WEAPP_URL, FAST_REGISTER_WEAPP_SEARCH_URL, FAST_REGISTER_WEAPP_URL, GET_AUTHORIZER_OPTION_URL, GET_OPEN_URL, GET_TEMPLATE_DRAFT_LIST_URL, GET_TEMPLATE_LIST_URL, HAVE_OPEN_URL, MINIAPP_JSCODE_2_SESSION, MINISHOP_ADD_SKU_URL, MINISHOP_ADD_SPU_URL, MINISHOP_BATCH_ADD_SKU_URL, MINISHOP_BRAND_GET_URL, MINISHOP_CATEGORY_GET_URL, MINISHOP_CREATE_COUPON_URL, MINISHOP_DEL_SKU_URL, MINISHOP_DEL_SPU_URL, MINISHOP_DELISTING_SPU_URL, MINISHOP_DELIVERY_TEMPLATE_GET_URL, MINISHOP_GET_COUPON_LIST, MINISHOP_GET_DELIVERY_COMPANY_URL, MINISHOP_LISTING_SPU_URL, MINISHOP_PUSH_COUPON, MINISHOP_SHOPCATEGORY_GET_URL, MINISHOP_UPDATE_COUPON_STATUS_URL, MINISHOP_UPDATE_COUPON_URL, MINISHOP_UPDATE_SKU_PRICE_URL, MINISHOP_UPDATE_SKU_STOCK_URL, MINISHOP_UPDATE_SKU_URL, MINISHOP_UPDATE_SPU_URL, MODIFY_ENV_URL, OAUTH2_ACCESS_TOKEN_URL, OAUTH2_REFRESH_TOKEN_URL, OPEN_APPLY_SET_ORDER_PATH_INFO, REGISTER_SHOP_URL, SET_AUTHORIZER_OPTION_URL, SUBMIT_BASICINFO_URL, SUBMIT_MERCHANTINFO_URL, UNBIND_OPEN_URL, UPLOAD_IMAGE_URL
构造器和说明 |
---|
WxOpenComponentServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
Integer |
addLimitDiscountGoods(String appId,
LimitDiscountGoods limitDiscountGoods)
添加抢购任务
每个商品(SPU)同一时间只能有一个抢购任务。
|
void |
addToTemplate(long draftId)
|
void |
addToTemplate(long draftId,
int templateType)
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/addtotemplate.html
将草稿添加到代码模板库.
|
WxOpenResult |
applySetOrderPathInfo(WxOpenMaApplyOrderPathInfo info)
申请设置订单页path信息
注意:一次提交不超过100个appid
|
Boolean |
bindOpenAccount(String appId,
String appIdType,
String openAppid)
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/api/account/bind.html
将公众号/小程序绑定到开放平台帐号下
|
WxOpenResult |
changeTcbEnv(String env)
转换云环境
https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/cloudbase-batch/env-mgnt/changeTcbEnv.html
|
String |
checkAuditStatus(String wxName)
https://api.weixin.qq.com/product/register/check_audit_status
异步状态查询
|
String |
checkAuditStatus(String appId,
String wxName)
已经获取到小商店的appId,那么需要通过accesstoken来获取该小商店的状态
|
boolean |
checkSignature(String timestamp,
String nonce,
String signature)
Check signature boolean.
|
boolean |
checkSignature(String appid,
String timestamp,
String nonce,
String signature)
Check signature boolean.
|
WxOpenResult |
clearQuotaV2(String appid)
使用 AppSecret 重置第三方平台 API 调用次数
https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openapi/clearComponentQuotaByAppSecret.html
|
WxOpenCreateResult |
createOpenAccount(String appId,
String appIdType)
https://open.weixin.qq.com/cgi-bin/showdocument?
|
void |
deleteTemplate(long templateId)
删除指定小程序代码模版.
|
WxOpenRegisterBetaWeappResult |
fastRegisterBetaWeapp(String name,
String openid)
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/beta_Mini_Programs/fastregister.html
注册试用小程序
|
WxOpenRegisterPersonalWeappResult |
fastRegisterPersonalWeapp(String idname,
String wxuser,
String componentPhone)
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/fastregisterpersonalweapp.html
快速创建个人小程序
|
WxOpenRegisterPersonalWeappResult |
fastRegisterPersonalWeappSearch(String taskid)
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/fastregisterpersonalweapp.html
查询个人小程序注册任务状态
|
WxOpenResult |
fastRegisterWeapp(String name,
String code,
String codeType,
String legalPersonaWechat,
String legalPersonaName,
String componentPhone)
https://open.weixin.qq.com/cgi-bin/showdocument?
|
WxOpenResult |
fastRegisterWeappSearch(String name,
String legalPersonaWechat,
String legalPersonaName)
https://open.weixin.qq.com/cgi-bin/showdocument?
|
String |
get(String uri)
Get string.
|
String |
get(String uri,
String accessTokenKey)
Get string.
|
String |
getAuthorizerAccessToken(String appId,
boolean forceRefresh)
Gets authorizer access token.
|
WxOpenAuthorizerInfoResult |
getAuthorizerInfo(String authorizerAppid)
获取授权方的帐号基本信息.
|
WxOpenAuthorizerListResult |
getAuthorizerList(int begin,
int len)
获取所有授权方列表.
|
WxOpenAuthorizerOptionResult |
getAuthorizerOption(String authorizerAppid,
String optionName)
获取授权方的选项设置信息.
|
String |
getComponentAccessToken(boolean forceRefresh)
Gets component access token.
|
List<LimitDiscountGoods> |
getLimitDiscountList(String appId,
Integer status)
status为0代表 还未结束的抢购任务,无论是否开始 status为1代表已经结束的 抢购任务 如果不填status,则两种都拉取
|
MinishopBrandList |
getMinishopBrands(String appId)
获取小商店品牌信息
|
MinishopCategories |
getMinishopCategories(String appId,
Integer fCatId)
获取小商店的类目详情
|
MinishopShopCatList |
getMinishopCatList(String appId)
获取小商店商品分类信息
|
WxMinishopAddGoodsSpuResult<List<WxMinishopDeliveryCompany>> |
getMinishopDeliveryCompany(String appId)
获取小商店的快递公司列表
|
MinishopDeliveryTemplateResult |
getMinishopDeliveryTemplate(String appId)
获取小商店运费模版信息
|
String |
getMobilePreAuthUrl(String redirectUri)
获取预授权链接(手机端预授权).
|
String |
getMobilePreAuthUrl(String redirectUri,
String authType,
String bizAppid)
获取预授权链接(手机端预授权).
|
WxOpenGetResult |
getOpenAccount(String appId,
String appIdType)
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/api/account/get.html
获取公众号/小程序所绑定的开放平台帐号
|
String |
getPreAuthUrl(String redirectUri)
获取用户授权页URL(来路URL和成功跳转URL 的域名都需要为三方平台设置的 登录授权的发起页域名).
|
String |
getPreAuthUrl(String redirectUri,
String authType,
String bizAppid)
.
|
WxOpenQueryAuthResult |
getQueryAuth(String authorizationCode)
使用授权码换取公众号或小程序的接口调用凭据和授权信息.
|
GetShareCloudBaseEnvResponse |
getShareCloudBaseEnv(List<String> appids)
查询环境共享信息
https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/cloudbase-batch/env-mgnt/getShareCloudbaseEnv.html
|
GetTcbEnvListResponse |
getTcbEnvList()
获取环境信息
https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/cloudbase-batch/env-mgnt/getTcbEnvList.html
|
List<WxOpenMaCodeTemplate> |
getTemplateDraftList()
获取草稿箱内的所有临时代码草稿.
|
List<WxOpenMaCodeTemplate> |
getTemplateList()
获取代码模版库中的所有小程序代码模版.
|
List<WxOpenMaCodeTemplate> |
getTemplateList(Integer templateType)
获取代码模版库中的所有小程序代码模版.
|
WxOpenFastMaService |
getWxFastMaServiceByAppid(String appId)
获取指定appid的快速创建的小程序服务.
|
WxOpenMaService |
getWxMaServiceByAppid(String appId)
获取指定appid的开放平台小程序服务(继承一般小程序服务能力).
|
WxOpenMinishopService |
getWxMinishopServiceByAppid(String appId)
获取指定appid的小商店服务
|
WxOpenMpService |
getWxMpServiceByAppid(String appId)
Gets wx mp service by appid.
|
WxOpenConfigStorage |
getWxOpenConfigStorage()
Gets wx open config storage.
|
WxOpenService |
getWxOpenService() |
WxOpenHaveResult |
haveOpen()
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/getbindopeninfo.html
查询公众号/小程序是否绑定 open 帐号
|
WxMaJscode2SessionResult |
miniappJscode2Session(String appId,
String jsCode)
Miniapp jscode 2 session wx ma jscode 2 session result.
|
WxMinishopAddGoodsSpuResult<WxMinishopAddGoodsSkuData> |
minishiopGoodsAddSku(String appId,
WxMinishopSku sku)
小商店新增sku信息
|
String |
minishopCommonPost(String appId,
String url,
String requestParam)
小商店通用Post接口
|
Integer |
minishopCreateCoupon(String appId,
WxMinishopCoupon couponInfo)
创建小商店优惠券
|
WxMinishopCouponStock |
minishopGetCouponList(String appId,
String startCreateTime,
String endCreateTime,
Integer status,
Integer page,
Integer pageSize)
与小商店对接,获取小商店的优惠券信息
|
WxMinishopAddGoodsSpuResult<WxMinishopAddGoodsSpuData> |
minishopGoodsAddSpu(String appId,
WxMinishopSpu spu)
小商店添加商品接口,添加商品后只是添加到草稿箱,需要通过调用上架商品,并通过审核才能在商城中显示。
|
WxOpenResult |
minishopGoodsBatchAddSku(String appId,
List<WxMinishopSku> skuList)
小商店批量新增sku信息
|
WxOpenResult |
minishopGoodsDelistingSpu(String appId,
Long productId,
Long outProductId)
下架商品
|
WxOpenResult |
minishopGoodsDelSku(String appId,
Long productId,
Long outProductId,
String outSkuId,
Long skuId)
小商店删除sku消息
|
WxOpenResult |
minishopGoodsDelSpu(String appId,
Long productId,
Long outProductId)
小商店删除商品接口,直接删除,不会存在小商店回收站里面。
|
WxOpenResult |
minishopGoodsListingSpu(String appId,
Long productId,
Long outProductId)
上架商品。
|
WxOpenResult |
minishopGoodsUpdateSku(String appId,
WxMinishopSku sku)
小商店更新sku
|
WxOpenResult |
minishopGoodsUpdateSkuPrice(String appId,
Long productId,
Long outProductId,
String outSkuId,
Long skuId,
Long salePrice,
Long marketPrice)
小商店更新sku价格
|
WxOpenResult |
minishopGoodsUpdateSkuStock(String appId,
Long productId,
Long outProductId,
String outSkuId,
Long skuId,
Integer type,
Integer stockNum)
小商店更新sku库存
|
WxMinishopAddGoodsSpuResult<WxMinishopAddGoodsSpuData> |
minishopGoodsUpdateSpu(String appId,
WxMinishopSpu spu)
小商店更新商品接口,不会直接影响上架商品的信息,而是存在草稿箱,需要调用上架商品接口,并通过审核才能在商城中显示。
|
WxOpenResult |
minishopPushCouponToUser(String appId,
String openId,
Integer couponId)
与小商店对接,将优惠券发送给某人
|
Integer |
minishopUpdateCoupon(String appId,
WxMinishopCoupon couponInfo)
与小商店对接,更新商城优惠券
|
WxOpenResult |
minishopUpdateCouponStatus(String appId,
Integer couponId,
Integer status)
从优惠券创建后status=1,可流转到2,4,5, COUPON_STATUS_VALID = 2 ;//生效 COUPON_STATUS_INVALID = 4 ;//已作废 COUPON_STATUS_DEL = 5;//删除
|
String |
oauth2buildAuthorizationUrl(String appId,
String redirectURI,
String scope,
String state)
Oauth 2 build authorization url string.
|
WxOAuth2AccessToken |
oauth2getAccessToken(String appId,
String code)
Oauth 2 get access token wx mp o auth 2 access token.
|
WxOAuth2AccessToken |
oauth2refreshAccessToken(String appId,
String refreshToken)
Oauth 2 refresh access token wx mp o auth 2 access token.
|
String |
post(String uri,
String postData)
Post string.
|
String |
post(String uri,
String postData,
String accessTokenKey)
Post string.
|
String |
post(String uri,
String postData,
String accessTokenKey,
String accessToken) |
WxOpenResult |
registerShop(String wxName,
String idCardName,
String idCardNumber,
String channelId,
Integer apiOpenstoreType,
String authPageUrl)
https://api.weixin.qq.com/product/register/register_shop?
|
String |
route(WxOpenXmlMessage wxMessage)
Route string.
|
void |
setAuthorizerOption(String authorizerAppid,
String optionName,
String optionValue)
设置授权方的选项信息.
|
ShareCloudBaseEnvResponse |
shareCloudBaseEnv(ShareCloudBaseEnvRequest request)
环境共享
https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/cloudbase-batch/env-mgnt/shareCloudbaseEnv.html
|
void |
startPushTicket()
启动ticket推送服务 该 API 用于启动ticket推送服务
|
WxOpenResult |
submitBasicInfo(String appId,
MinishopNameInfo nameInfo,
MinishopReturnInfo returnInfo) |
WxOpenResult |
submitMerchantInfo(String appId,
String subjectType,
MinishopBusiLicense busiLicense,
MinishopOrganizationCodeInfo organizationCodeInfo,
MinishopIdcardInfo idcardInfo,
MinishopSuperAdministratorInfo superAdministratorInfo,
String merchantShoprtName) |
Boolean |
unbindOpenAccount(String appId,
String appIdType,
String openAppid)
https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/api/account/unbind.html
将公众号/小程序从开放平台帐号下解绑
|
WxOpenResult |
updateLimitDiscountStatus(String appId,
Long taskId,
Integer status)
修改抢购任务状态
用于提前结束抢购任务,无论抢购任务是否在执行中,都可以关闭。
|
WxMinishopImageUploadResult |
uploadMinishopImagePicFile(String appId,
Integer height,
Integer width,
File file) |
public WxOpenMpService getWxMpServiceByAppid(String appId)
WxOpenComponentService
getWxMpServiceByAppid
在接口中 WxOpenComponentService
appId
- the appidpublic WxOpenMaService getWxMaServiceByAppid(String appId)
WxOpenComponentService
getWxMaServiceByAppid
在接口中 WxOpenComponentService
appId
- .public WxOpenFastMaService getWxFastMaServiceByAppid(String appId)
WxOpenComponentService
getWxFastMaServiceByAppid
在接口中 WxOpenComponentService
appId
- .public WxOpenMinishopService getWxMinishopServiceByAppid(String appId)
WxOpenComponentService
getWxMinishopServiceByAppid
在接口中 WxOpenComponentService
public WxOpenService getWxOpenService()
public WxOpenConfigStorage getWxOpenConfigStorage()
WxOpenComponentService
getWxOpenConfigStorage
在接口中 WxOpenComponentService
public boolean checkSignature(String timestamp, String nonce, String signature)
WxOpenComponentService
checkSignature
在接口中 WxOpenComponentService
timestamp
- the timestampnonce
- the noncesignature
- the signaturepublic void startPushTicket() throws WxErrorException
WxOpenComponentService
startPushTicket
在接口中 WxOpenComponentService
WxErrorException
- 如果调用失败返回此异常public String getComponentAccessToken(boolean forceRefresh) throws WxErrorException
WxOpenComponentService
getComponentAccessToken
在接口中 WxOpenComponentService
forceRefresh
- the force refreshWxErrorException
- the wx error exceptionpublic String post(String uri, String postData) throws WxErrorException
WxOpenComponentService
post
在接口中 WxOpenComponentService
uri
- the uripostData
- the post dataWxErrorException
- the wx error exceptionpublic String post(String uri, String postData, String accessTokenKey) throws WxErrorException
WxOpenComponentService
post
在接口中 WxOpenComponentService
uri
- the uripostData
- the post dataaccessTokenKey
- the access token keyWxErrorException
- the wx error exceptionpublic String post(String uri, String postData, String accessTokenKey, String accessToken) throws WxErrorException
post
在接口中 WxOpenComponentService
WxErrorException
public String get(String uri) throws WxErrorException
WxOpenComponentService
get
在接口中 WxOpenComponentService
uri
- the uriWxErrorException
- the wx error exceptionpublic String get(String uri, String accessTokenKey) throws WxErrorException
WxOpenComponentService
get
在接口中 WxOpenComponentService
uri
- the uriaccessTokenKey
- the access token keyWxErrorException
- the wx error exceptionpublic String getPreAuthUrl(String redirectUri) throws WxErrorException
WxOpenComponentService
getPreAuthUrl
在接口中 WxOpenComponentService
redirectUri
- the redirect uriWxErrorException
- the wx error exceptionpublic String getPreAuthUrl(String redirectUri, String authType, String bizAppid) throws WxErrorException
WxOpenComponentService
getPreAuthUrl
在接口中 WxOpenComponentService
redirectUri
- the redirect uriauthType
- 要授权的帐号类型:1则商户点击链接后,手机端仅展示公众号、2表示仅展示小程序,3表示公众号和小程序都展示。如果为未指定,则默认小程序和公众号都展示。第三方平台开发者可以使用本字段来控制授权的帐号类型。bizAppid
- 指定授权唯一的小程序或公众号 注:authType、bizAppid 互斥。WxErrorException
- the wx error exceptionpublic String getMobilePreAuthUrl(String redirectUri) throws WxErrorException
WxOpenComponentService
getMobilePreAuthUrl
在接口中 WxOpenComponentService
redirectUri
- .WxErrorException
- .public String getMobilePreAuthUrl(String redirectUri, String authType, String bizAppid) throws WxErrorException
WxOpenComponentService
getMobilePreAuthUrl
在接口中 WxOpenComponentService
redirectUri
- .authType
- .bizAppid
- .WxErrorException
- .public String route(WxOpenXmlMessage wxMessage) throws WxErrorException
WxOpenComponentService
route
在接口中 WxOpenComponentService
wxMessage
- the wx messageWxErrorException
- the wx error exceptionpublic WxOpenQueryAuthResult getQueryAuth(String authorizationCode) throws WxErrorException
WxOpenComponentService
getQueryAuth
在接口中 WxOpenComponentService
authorizationCode
- the authorization codeWxErrorException
- the wx error exceptionpublic WxOpenAuthorizerInfoResult getAuthorizerInfo(String authorizerAppid) throws WxErrorException
WxOpenComponentService
getAuthorizerInfo
在接口中 WxOpenComponentService
authorizerAppid
- the authorizer appidWxErrorException
- the wx error exceptionpublic WxOpenAuthorizerListResult getAuthorizerList(int begin, int len) throws WxErrorException
WxOpenComponentService
getAuthorizerList
在接口中 WxOpenComponentService
begin
- the beginlen
- the lenWxErrorException
- the wx error exceptionpublic WxOpenAuthorizerOptionResult getAuthorizerOption(String authorizerAppid, String optionName) throws WxErrorException
WxOpenComponentService
getAuthorizerOption
在接口中 WxOpenComponentService
authorizerAppid
- the authorizer appidoptionName
- the option nameWxErrorException
- the wx error exceptionpublic void setAuthorizerOption(String authorizerAppid, String optionName, String optionValue) throws WxErrorException
WxOpenComponentService
setAuthorizerOption
在接口中 WxOpenComponentService
authorizerAppid
- the authorizer appidoptionName
- the option nameoptionValue
- the option valueWxErrorException
- the wx error exceptionpublic String getAuthorizerAccessToken(String appId, boolean forceRefresh) throws WxErrorException
WxOpenComponentService
getAuthorizerAccessToken
在接口中 WxOpenComponentService
appId
- the appidforceRefresh
- the force refreshWxErrorException
- the wx error exceptionpublic WxOAuth2AccessToken oauth2getAccessToken(String appId, String code) throws WxErrorException
WxOpenComponentService
oauth2getAccessToken
在接口中 WxOpenComponentService
appId
- the appidcode
- the codeWxErrorException
- the wx error exceptionWxMpService.getOAuth2Service()
public boolean checkSignature(String appid, String timestamp, String nonce, String signature)
WxOpenComponentService
checkSignature
在接口中 WxOpenComponentService
appid
- the app idtimestamp
- the timestampnonce
- the noncesignature
- the signaturepublic WxOAuth2AccessToken oauth2refreshAccessToken(String appId, String refreshToken) throws WxErrorException
WxOpenComponentService
oauth2refreshAccessToken
在接口中 WxOpenComponentService
appId
- the appidrefreshToken
- the refresh tokenWxErrorException
- the wx error exceptionpublic String oauth2buildAuthorizationUrl(String appId, String redirectURI, String scope, String state)
WxOpenComponentService
oauth2buildAuthorizationUrl
在接口中 WxOpenComponentService
appId
- the appidredirectURI
- the redirect uriscope
- the scopestate
- the stateWxMpService.getOAuth2Service()
public WxMaJscode2SessionResult miniappJscode2Session(String appId, String jsCode) throws WxErrorException
WxOpenComponentService
miniappJscode2Session
在接口中 WxOpenComponentService
appId
- the app idjsCode
- the js codeWxErrorException
- the wx error exceptionpublic List<WxOpenMaCodeTemplate> getTemplateDraftList() throws WxErrorException
WxOpenComponentService
getTemplateDraftList
在接口中 WxOpenComponentService
WxErrorException
- 获取失败时返回,具体错误码请看此接口的注释文档public List<WxOpenMaCodeTemplate> getTemplateList() throws WxErrorException
WxOpenComponentService
getTemplateList
在接口中 WxOpenComponentService
WxErrorException
- 获取失败时返回,具体错误码请看此接口的注释文档WxOpenComponentService.getTemplateList(Integer)
public List<WxOpenMaCodeTemplate> getTemplateList(Integer templateType) throws WxErrorException
WxOpenComponentService
getTemplateList
在接口中 WxOpenComponentService
templateType
- 模板类型,可空,默认全部,填0普通模,1标准模板WxErrorException
- 获取失败时返回,具体错误码请看此接口的注释文档public void addToTemplate(long draftId) throws WxErrorException
WxOpenComponentService
WxOpenComponentService.addToTemplate(long, int)
.
将草稿箱的草稿选为小程序代码模版.addToTemplate
在接口中 WxOpenComponentService
draftId
- 草稿ID,本字段可通过“获取草稿箱内的所有临时代码草稿”接口获得WxErrorException
- 操作失败时抛出,具体错误码请看此接口的注释文档#getTemplateDraftList
public void addToTemplate(long draftId, int templateType) throws WxErrorException
WxOpenComponentService
addToTemplate
在接口中 WxOpenComponentService
draftId
- 草稿ID,本字段可通过“获取草稿箱内的所有临时代码草稿”接口获得templateType
- 代码模版类型,【普通模板:0, 标准模板:1】WxErrorException
- 操作失败时抛出,具体错误码请看此接口的注释文档#getTemplateDraftList
public void deleteTemplate(long templateId) throws WxErrorException
WxOpenComponentService
deleteTemplate
在接口中 WxOpenComponentService
templateId
- 要删除的模版IDWxErrorException
- 操作失败时抛出,具体错误码请看此接口的注释文档#getTemplateList
public WxOpenCreateResult createOpenAccount(String appId, String appIdType) throws WxErrorException
WxOpenComponentService
createOpenAccount
在接口中 WxOpenComponentService
appId
- 公众号/小程序的appIdappIdType
- appId类型 me.chanjar.weixin.common.api.WxConsts.AppIdType mp-公众号 mini-小程序WxErrorException
- .public Boolean bindOpenAccount(String appId, String appIdType, String openAppid) throws WxErrorException
WxOpenComponentService
bindOpenAccount
在接口中 WxOpenComponentService
appId
- 公众号/小程序的appIdappIdType
- appId类型 me.chanjar.weixin.common.api.WxConsts.AppIdType mp-公众号 mini-小程序openAppid
- 开放平台帐号 appid,由创建开发平台帐号接口返回WxErrorException
- the wx error exceptionpublic Boolean unbindOpenAccount(String appId, String appIdType, String openAppid) throws WxErrorException
WxOpenComponentService
unbindOpenAccount
在接口中 WxOpenComponentService
appId
- 公众号/小程序的appIdappIdType
- appId类型 me.chanjar.weixin.common.api.WxConsts.AppIdType mp-公众号 mini-小程序openAppid
- 开放平台帐号 appid,由创建开发平台帐号接口返回WxErrorException
- the wx error exceptionpublic WxOpenGetResult getOpenAccount(String appId, String appIdType) throws WxErrorException
WxOpenComponentService
getOpenAccount
在接口中 WxOpenComponentService
appId
- 公众号/小程序的appIdappIdType
- appId类型 me.chanjar.weixin.common.api.WxConsts.AppIdType mp-公众号 mini-小程序WxErrorException
- the wx error exceptionpublic WxOpenHaveResult haveOpen() throws WxErrorException
WxOpenComponentService
haveOpen
在接口中 WxOpenComponentService
WxErrorException
- the wx error exceptionpublic WxOpenResult fastRegisterWeapp(String name, String code, String codeType, String legalPersonaWechat, String legalPersonaName, String componentPhone) throws WxErrorException
WxOpenComponentService
fastRegisterWeapp
在接口中 WxOpenComponentService
name
- 企业名(需与工商部门登记信息一致)code
- 企业代码codeType
- 企业代码类型 1:统一社会信用代码(18位) 2:组织机构代码(9位xxxxxxxx-x) 3:营业执照注册号(15位)legalPersonaWechat
- 法人微信号legalPersonaName
- 法人姓名(绑定银行卡)componentPhone
- 第三方联系电话(方便法人与第三方联系)WxErrorException
- .public WxOpenResult fastRegisterWeappSearch(String name, String legalPersonaWechat, String legalPersonaName) throws WxErrorException
WxOpenComponentService
fastRegisterWeappSearch
在接口中 WxOpenComponentService
name
- 企业名(需与工商部门登记信息一致)legalPersonaWechat
- 法人微信号legalPersonaName
- 法人姓名(绑定银行卡)WxErrorException
- .public WxOpenRegisterPersonalWeappResult fastRegisterPersonalWeapp(String idname, String wxuser, String componentPhone) throws WxErrorException
WxOpenComponentService
fastRegisterPersonalWeapp
在接口中 WxOpenComponentService
idname
- 个人用户名字wxuser
- 个人用户微信号componentPhone
- 第三方联系电话WxErrorException
public WxOpenRegisterPersonalWeappResult fastRegisterPersonalWeappSearch(String taskid) throws WxErrorException
WxOpenComponentService
fastRegisterPersonalWeappSearch
在接口中 WxOpenComponentService
taskid
- 任务IDWxErrorException
public WxOpenRegisterBetaWeappResult fastRegisterBetaWeapp(String name, String openid) throws WxErrorException
WxOpenComponentService
fastRegisterBetaWeapp
在接口中 WxOpenComponentService
name
- 小程序名称openid
- 微信用户的openid(不是微信号)WxErrorException
public WxOpenResult registerShop(String wxName, String idCardName, String idCardNumber, String channelId, Integer apiOpenstoreType, String authPageUrl) throws WxErrorException
WxOpenComponentService
registerShop
在接口中 WxOpenComponentService
wxName
- 微信号(必填)idCardName
- 身份证姓名(必填)idCardNumber
- 身份证号(必填)channelId
- 渠道号,服务商后台生成渠道信息。(选填)apiOpenstoreType
- 1-整店打包(开通小商店),2-组件开放(开通小程序,并且已经完整的嵌入电商功能)(必填)authPageUrl
- 授权url(选填)WxErrorException
public String checkAuditStatus(String wxName) throws WxErrorException
WxOpenComponentService
checkAuditStatus
在接口中 WxOpenComponentService
wxName
- 微信号WxErrorException
public String checkAuditStatus(String appId, String wxName) throws WxErrorException
WxOpenComponentService
checkAuditStatus
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult submitMerchantInfo(String appId, String subjectType, MinishopBusiLicense busiLicense, MinishopOrganizationCodeInfo organizationCodeInfo, MinishopIdcardInfo idcardInfo, MinishopSuperAdministratorInfo superAdministratorInfo, String merchantShoprtName) throws WxErrorException
submitMerchantInfo
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult submitBasicInfo(String appId, MinishopNameInfo nameInfo, MinishopReturnInfo returnInfo) throws WxErrorException
submitBasicInfo
在接口中 WxOpenComponentService
WxErrorException
public WxMinishopImageUploadResult uploadMinishopImagePicFile(String appId, Integer height, Integer width, File file) throws WxErrorException
uploadMinishopImagePicFile
在接口中 WxOpenComponentService
WxErrorException
public MinishopCategories getMinishopCategories(String appId, Integer fCatId) throws WxErrorException
WxOpenComponentService
getMinishopCategories
在接口中 WxOpenComponentService
WxErrorException
public MinishopBrandList getMinishopBrands(String appId) throws WxErrorException
WxOpenComponentService
getMinishopBrands
在接口中 WxOpenComponentService
WxErrorException
public MinishopDeliveryTemplateResult getMinishopDeliveryTemplate(String appId) throws WxErrorException
WxOpenComponentService
getMinishopDeliveryTemplate
在接口中 WxOpenComponentService
WxErrorException
public MinishopShopCatList getMinishopCatList(String appId) throws WxErrorException
WxOpenComponentService
getMinishopCatList
在接口中 WxOpenComponentService
WxErrorException
public WxMinishopAddGoodsSpuResult<List<WxMinishopDeliveryCompany>> getMinishopDeliveryCompany(String appId) throws WxErrorException
WxOpenComponentService
getMinishopDeliveryCompany
在接口中 WxOpenComponentService
WxErrorException
public Integer minishopCreateCoupon(String appId, WxMinishopCoupon couponInfo) throws WxErrorException
WxOpenComponentService
minishopCreateCoupon
在接口中 WxOpenComponentService
WxErrorException
public WxMinishopCouponStock minishopGetCouponList(String appId, String startCreateTime, String endCreateTime, Integer status, Integer page, Integer pageSize) throws WxErrorException
WxOpenComponentService
minishopGetCouponList
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult minishopPushCouponToUser(String appId, String openId, Integer couponId) throws WxErrorException
WxOpenComponentService
minishopPushCouponToUser
在接口中 WxOpenComponentService
WxErrorException
public Integer minishopUpdateCoupon(String appId, WxMinishopCoupon couponInfo) throws WxErrorException
WxOpenComponentService
minishopUpdateCoupon
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult minishopUpdateCouponStatus(String appId, Integer couponId, Integer status) throws WxErrorException
WxOpenComponentService
minishopUpdateCouponStatus
在接口中 WxOpenComponentService
WxErrorException
public WxMinishopAddGoodsSpuResult<WxMinishopAddGoodsSpuData> minishopGoodsAddSpu(String appId, WxMinishopSpu spu) throws WxErrorException
WxOpenComponentService
minishopGoodsAddSpu
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult minishopGoodsDelSpu(String appId, Long productId, Long outProductId) throws WxErrorException
WxOpenComponentService
minishopGoodsDelSpu
在接口中 WxOpenComponentService
WxErrorException
public WxMinishopAddGoodsSpuResult<WxMinishopAddGoodsSpuData> minishopGoodsUpdateSpu(String appId, WxMinishopSpu spu) throws WxErrorException
WxOpenComponentService
minishopGoodsUpdateSpu
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult minishopGoodsListingSpu(String appId, Long productId, Long outProductId) throws WxErrorException
WxOpenComponentService
minishopGoodsListingSpu
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult minishopGoodsDelistingSpu(String appId, Long productId, Long outProductId) throws WxErrorException
WxOpenComponentService
minishopGoodsDelistingSpu
在接口中 WxOpenComponentService
WxErrorException
public WxMinishopAddGoodsSpuResult<WxMinishopAddGoodsSkuData> minishiopGoodsAddSku(String appId, WxMinishopSku sku) throws WxErrorException
WxOpenComponentService
minishiopGoodsAddSku
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult minishopGoodsBatchAddSku(String appId, List<WxMinishopSku> skuList) throws WxErrorException
WxOpenComponentService
minishopGoodsBatchAddSku
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult minishopGoodsDelSku(String appId, Long productId, Long outProductId, String outSkuId, Long skuId) throws WxErrorException
WxOpenComponentService
minishopGoodsDelSku
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult minishopGoodsUpdateSku(String appId, WxMinishopSku sku) throws WxErrorException
WxOpenComponentService
minishopGoodsUpdateSku
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult minishopGoodsUpdateSkuPrice(String appId, Long productId, Long outProductId, String outSkuId, Long skuId, Long salePrice, Long marketPrice) throws WxErrorException
WxOpenComponentService
minishopGoodsUpdateSkuPrice
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult minishopGoodsUpdateSkuStock(String appId, Long productId, Long outProductId, String outSkuId, Long skuId, Integer type, Integer stockNum) throws WxErrorException
WxOpenComponentService
minishopGoodsUpdateSkuStock
在接口中 WxOpenComponentService
WxErrorException
public String minishopCommonPost(String appId, String url, String requestParam) throws WxErrorException
WxOpenComponentService
minishopCommonPost
在接口中 WxOpenComponentService
WxErrorException
public Integer addLimitDiscountGoods(String appId, LimitDiscountGoods limitDiscountGoods) throws WxErrorException
WxOpenComponentService
addLimitDiscountGoods
在接口中 WxOpenComponentService
WxErrorException
public List<LimitDiscountGoods> getLimitDiscountList(String appId, Integer status) throws WxErrorException
WxOpenComponentService
getLimitDiscountList
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult updateLimitDiscountStatus(String appId, Long taskId, Integer status) throws WxErrorException
WxOpenComponentService
updateLimitDiscountStatus
在接口中 WxOpenComponentService
WxErrorException
public GetShareCloudBaseEnvResponse getShareCloudBaseEnv(List<String> appids) throws WxErrorException
WxOpenComponentService
getShareCloudBaseEnv
在接口中 WxOpenComponentService
appids
- 要查询的appidWxErrorException
public GetTcbEnvListResponse getTcbEnvList() throws WxErrorException
WxOpenComponentService
getTcbEnvList
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult changeTcbEnv(String env) throws WxErrorException
WxOpenComponentService
changeTcbEnv
在接口中 WxOpenComponentService
env
- 环境idWxErrorException
public ShareCloudBaseEnvResponse shareCloudBaseEnv(ShareCloudBaseEnvRequest request) throws WxErrorException
WxOpenComponentService
shareCloudBaseEnv
在接口中 WxOpenComponentService
WxErrorException
public WxOpenResult clearQuotaV2(String appid) throws WxErrorException
WxOpenComponentService
clearQuotaV2
在接口中 WxOpenComponentService
appid
- 授权用户appidWxErrorException
public WxOpenResult applySetOrderPathInfo(WxOpenMaApplyOrderPathInfo info) throws WxErrorException
applySetOrderPathInfo
在接口中 WxOpenComponentService
info
- 订单页path信息WxErrorException
- .Copyright © 2024. All rights reserved.