@@ -32,6 +32,11 @@ public interface WxOpenMaService extends WxMaService {
3232 */
3333 String API_MODIFY_DOMAIN = "https://api.weixin.qq.com/wxa/modify_domain" ;
3434
35+ /**
36+ * 快速配置小程序服务器域名
37+ */
38+ String API_MODIFY_DOMAIN_DIRECTLY = "https://api.weixin.qq.com/wxa/modify_domain_directly" ;
39+
3540 /**
3641 * 设置小程序业务域名(仅供第三方代小程序调用)
3742 * <pre>
@@ -44,6 +49,11 @@ public interface WxOpenMaService extends WxMaService {
4449 */
4550 String API_SET_WEBVIEW_DOMAIN = "https://api.weixin.qq.com/wxa/setwebviewdomain" ;
4651
52+ /**
53+ * 快速配置小程序业务域名
54+ */
55+ String API_SET_WEBVIEW_DOMAIN_DIRECTLY = "https://api.weixin.qq.com/wxa/setwebviewdomain_directly" ;
56+
4757 /**
4858 * 获取业务域名校验文件(仅供第三方代小程序调用)
4959 */
@@ -310,6 +320,24 @@ WxOpenMaDomainResult modifyDomain(String action, List<String> requestDomains, Li
310320 List <String > uploadDomains , List <String > downloadDomains ,
311321 List <String > udpDomains , List <String > tcpDomains ) throws WxErrorException ;
312322
323+ /**
324+ * 快速配置小程序服务器域名
325+ * <a href="https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/modify_domain_directly.html">文档地址</a>
326+ *
327+ * @param action add添加, delete删除, set覆盖, get获取
328+ * @param requestDomains request 合法域名;当 action 是 get 时不需要此字段
329+ * @param wsRequestDomains socket 合法域名;当 action 是 get 时不需要此字段
330+ * @param uploadDomains uploadFile 合法域名;当 action 是 get 时不需要此字段
331+ * @param downloadDomains downloadFile 合法域名;当 action 是 get 时不需要此字段
332+ * @param tcpDomains tcp 合法域名;当 action 是 get 时不需要此字段
333+ * @param udpDomains udp 合法域名;当 action 是 get 时不需要此字段
334+ * @return the wx open ma domain result
335+ * @throws WxErrorException the wx error exception
336+ */
337+ WxOpenMaDomainResult modifyDomainDirectly (String action , List <String > requestDomains , List <String > wsRequestDomains ,
338+ List <String > uploadDomains , List <String > downloadDomains ,
339+ List <String > udpDomains , List <String > tcpDomains ) throws WxErrorException ;
340+
313341 /**
314342 * 获取小程序的业务域名
315343 *
@@ -346,6 +374,28 @@ WxOpenMaDomainResult modifyDomain(String action, List<String> requestDomains, Li
346374 */
347375 WxOpenMaWebDomainResult setWebViewDomainInfo (String action , List <String > domainList ) throws WxErrorException ;
348376
377+ /**
378+ * 快速配置小程序业务域名
379+ * <a href="https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/setwebviewdomain_directly.html">文档地址</a>
380+ *
381+ * @param action add添加, delete删除, set覆盖, get获取
382+ * @param domainList the domain list
383+ * @return 直接返回字符串
384+ * @throws WxErrorException the wx error exception
385+ */
386+ String setWebViewDomainDirectly (String action , List <String > domainList ) throws WxErrorException ;
387+
388+ /**
389+ * 快速配置小程序业务域名
390+ * <a href="https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/setwebviewdomain_directly.html">文档地址</a>
391+ *
392+ * @param action add添加, delete删除, set覆盖, get获取
393+ * @param domainList the domain list
394+ * @return web view domain info
395+ * @throws WxErrorException the wx error exception
396+ */
397+ WxOpenMaWebDomainResult setWebViewDomainDirectlyInfo (String action , List <String > domainList ) throws WxErrorException ;
398+
349399 /**
350400 * 获取业务域名校验文件
351401 *
0 commit comments