|
|
@@ -72,7 +72,7 @@ public class WeChatContractUtil extends BaseClass {
|
|
|
}
|
|
|
|
|
|
//生成腾讯云电子签控制台登录URL
|
|
|
- public String getUserConsoleUrl(String name, String phonenumber) throws TencentCloudSDKException {
|
|
|
+ public static String getUserConsoleUrl(String name, String phonenumber) throws TencentCloudSDKException {
|
|
|
EssbasicClient client = initClient();
|
|
|
//根据姓名和手机号生成唯一的经办人OpenId(SHA256哈希)
|
|
|
String proxyOperatorOpenId = DigestUtils.sha256Hex(name + phonenumber);
|
|
|
@@ -526,14 +526,15 @@ public class WeChatContractUtil extends BaseClass {
|
|
|
public static void main(String[] args) {
|
|
|
String[] flowIds = {"yD3g7UUckpmzhmhtU1UyFt71fypQygwg"};
|
|
|
|
|
|
- DescribeTemplatesResponse res = null;
|
|
|
+
|
|
|
try {
|
|
|
- res = getTemplateList(SuperProxyOperatorOpenId);
|
|
|
+ String res = getUserConsoleUrl("吴志根", "15669363739");
|
|
|
+ System.err.println(res);
|
|
|
} catch (TencentCloudSDKException e) {
|
|
|
throw new RuntimeException(e);
|
|
|
}
|
|
|
|
|
|
- System.err.println(DescribeTemplatesResponse.toJsonString(res));
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|