|
|
@@ -76,14 +76,20 @@ public class WeChatUtils {
|
|
|
map.put("template_id", PUBLIC_RELEASE_EXAMINE_RESULT);
|
|
|
map.put("data",getPublicData(type,date, aname,remarks));
|
|
|
}
|
|
|
+ return SendHttpPost(map, url);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ private Integer SendHttpPost(Map<String, Object> map, String url) {
|
|
|
JSONObject res=HttpUtils.httpPost(url, map);
|
|
|
if (res.get("errcode")!=null) {
|
|
|
+ LoggerUtils.debug(this.getClass(),res.getInteger("errcode").toString());
|
|
|
return res.getInteger("errcode");
|
|
|
}else {
|
|
|
return 1;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 推送微信订阅信息,跳转为报销信息
|
|
|
* @param openid 发送对象微信openid
|
|
|
@@ -108,13 +114,7 @@ public class WeChatUtils {
|
|
|
map.put("template_id", EXPENSE_RELEASE_EXAMINE_RESULT);
|
|
|
map.put("data",getExpenseData(type,date, aname,remarks));
|
|
|
}
|
|
|
- JSONObject res=HttpUtils.httpPost(url, map);
|
|
|
- if (res.get("errcode")!=null) {
|
|
|
- return res.getInteger("errcode");
|
|
|
- }else {
|
|
|
- return 1;
|
|
|
- }
|
|
|
-
|
|
|
+ return SendHttpPost(map, url);
|
|
|
}
|
|
|
|
|
|
/**
|