mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-03 21:48:13 +08:00
update 提交代码生成体验版小程序
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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 是否生效
|
||||||
|
|||||||
Reference in New Issue
Block a user