|
|
@ -148,15 +148,16 @@ public class FlwInstanceServiceImpl extends FlowServiceNoFactory implements FlwI |
|
|
|
String url = CREATE_SESSION_URL + ACCESS_TOKEN; |
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
jsonObject.put("touser", toUser); |
|
|
|
jsonObject.put("msgtype", "text"); |
|
|
|
jsonObject.put("msgtype", "textcard"); |
|
|
|
jsonObject.put("agentid", 1000006); |
|
|
|
JSONObject contentJSon = new JSONObject(); |
|
|
|
contentJSon.put("content", content); |
|
|
|
jsonObject.put("text", contentJSon); |
|
|
|
jsonObject.put("safe", 0); |
|
|
|
|
|
|
|
|
|
|
|
contentJSon.put("title", "新审批待处理"); |
|
|
|
contentJSon.put("description", "点击查看详情"); |
|
|
|
contentJSon.put("url", "http://localhost:8001/#/tickets-tickets"); |
|
|
|
contentJSon.put("btntxt", "处理"); |
|
|
|
|
|
|
|
jsonObject.put("textcard", contentJSon); |
|
|
|
jsonObject.put("safe", 0); |
|
|
|
try { |
|
|
|
URL postUrl = new URL(url); |
|
|
|
HttpURLConnection http = (HttpURLConnection) postUrl.openConnection(); |
|
|
|