您的浏览器已禁用 JavaScript。
跳过导航链接
me.chanjar.weixin.open.api

接口 WxOpenComponentService

    • 字段详细资料

      • API_COMPONENT_TOKEN_URL

        static final String API_COMPONENT_TOKEN_URL
        The constant API_COMPONENT_TOKEN_URL.
        另请参阅:
        常量字段值
      • API_START_PUSH_TICKET

        static final String API_START_PUSH_TICKET
        启动ticket推送服务
        另请参阅:
        常量字段值
      • API_CREATE_PREAUTHCODE_URL

        static final String API_CREATE_PREAUTHCODE_URL
        The constant API_CREATE_PREAUTHCODE_URL.
        另请参阅:
        常量字段值
      • API_QUERY_AUTH_URL

        static final String API_QUERY_AUTH_URL
        The constant API_QUERY_AUTH_URL.
        另请参阅:
        常量字段值
      • API_AUTHORIZER_TOKEN_URL

        static final String API_AUTHORIZER_TOKEN_URL
        The constant API_AUTHORIZER_TOKEN_URL.
        另请参阅:
        常量字段值
      • API_GET_AUTHORIZER_INFO_URL

        static final String API_GET_AUTHORIZER_INFO_URL
        The constant API_GET_AUTHORIZER_INFO_URL.
        另请参阅:
        常量字段值
      • GET_AUTHORIZER_OPTION_URL

        static final String GET_AUTHORIZER_OPTION_URL
        The constant GET_AUTHORIZER_OPTION_URL.
        另请参阅:
        常量字段值
      • SET_AUTHORIZER_OPTION_URL

        static final String SET_AUTHORIZER_OPTION_URL
        The constant SET_AUTHORIZER_OPTION_URL.
        另请参阅:
        常量字段值
      • API_GET_AUTHORIZER_LIST

        static final String API_GET_AUTHORIZER_LIST
        The constant API_GET_AUTHORIZER_LIST.
        另请参阅:
        常量字段值
      • COMPONENT_LOGIN_PAGE_URL

        static final String COMPONENT_LOGIN_PAGE_URL
        The constant COMPONENT_LOGIN_PAGE_URL.
        另请参阅:
        常量字段值
      • COMPONENT_MOBILE_LOGIN_PAGE_URL

        static final String COMPONENT_MOBILE_LOGIN_PAGE_URL
        手机端打开授权链接.
        另请参阅:
        常量字段值
      • CONNECT_OAUTH2_AUTHORIZE_URL

        static final String CONNECT_OAUTH2_AUTHORIZE_URL
        The constant CONNECT_OAUTH2_AUTHORIZE_URL.
        另请参阅:
        常量字段值
      • OAUTH2_ACCESS_TOKEN_URL

        static final String OAUTH2_ACCESS_TOKEN_URL
        用code换取oauth2的access token.
        另请参阅:
        常量字段值
      • OAUTH2_REFRESH_TOKEN_URL

        static final String OAUTH2_REFRESH_TOKEN_URL
        刷新oauth2的access token.
        另请参阅:
        常量字段值
      • MINIAPP_JSCODE_2_SESSION

        static final String MINIAPP_JSCODE_2_SESSION
        The constant MINIAPP_JSCODE_2_SESSION.
        另请参阅:
        常量字段值
      • CREATE_OPEN_URL

        static final String CREATE_OPEN_URL
        The constant CREATE_OPEN_URL.
        另请参阅:
        常量字段值
      • BIND_OPEN_URL

        static final String BIND_OPEN_URL
        The constant BIND_OPEN_URL.
        另请参阅:
        常量字段值
      • UNBIND_OPEN_URL

        static final String UNBIND_OPEN_URL
        The constant UNBIND_OPEN_URL.
        另请参阅:
        常量字段值
      • HAVE_OPEN_URL

        static final String HAVE_OPEN_URL
        查询公众号/小程序是否绑定 open 帐号
        另请参阅:
        常量字段值
      • FAST_REGISTER_WEAPP_URL

        static final String FAST_REGISTER_WEAPP_URL
        快速创建小程序接口.
        另请参阅:
        常量字段值
      • FAST_REGISTER_WEAPP_SEARCH_URL

        static final String FAST_REGISTER_WEAPP_SEARCH_URL
        The constant FAST_REGISTER_WEAPP_SEARCH_URL.
        另请参阅:
        常量字段值
      • FAST_REGISTER_PERSONAL_WEAPP_URL

        static final String FAST_REGISTER_PERSONAL_WEAPP_URL
        快速创建个人小程序接口.
        另请参阅:
        常量字段值
      • FAST_REGISTER_PERSONAL_WEAPP_SEARCH_URL

        static final String FAST_REGISTER_PERSONAL_WEAPP_SEARCH_URL
        查询快速创建个人小程序任务状态接口.
        另请参阅:
        常量字段值
      • FAST_REGISTER_BETA_WEAPP_URL

        static final String FAST_REGISTER_BETA_WEAPP_URL
        快速创建试用小程序接口.
        另请参阅:
        常量字段值
      • GET_TEMPLATE_DRAFT_LIST_URL

        static final String GET_TEMPLATE_DRAFT_LIST_URL
        代小程序实现业务. 小程序代码模版库管理:https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1506504150_nMMh6&token=&lang=zh_CN access_token 为 component_access_token
        另请参阅:
        常量字段值
      • GET_TEMPLATE_LIST_URL

        static final String GET_TEMPLATE_LIST_URL
        The constant GET_TEMPLATE_LIST_URL.
        另请参阅:
        常量字段值
      • ADD_TO_TEMPLATE_URL

        static final String ADD_TO_TEMPLATE_URL
        The constant ADD_TO_TEMPLATE_URL.
        另请参阅:
        常量字段值
      • DELETE_TEMPLATE_URL

        static final String DELETE_TEMPLATE_URL
        The constant DELETE_TEMPLATE_URL.
        另请参阅:
        常量字段值
      • CHECK_SHOP_AUDITSTATUS_URL

        static final String CHECK_SHOP_AUDITSTATUS_URL
        另请参阅:
        常量字段值
      • MINISHOP_DELIVERY_TEMPLATE_GET_URL

        static final String MINISHOP_DELIVERY_TEMPLATE_GET_URL
        另请参阅:
        常量字段值
      • MINISHOP_SHOPCATEGORY_GET_URL

        static final String MINISHOP_SHOPCATEGORY_GET_URL
        另请参阅:
        常量字段值
      • MINISHOP_CREATE_COUPON_URL

        static final String MINISHOP_CREATE_COUPON_URL
        另请参阅:
        常量字段值
      • MINISHOP_UPDATE_COUPON_URL

        static final String MINISHOP_UPDATE_COUPON_URL
        另请参阅:
        常量字段值
      • MINISHOP_UPDATE_COUPON_STATUS_URL

        static final String MINISHOP_UPDATE_COUPON_STATUS_URL
        另请参阅:
        常量字段值
      • MINISHOP_GET_DELIVERY_COMPANY_URL

        static final String MINISHOP_GET_DELIVERY_COMPANY_URL
        另请参阅:
        常量字段值
      • MINISHOP_DELISTING_SPU_URL

        static final String MINISHOP_DELISTING_SPU_URL
        另请参阅:
        常量字段值
      • MINISHOP_BATCH_ADD_SKU_URL

        static final String MINISHOP_BATCH_ADD_SKU_URL
        另请参阅:
        常量字段值
      • MINISHOP_UPDATE_SKU_PRICE_URL

        static final String MINISHOP_UPDATE_SKU_PRICE_URL
        另请参阅:
        常量字段值
      • MINISHOP_UPDATE_SKU_STOCK_URL

        static final String MINISHOP_UPDATE_SKU_STOCK_URL
        另请参阅:
        常量字段值
      • API_MINISHOP_ADD_LIMIT_DISCOUNT_URL

        static final String API_MINISHOP_ADD_LIMIT_DISCOUNT_URL
        另请参阅:
        常量字段值
      • API_MINISHOP_GET_LIMIT_DISCOUNT_URL

        static final String API_MINISHOP_GET_LIMIT_DISCOUNT_URL
        另请参阅:
        常量字段值
      • API_MINISHOP_UPDATE_LIMIT_DICOUNT_STATUS_URL

        static final String API_MINISHOP_UPDATE_LIMIT_DICOUNT_STATUS_URL
        另请参阅:
        常量字段值
      • OPEN_APPLY_SET_ORDER_PATH_INFO

        static final String OPEN_APPLY_SET_ORDER_PATH_INFO
        申请设置订单页path信息
        另请参阅:
        常量字段值
    • 方法详细资料

      • getWxMpServiceByAppid

        WxOpenMpService getWxMpServiceByAppid(String appid)
        Gets wx mp service by appid.
        参数:
        appid - the appid
        返回:
        the wx mp service by appid
      • getWxMaServiceByAppid

        WxOpenMaService getWxMaServiceByAppid(String appid)
        获取指定appid的开放平台小程序服务(继承一般小程序服务能力).
        参数:
        appid - .
        返回:
        . wx ma service by appid
      • getWxFastMaServiceByAppid

        @Deprecated
        WxOpenFastMaService getWxFastMaServiceByAppid(String appid)
        已过时。 2021年06月23日 本接口原有方法并非仅快速创建小程序的专用接口,普通小程序授权到第三方平台皆可使用,所以请使用 WxOpenMaBasicService 类替代。获取方法: WxOpenMaService.getBasicService()
        获取指定appid的快速创建的小程序服务.
        参数:
        appid - .
        返回:
        . wx fast ma service by appid
      • getWxMinishopServiceByAppid

        WxOpenMinishopService getWxMinishopServiceByAppid(String appid)
        获取指定appid的小商店服务
        参数:
        appid -
        返回:
      • getWxOpenConfigStorage

        WxOpenConfigStorage getWxOpenConfigStorage()
        Gets wx open config storage.
        返回:
        the wx open config storage
      • checkSignature

        boolean checkSignature(String timestamp,
         String nonce,
         String signature)
        Check signature boolean.
        参数:
        timestamp - the timestamp
        nonce - the nonce
        signature - the signature
        返回:
        the boolean
      • startPushTicket

        void startPushTicket()
         throws WxErrorException 
        启动ticket推送服务 该 API 用于启动ticket推送服务
        抛出:
        WxErrorException - 如果调用失败返回此异常
      • getComponentAccessToken

        String getComponentAccessToken(boolean forceRefresh)
         throws WxErrorException 
        Gets component access token.
        参数:
        forceRefresh - the force refresh
        返回:
        the component access token
        抛出:
        WxErrorException - the wx error exception
      • getPreAuthUrl

        String getPreAuthUrl(String redirectUri)
         throws WxErrorException 
        获取用户授权页URL(来路URL和成功跳转URL 的域名都需要为三方平台设置的 登录授权的发起页域名).
        参数:
        redirectUri - the redirect uri
        返回:
        the pre auth url
        抛出:
        WxErrorException - the wx error exception
      • getPreAuthUrl

        String getPreAuthUrl(String redirectUri,
         String authType,
         String bizAppid)
         throws WxErrorException 
        .
        参数:
        redirectUri - the redirect uri
        authType - 要授权的帐号类型:1则商户点击链接后,手机端仅展示公众号、2表示仅展示小程序,3表示公众号和小程序都展示。如果为未指定,则默认小程序和公众号都展示。第三方平台开发者可以使用本字段来控制授权的帐号类型。
        bizAppid - 指定授权唯一的小程序或公众号 注:authType、bizAppid 互斥。
        返回:
        the pre auth url
        抛出:
        WxErrorException - the wx error exception
      • getQueryAuth

        WxOpenQueryAuthResult getQueryAuth(String authorizationCode)
         throws WxErrorException 
        使用授权码换取公众号或小程序的接口调用凭据和授权信息.
        参数:
        authorizationCode - the authorization code
        返回:
        the query auth
        抛出:
        WxErrorException - the wx error exception
      • setAuthorizerOption

        void setAuthorizerOption(String authorizerAppid,
         String optionName,
         String optionValue)
         throws WxErrorException 
        设置授权方的选项信息.
        参数:
        authorizerAppid - the authorizer appid
        optionName - the option name
        optionValue - the option value
        抛出:
        WxErrorException - the wx error exception
      • getAuthorizerAccessToken

        String getAuthorizerAccessToken(String appid,
         boolean forceRefresh)
         throws WxErrorException 
        Gets authorizer access token.
        参数:
        appid - the appid
        forceRefresh - the force refresh
        返回:
        the authorizer access token
        抛出:
        WxErrorException - the wx error exception
      • oauth2getAccessToken

        @Deprecated
        WxOAuth2AccessToken oauth2getAccessToken(String appid,
         String code)
         throws WxErrorException 
        已过时。 2021年05月21日: 已修正公众号相关接口,请使用:WxOpenComponentService.getWxMpServiceByAppid(mpAppId).getOAuth2Service().getAccessToken(code)
        Oauth 2 get access token wx mp o auth 2 access token.
        参数:
        appid - the appid
        code - the code
        返回:
        the wx mp o auth 2 access token
        抛出:
        WxErrorException - the wx error exception
        另请参阅:
        WxMpService.getOAuth2Service()
      • checkSignature

        boolean checkSignature(String appId,
         String timestamp,
         String nonce,
         String signature)
        Check signature boolean.
        参数:
        appId - the app id
        timestamp - the timestamp
        nonce - the nonce
        signature - the signature
        返回:
        the boolean
      • oauth2refreshAccessToken

        WxOAuth2AccessToken oauth2refreshAccessToken(String appid,
         String refreshToken)
         throws WxErrorException 
        Oauth 2 refresh access token wx mp o auth 2 access token.
        参数:
        appid - the appid
        refreshToken - the refresh token
        返回:
        the wx mp o auth 2 access token
        抛出:
        WxErrorException - the wx error exception
      • oauth2buildAuthorizationUrl

        @Deprecated
        String oauth2buildAuthorizationUrl(String appid,
         String redirectUri,
         String scope,
         String state)
        已过时。 2021年05月21日: 已修正公众号相关接口,请使用:WxOpenCommpentService.getWxMpServiceByAppid(mpAppId).getOAuth2Service().buildAuthorizationUrl(redirectUri, scope, state)
        Oauth 2 build authorization url string.
        参数:
        appid - the appid
        redirectUri - the redirect uri
        scope - the scope
        state - the state
        返回:
        the string
        另请参阅:
        WxMpService.getOAuth2Service()
      • getTemplateDraftList

        List<WxOpenMaCodeTemplate> getTemplateDraftList()
         throws WxErrorException 
        获取草稿箱内的所有临时代码草稿.
        返回:
        草稿箱代码模板列表 (draftId)
        抛出:
        WxErrorException - 获取失败时返回,具体错误码请看此接口的注释文档
      • getTemplateList

        List<WxOpenMaCodeTemplate> getTemplateList(Integer templateType)
         throws WxErrorException 
        获取代码模版库中的所有小程序代码模版. 文档:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/gettemplatelist.html
        参数:
        templateType - 模板类型,可空,默认全部,填0普通模,1标准模板
        返回:
        小程序代码模版列表 (templateId)
        抛出:
        WxErrorException - 获取失败时返回,具体错误码请看此接口的注释文档
      • addToTemplate

        void addToTemplate(long draftId,
         int templateType)
         throws WxErrorException 
        https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/addtotemplate.html 将草稿添加到代码模板库.
        参数:
        draftId - 草稿ID,本字段可通过"获取草稿箱内的所有临时代码草稿"接口获得
        templateType - 代码模版类型,【普通模板:0, 标准模板:1】
        抛出:
        WxErrorException - 操作失败时抛出,具体错误码请看此接口的注释文档
        另请参阅:
        #getTemplateDraftList
      • deleteTemplate

        void deleteTemplate(long templateId)
         throws WxErrorException 
        删除指定小程序代码模版.
        参数:
        templateId - 要删除的模版ID
        抛出:
        WxErrorException - 操作失败时抛出,具体错误码请看此接口的注释文档
        另请参阅:
        #getTemplateList
      • createOpenAccount

        WxOpenCreateResult createOpenAccount(String appId,
         String appIdType)
         throws WxErrorException 
        https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1498704199_1bcax&token=6df5e3650041eff2cd3ec3662425ad8d7beec8d9&lang=zh_CN 创建 开放平台帐号并绑定公众号/小程序. https://api.weixin.qq.com/cgi-bin/open/create
        参数:
        appId - 公众号/小程序的appId
        appIdType - appId类型 me.chanjar.weixin.common.api.WxConsts.AppIdType mp-公众号 mini-小程序
        返回:
        . wx open create result
        抛出:
        WxErrorException - .
      • bindOpenAccount

        Boolean bindOpenAccount(String appId,
         String appIdType,
         String openAppid)
         throws WxErrorException 
        https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/api/account/bind.html 将公众号/小程序绑定到开放平台帐号下
        参数:
        appId - 公众号/小程序的appId
        appIdType - appId类型 me.chanjar.weixin.common.api.WxConsts.AppIdType mp-公众号 mini-小程序
        openAppid - 开放平台帐号 appid,由创建开发平台帐号接口返回
        返回:
        the boolean
        抛出:
        WxErrorException - the wx error exception
      • unbindOpenAccount

        Boolean unbindOpenAccount(String appId,
         String appIdType,
         String openAppid)
         throws WxErrorException 
        https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/api/account/unbind.html 将公众号/小程序从开放平台帐号下解绑
        参数:
        appId - 公众号/小程序的appId
        appIdType - appId类型 me.chanjar.weixin.common.api.WxConsts.AppIdType mp-公众号 mini-小程序
        openAppid - 开放平台帐号 appid,由创建开发平台帐号接口返回
        返回:
        the boolean
        抛出:
        WxErrorException - the wx error exception
      • getOpenAccount

        WxOpenGetResult getOpenAccount(String appId,
         String appIdType)
         throws WxErrorException 
        https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/api/account/get.html 获取公众号/小程序所绑定的开放平台帐号
        参数:
        appId - 公众号/小程序的appId
        appIdType - appId类型 me.chanjar.weixin.common.api.WxConsts.AppIdType mp-公众号 mini-小程序
        返回:
        开放平台帐号 appid,由创建开发平台帐号接口返回
        抛出:
        WxErrorException - the wx error exception
      • haveOpen

        WxOpenHaveResult haveOpen()
         throws WxErrorException 
        https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/getbindopeninfo.html 查询公众号/小程序是否绑定 open 帐号
        返回:
        是否绑定 open 帐号,true表示绑定;false表示未绑定任何 open 帐号
        抛出:
        WxErrorException - the wx error exception
      • fastRegisterWeapp

        WxOpenResult fastRegisterWeapp(String name,
         String code,
         String codeType,
         String legalPersonaWechat,
         String legalPersonaName,
         String componentPhone)
         throws WxErrorException 
        https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=21538208049W8uwq&token=&lang=zh_CN 第三方平台快速创建小程序. 注意:创建任务逻辑串行,单次任务结束后才可以使用相同信息下发第二次任务,请注意规避任务阻塞
        参数:
        name - 企业名(需与工商部门登记信息一致)
        code - 企业代码
        codeType - 企业代码类型 1:统一社会信用代码(18位) 2:组织机构代码(9位xxxxxxxx-x) 3:营业执照注册号(15位)
        legalPersonaWechat - 法人微信号
        legalPersonaName - 法人姓名(绑定银行卡)
        componentPhone - 第三方联系电话(方便法人与第三方联系)
        返回:
        . wx open result
        抛出:
        WxErrorException - .
      • fastRegisterWeappSearch

        WxOpenResult fastRegisterWeappSearch(String name,
         String legalPersonaWechat,
         String legalPersonaName)
         throws WxErrorException 
        https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=21538208049W8uwq&token=&lang=zh_CN 查询第三方平台快速创建小程序的任务状态 注意:该接口只提供当下任务结果查询,不建议过分依赖该接口查询所创建小程序。 小程序的成功状态可在第三方服务器中自行对账、查询。 不要频繁调用search接口,消息接收需通过服务器查看。调用search接口会消耗接口整体调用quato
        参数:
        name - 企业名(需与工商部门登记信息一致)
        legalPersonaWechat - 法人微信号
        legalPersonaName - 法人姓名(绑定银行卡)
        返回:
        the wx open result
        抛出:
        WxErrorException - .
      • fastRegisterPersonalWeapp

        WxOpenRegisterPersonalWeappResult fastRegisterPersonalWeapp(String idname,
         String wxuser,
         String componentPhone)
         throws WxErrorException 
        https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/fastregisterpersonalweapp.html 快速创建个人小程序
        参数:
        idname - 个人用户名字
        wxuser - 个人用户微信号
        componentPhone - 第三方联系电话
        返回:
        the wx open result
        抛出:
        WxErrorException
      • fastRegisterPersonalWeappSearch

        WxOpenRegisterPersonalWeappResult fastRegisterPersonalWeappSearch(String taskid)
         throws WxErrorException 
        https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/fastregisterpersonalweapp.html 查询个人小程序注册任务状态
        参数:
        taskid - 任务ID
        返回:
        the wx open result
        抛出:
        WxErrorException
      • fastRegisterBetaWeapp

        WxOpenRegisterBetaWeappResult fastRegisterBetaWeapp(String name,
         String openid)
         throws WxErrorException 
        https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/beta_Mini_Programs/fastregister.html 注册试用小程序
        参数:
        name - 小程序名称
        openid - 微信用户的openid(不是微信号)
        返回:
        the wx open result
        抛出:
        WxErrorException
      • registerShop

        WxOpenResult registerShop(String wxName,
         String idCardName,
         String idCardNumber,
         String channelId,
         Integer apiOpenstoreType,
         String authPageUrl)
         throws WxErrorException 
        https://api.weixin.qq.com/product/register/register_shop?component_access_token=xxxxxxxxx 注册小商店账号
        参数:
        wxName - 微信号(必填)
        idCardName - 身份证姓名(必填)
        idCardNumber - 身份证号(必填)
        channelId - 渠道号,服务商后台生成渠道信息。(选填)
        apiOpenstoreType - 1-整店打包(开通小商店),2-组件开放(开通小程序,并且已经完整的嵌入电商功能)(必填)
        authPageUrl - 授权url(选填)
        返回:
        the wx open result
        抛出:
        WxErrorException
      • checkAuditStatus

        String checkAuditStatus(String wxName)
         throws WxErrorException 
        https://api.weixin.qq.com/product/register/check_audit_status 异步状态查询
        参数:
        wxName - 微信号
        返回:
        抛出:
        WxErrorException
      • minishopGetCouponList

        WxMinishopCouponStock minishopGetCouponList(String appId,
         String startCreateTime,
         String endCreateTime,
         Integer status,
         Integer page,
         Integer pageSize)
         throws WxErrorException 
        与小商店对接,获取小商店的优惠券信息
        参数:
        appId:小商店的appId -
        startCreateTime:优惠券创建时间的搜索开始时间 -
        endCreateTime:优惠券创建时间的搜索结束时间 -
        status:优惠券状态 -
        page:第几页(最小填1) -
        pageSize:每页数量(不超过10,000) -
        返回:
        抛出:
        WxErrorException
      • minishopUpdateCouponStatus

        WxOpenResult minishopUpdateCouponStatus(String appId,
         Integer couponId,
         Integer status)
         throws WxErrorException 
        从优惠券创建后status=1,可流转到2,4,5, COUPON_STATUS_VALID = 2 ;//生效 COUPON_STATUS_INVALID = 4 ;//已作废 COUPON_STATUS_DEL = 5;//删除
        参数:
        appId -
        couponId -
        status -
        返回:
        抛出:
        WxErrorException
      • addLimitDiscountGoods

        Integer addLimitDiscountGoods(String appId,
         LimitDiscountGoods limitDiscountGoods)
         throws WxErrorException 
        添加抢购任务 每个商品(SPU)同一时间只能有一个抢购任务。 如果当前有抢购任务没有结束,无论是否开始,都不允许创建第二个抢购任务 可以提前修改抢购任务状态为结束后,再创建新的任务。 每次创建抢购任务时,必须填充该SPU下 所有SKU的抢购信息
        参数:
        appId -
        limitDiscountGoods -
        返回:
        抛出:
        WxErrorException
      • updateLimitDiscountStatus

        WxOpenResult updateLimitDiscountStatus(String appId,
         Long taskId,
         Integer status)
         throws WxErrorException 
        修改抢购任务状态 用于提前结束抢购任务,无论抢购任务是否在执行中,都可以关闭。 也可以直接删除抢购任务 注意:结束后不允许再开启,状态不可逆
        参数:
        appId -
        taskId -
        status -
        返回:
        抛出:
        WxErrorException
      • changeTcbEnv

        WxOpenResult changeTcbEnv(String env)
         throws WxErrorException 
        转换云环境 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/cloudbase-batch/env-mgnt/changeTcbEnv.html
        参数:
        env - 环境id
        返回:
        抛出:
        WxErrorException
      • clearQuotaV2

        WxOpenResult clearQuotaV2(String appid)
         throws WxErrorException 
        使用 AppSecret 重置第三方平台 API 调用次数 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openapi/clearComponentQuotaByAppSecret.html
        参数:
        appid - 授权用户appid
        返回:
        抛出:
        WxErrorException
跳过导航链接

Copyright © 2024. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /