update 提交代码生成体验版小程序

This commit is contained in:
Lemon
2023-08-02 10:53:14 +08:00
parent 9b2b2396bb
commit 17d18fafa0
2 changed files with 8 additions and 2 deletions

View File

@@ -277,12 +277,12 @@ public class AgentDevService {
String url = "https://api.weixin.qq.com/wxa/commit?access_token=" + authAccessToken; String url = "https://api.weixin.qq.com/wxa/commit?access_token=" + authAccessToken;
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("template_id", dto.getTemplateId()); jsonObject.put("template_id", dto.getTemplateId());
jsonObject.put("ext_json", dto.getExtJson()); jsonObject.put("ext_json", JSONObject.toJSONString(dto.getExtJson()));
jsonObject.put("user_version", dto.getUserVersion()); jsonObject.put("user_version", dto.getUserVersion());
jsonObject.put("user_desc", dto.getUserDesc()); jsonObject.put("user_desc", dto.getUserDesc());
String result = HttpUtils.sendPost(url, JSONObject.toJSONString(jsonObject)); String result = HttpUtils.sendPost(url, JSONObject.toJSONString(jsonObject));
logger.info("获取第三方平台 使用授权码获取授权信息 请求参数:{}, 请求结果:{}", JSONObject.toJSONString(jsonObject), result); logger.info("获取第三方平台 提交代码 请求参数:{}, 请求结果:{}", JSONObject.toJSONString(jsonObject), result);
// 将返回结果转为json对象 // 将返回结果转为json对象
JSONObject resultJson = JSONObject.parseObject(result); JSONObject resultJson = JSONObject.parseObject(result);

View File

@@ -1,6 +1,9 @@
package com.jsowell.pile.domain.agentDev; package com.jsowell.pile.domain.agentDev;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor;
/** /**
* ext.json配置文件对象 * ext.json配置文件对象
@@ -9,6 +12,9 @@ import lombok.Data;
* @Date 2023/8/2 10:09 * @Date 2023/8/2 10:09
*/ */
@Data @Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ExtJson { public class ExtJson {
/** /**
* 配置 ext.json 是否生效 * 配置 ext.json 是否生效