| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -124,6 +124,17 @@ public interface WxOpenComponentService { | |||
| 124 | 124 | * 快速创建小程序接口. | |
| 125 | 125 | */ | |
| 126 | 126 | String FAST_REGISTER_WEAPP_URL = "https://api.weixin.qq.com/cgi-bin/component/fastregisterweapp?action=create"; | |
| 127 | + | ||
| 128 | + /** | ||
| 129 | + * 快速创建企业小程序接口. | ||
| 130 | + */ | ||
| 131 | + String FAST_REGISTER_ENTERPRISE_WEAPP_URL = "https://api.weixin.qq.com/wxa/component/fastregisterenterpriseweapp?action=create"; | ||
| 132 | + | ||
| 133 | + /** | ||
| 134 | + * 快速创建企业小程序查询接口. | ||
| 135 | + */ | ||
| 136 | + String FAST_REGISTER_ENTERPRISE_WEAPP_QUERY_URL = "https://api.weixin.qq.com/wxa/component/fastregisterenterpriseweapp?action=query"; | ||
| 137 | + | ||
| 127 | 138 | /** | |
| 128 | 139 | * The constant FAST_REGISTER_WEAPP_SEARCH_URL. | |
| 129 | 140 | */ | |
@@ -611,7 +622,7 @@ public interface WxOpenComponentService { | |||
| 611 | 622 | ||
| 612 | 623 | /** | |
| 613 | 624 | * https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=21538208049W8uwq&token=&lang=zh_CN | |
| 614 | - * 第三方平台快速创建小程序. | ||
| 625 | + * 第三方平台快速创建小程序. 2026-04-30 已下线 | ||
| 615 | 626 | * 注意:创建任务逻辑串行,单次任务结束后才可以使用相同信息下发第二次任务,请注意规避任务阻塞 | |
| 616 | 627 | * | |
| 617 | 628 | * @param name 企业名(需与工商部门登记信息一致) | |
@@ -622,9 +633,34 @@ public interface WxOpenComponentService { | |||
| 622 | 633 | * @param componentPhone 第三方联系电话(方便法人与第三方联系) | |
| 623 | 634 | * @return . wx open result | |
| 624 | 635 | * @throws WxErrorException . | |
| 636 | + * @deprecated 2026-04-30 接口已经下线 | ||
| 625 | 637 | */ | |
| 638 | + @Deprecated | ||
| 626 | 639 | WxOpenResult fastRegisterWeapp(String name, String code, String codeType, String legalPersonaWechat, String legalPersonaName, String componentPhone) throws WxErrorException; | |
| 627 | 640 | ||
| 641 | + /** | ||
| 642 | + * https://developers.weixin.qq.com/doc/oplatform/openApi/register-management/fast-registration-ent/api_fastregisterenterpriseweapp.html | ||
| 643 | + * 第三方平台快速创建企业小程序. | ||
| 644 | + * 注意:创建任务逻辑串行,单次任务结束后才可以使用相同信息下发第二次任务,请注意规避任务阻塞 | ||
| 645 | + * | ||
| 646 | + * @param name 企业名(需与工商部门登记信息一致) | ||
| 647 | + * @param code 企业代码,18位统一信用代码 | ||
| 648 | + * @param componentPhone 第三方联系电话(方便法人与第三方联系) | ||
| 649 | + * @return . wx open result | ||
| 650 | + * @throws WxErrorException . | ||
| 651 | + */ | ||
| 652 | + WxOpenRegisterPersonalWeappResult fastRegisterEnterpriseWeapp(String name, String code, String componentPhone) throws WxErrorException; | ||
| 653 | + | ||
| 654 | + /** | ||
| 655 | + * https://developers.weixin.qq.com/doc/oplatform/openApi/register-management/fast-registration-ent/api_fastregisterenterpriseweapp.html | ||
| 656 | + * 查询企业小程序注册任务状态 | ||
| 657 | + * | ||
| 658 | + * @param taskid 任务ID | ||
| 659 | + * @return the wx open result | ||
| 660 | + * @throws WxErrorException | ||
| 661 | + */ | ||
| 662 | + WxOpenRegisterPersonalWeappResult fastRegisterEnterpriseWeappQuery(String taskid) throws WxErrorException; | ||
| 663 | + | ||
| 628 | 664 | /** | |
| 629 | 665 | * https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=21538208049W8uwq&token=&lang=zh_CN | |
| 630 | 666 | * 查询第三方平台快速创建小程序的任务状态 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -643,6 +643,26 @@ public WxOpenResult fastRegisterWeapp(String name, String code, String codeType, | |||
| 643 | 643 | return WxOpenGsonBuilder.create().fromJson(response, WxOpenResult.class); | |
| 644 | 644 | } | |
| 645 | 645 | ||
| 646 | + @Override | ||
| 647 | + public WxOpenRegisterPersonalWeappResult fastRegisterEnterpriseWeapp(String name, String code, String componentPhone) throws WxErrorException { | ||
| 648 | + JsonObject jsonObject = new JsonObject(); | ||
| 649 | + jsonObject.addProperty("name", name); | ||
| 650 | + jsonObject.addProperty("code", code); | ||
| 651 | + jsonObject.addProperty("component_phone", componentPhone); | ||
| 652 | + jsonObject.addProperty("new_version", true); | ||
| 653 | + String response = post(FAST_REGISTER_ENTERPRISE_WEAPP_URL, jsonObject.toString(), "access_token"); | ||
| 654 | + return WxOpenGsonBuilder.create().fromJson(response, WxOpenRegisterPersonalWeappResult.class); | ||
| 655 | + } | ||
| 656 | + | ||
| 657 | + @Override | ||
| 658 | + public WxOpenRegisterPersonalWeappResult fastRegisterEnterpriseWeappQuery(String taskid) throws WxErrorException { | ||
| 659 | + JsonObject jsonObject = new JsonObject(); | ||
| 660 | + jsonObject.addProperty("taskid", taskid); | ||
| 661 | + jsonObject.addProperty("new_version", true); | ||
| 662 | + String response = post(FAST_REGISTER_ENTERPRISE_WEAPP_QUERY_URL, jsonObject.toString(), "access_token"); | ||
| 663 | + return WxOpenGsonBuilder.create().fromJson(response, WxOpenRegisterPersonalWeappResult.class); | ||
| 664 | + } | ||
| 665 | + | ||
| 646 | 666 | @Override | |
| 647 | 667 | public WxOpenResult fastRegisterWeappSearch(String name, String legalPersonaWechat, String legalPersonaName) throws WxErrorException { | |
| 648 | 668 | JsonObject jsonObject = new JsonObject(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments