|
@@ -20,6 +20,8 @@ public class ComponentDeployApi {
|
|
|
|
|
|
|
|
private static String submit_audit = "https://api.weixin.qq.com/wxa/submit_audit?access_token=";
|
|
private static String submit_audit = "https://api.weixin.qq.com/wxa/submit_audit?access_token=";
|
|
|
|
|
|
|
|
|
|
+ private static String release = "https://api.weixin.qq.com/wxa/release?access_token=";
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 上传小程序代码并生成体验版
|
|
* 上传小程序代码并生成体验版
|
|
|
* access_token String 是 第三方平台接口调用令牌authorizer_access_token
|
|
* access_token String 是 第三方平台接口调用令牌authorizer_access_token
|
|
@@ -65,6 +67,16 @@ public class ComponentDeployApi {
|
|
|
return rs;
|
|
return rs;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 发布已通过审核的小程序
|
|
|
|
|
+ */
|
|
|
|
|
+ // https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/code-management/release.html
|
|
|
|
|
+ public static WxResult release(String accessToken) {
|
|
|
|
|
+ JSONObject json = new JSONObject();
|
|
|
|
|
+ WxResult rs = WxHttp.post(WxResult.class,release+accessToken,json);
|
|
|
|
|
+ return rs;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @Description: 获取已上传的代码的页面列表
|
|
* @Description: 获取已上传的代码的页面列表
|
|
|
*/
|
|
*/
|
|
@@ -84,4 +96,6 @@ public class ComponentDeployApi {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|