|
|
@@ -8,12 +8,20 @@ import org.apache.commons.codec.digest.DigestUtils;
|
|
|
public class WeChatConfig {
|
|
|
// SecretId SecretKey 调用云API需要使用的密钥对,是平台企业的密钥对(子客企业无需准备此参数)。
|
|
|
// 联调/生产环境都是可以由平台企业电子签控制台应用集成模块自主获取。
|
|
|
- public static final String SecretId = "AKyD3g9UUckpm7xfldUESaMt9uTigZZ4ym";
|
|
|
- public static final String SecretKey = "SKLNHCCdOwpGEyobK19Vnntwh5DtnKA6ak";
|
|
|
+ //测试
|
|
|
+// public static final String SecretId = "AKyD3g9UUckpm7xfldUESaMt9uTigZZ4ym";
|
|
|
+// public static final String SecretKey = "SKLNHCCdOwpGEyobK19Vnntwh5DtnKA6ak";
|
|
|
+
|
|
|
+ //正式
|
|
|
+ public static final String SecretId = "AKIDZr0ymPs9E63tZ3NXcVBgy5ziHhw1udAR";
|
|
|
+ public static final String SecretKey = "A9vjUcdBlDbw9C4rUvNjW8Zv6D9ayHPL";
|
|
|
|
|
|
// 应用的唯一标识,对应通用参数AppId。不同的业务系统可以采用不同的AppId,
|
|
|
// 不同AppId下的数据是隔离的。联调/生产环境都是可以由控制台开发者中心-应用集成自主生成。
|
|
|
- public static final String AppId = "yD3g9UUckpm7fg9aUE66BdtzqsVl3kQL";
|
|
|
+ //测试
|
|
|
+// public static final String AppId = "yD3g9UUckpm7fg9aUE66BdtzqsVl3kQL";
|
|
|
+ //正式
|
|
|
+ public static final String AppId = "yD3PxUU1mewvnwUx3tsXdxP7ndvLPevd";
|
|
|
|
|
|
// 非必需
|
|
|
// 在子客企业开通电子签后,会生成唯一的子客应用Id(ProxyAppId)用于代理调用时的鉴权
|
|
|
@@ -26,12 +34,12 @@ public class WeChatConfig {
|
|
|
//(比如,可以使用企业名称的hash值,或者社会统一信用代码的hash值,或者随机hash值,需要平台企业保存)
|
|
|
// 最大64位字符串
|
|
|
// 固定为DigestUtils.sha256Hex("浙江美大实业股份有限公司");
|
|
|
- // public static final String ProxyOrganizationName = "浙江美大实业股份有限公司";
|
|
|
- //public static final String ProxyOrganizationOpenId = "3049ce2a73196fd18389510e1256d690a11ef0a58e0504f8df06b3dee34596b1";
|
|
|
-
|
|
|
- public static final String ProxyOrganizationName = "嘉兴市云链信息技术有限公司测试";
|
|
|
+ public static final String ProxyOrganizationName = "浙江美大节能电器销售有限公司";
|
|
|
public static final String ProxyOrganizationOpenId = DigestUtils.sha256Hex(ProxyOrganizationName);
|
|
|
|
|
|
+// public static final String ProxyOrganizationName = "嘉兴市云链信息技术有限公司测试";
|
|
|
+// public static final String ProxyOrganizationOpenId = DigestUtils.sha256Hex(ProxyOrganizationName);
|
|
|
+
|
|
|
|
|
|
// 子客企业员工/经办人OpenId(OperatorOpenId):简称员工/经办人OpenId。对应通用ProxyOperator中的参数OpenId。
|
|
|
// 是平台企业自定义,对子客企业员的唯一标识。
|
|
|
@@ -39,7 +47,10 @@ public class WeChatConfig {
|
|
|
// (比如,可以使用经办人企业名+员工身份证的hash值,需要平台企业保存)
|
|
|
// 最大64位字符串
|
|
|
//固定为DigestUtils.sha256Hex("吴志根15669363739"); 超级管理员的openid
|
|
|
- public static final String SuperProxyOperatorOpenId = "9b5a5bf63b08ca186d47dadb2b04180bf917cee4e4b2d539704ae8e85b5933c7";
|
|
|
+ public static final String SuperProxyOperatorOpenId = DigestUtils.sha256Hex(ProxyOrganizationName + "吴志根" + "15669363739");
|
|
|
+
|
|
|
+ //经办人
|
|
|
+ public static final String organizationOpenId = DigestUtils.sha256Hex(ProxyOrganizationName + "顾曙佳" + "13511382195");
|
|
|
|
|
|
// ServerSignSealId 企业方静默签用的印章Id,电子签控制台印章模块获取
|
|
|
public static String ServerSignSealId = "****************";
|
|
|
@@ -48,11 +59,11 @@ public class WeChatConfig {
|
|
|
public static String ServerSignOrgName = "****************";
|
|
|
|
|
|
// EndPoint API域名,现网使用 essbasic.tencentcloudapi.com
|
|
|
- public static String EndPoint = "essbasic.test.ess.tencent.cn";
|
|
|
+ public static String EndPoint = "essbasic.tencentcloudapi.com";
|
|
|
|
|
|
// FileServiceEndPoint 文件服务域名,现网使用 file.ess.tencent.cn
|
|
|
// UploadFiles 接口使用此域名进行调用
|
|
|
- public static String FileServiceEndPoint = "file.test.ess.tencent.cn";
|
|
|
+ public static String FileServiceEndPoint = "file.ess.tencent.cn";
|
|
|
|
|
|
// TemplateId 模板ID,电子签控制台模板模块获取,仅在通过模板发起时使用
|
|
|
public static final String TemplateId = "****************";
|