|
@@ -66,8 +66,6 @@ import org.springframework.ui.Model;
|
|
|
import org.springframework.web.bind.WebDataBinder;
|
|
|
import org.springframework.web.bind.annotation.InitBinder;
|
|
|
|
|
|
-import rtx.RTXSvrApi;
|
|
|
-
|
|
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.xt.gkoa.bltx.entity.BltxEntity;
|
|
@@ -652,6 +650,14 @@ public class BaseWebCtl extends BaseCtl {
|
|
|
*/
|
|
|
// 参数顺序 限时天数,系统用户id,步骤,rtx提醒内荣,办理提醒内同,业务key,模块(PC)
|
|
|
public void inserttx(String days, String userid, String step, String rtxmsg, String bltxmsg, String buskey, String lx) {
|
|
|
+ if (!StringUtils.isEmpty(rtxmsg)) {
|
|
|
+ rtxmsg = rtxmsg.replaceAll("&", "&");
|
|
|
+ rtxmsg = rtxmsg.replaceAll("<", "<");
|
|
|
+ rtxmsg = rtxmsg.replaceAll(">", ">");
|
|
|
+ rtxmsg = rtxmsg.replaceAll(""", "\"");
|
|
|
+ rtxmsg = rtxmsg.replaceAll("'", "//");
|
|
|
+ rtxmsg = rtxmsg.replaceAll("/", "\\\\");
|
|
|
+ }
|
|
|
try {
|
|
|
if (!StringUtils.isEmpty(days)) {
|
|
|
int daynum = Integer.parseInt(days.trim());
|
|
@@ -743,30 +749,19 @@ public class BaseWebCtl extends BaseCtl {
|
|
|
/**
|
|
|
* rtx推送
|
|
|
*/
|
|
|
- String url="http://10.1.30.119:8012/sendnotify.cgi?msg="+content+"&receiver="+uname+"&title="+title;
|
|
|
+ String url = "http://10.1.30.119:8012/sendnotify.cgi?msg=" + content + "&receiver=" + uname + "&title=" + title;
|
|
|
getURLContent(url);
|
|
|
- /*try {
|
|
|
- String type = "0";
|
|
|
- String delayTime = "0";
|
|
|
- int iRet = -1;
|
|
|
- String SvrIP = "10.1.30.119"; // rtx服务器所在ip地址,请修改
|
|
|
- int iPort = 6000; // 端口
|
|
|
- RTXSvrApi RtxsvrapiObj = new RTXSvrApi();
|
|
|
- if (RtxsvrapiObj.Init()) {
|
|
|
- System.out.println("操作成功" + "\n" + "服务器地址:" + SvrIP + "\n" + "服务器端口:" + iPort);
|
|
|
- iRet = RtxsvrapiObj.sendNotify(uname, title, content, type, delayTime);
|
|
|
- if (iRet == 0) {
|
|
|
- System.out.println("发送成功");
|
|
|
- } else {
|
|
|
- flag = false;
|
|
|
- System.out.println("发送失败");
|
|
|
- }
|
|
|
- }
|
|
|
- RtxsvrapiObj.UnInit();
|
|
|
- } catch (Throwable e) {
|
|
|
- // flag=false;
|
|
|
- e.printStackTrace();
|
|
|
- }*/
|
|
|
+ /*
|
|
|
+ * try { String type = "0"; String delayTime = "0"; int iRet = -1;
|
|
|
+ * String SvrIP = "10.1.30.119"; // rtx服务器所在ip地址,请修改 int iPort = 6000;
|
|
|
+ * // 端口 RTXSvrApi RtxsvrapiObj = new RTXSvrApi(); if
|
|
|
+ * (RtxsvrapiObj.Init()) { System.out.println("操作成功" + "\n" + "服务器地址:" +
|
|
|
+ * SvrIP + "\n" + "服务器端口:" + iPort); iRet =
|
|
|
+ * RtxsvrapiObj.sendNotify(uname, title, content, type, delayTime); if
|
|
|
+ * (iRet == 0) { System.out.println("发送成功"); } else { flag = false;
|
|
|
+ * System.out.println("发送失败"); } } RtxsvrapiObj.UnInit(); } catch
|
|
|
+ * (Throwable e) { // flag=false; e.printStackTrace(); }
|
|
|
+ */
|
|
|
// if(!flag){
|
|
|
// flag=false;
|
|
|
// }
|
|
@@ -962,25 +957,15 @@ public class BaseWebCtl extends BaseCtl {
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- //getURLContent("http://192.168.30.142:81/");
|
|
|
- /* try {
|
|
|
- String type = "0";
|
|
|
- String delayTime = "0";
|
|
|
- int iRet = -1;
|
|
|
- RTXSvrApi RtxsvrapiObj = new RTXSvrApi();
|
|
|
- if (RtxsvrapiObj.Init()) {
|
|
|
-
|
|
|
- iRet = RtxsvrapiObj.sendNotify("zhaoj", "标题", "内容", "0", "0");
|
|
|
- if (iRet == 0) {
|
|
|
- System.out.println("发送成功");
|
|
|
- } else {
|
|
|
- System.out.println("发送失败");
|
|
|
- }
|
|
|
- }
|
|
|
- RtxsvrapiObj.UnInit();
|
|
|
- } catch (Throwable e) {
|
|
|
- // flag=false;
|
|
|
- e.printStackTrace();
|
|
|
- }*/
|
|
|
+ // getURLContent("http://192.168.30.142:81/");
|
|
|
+ /*
|
|
|
+ * try { String type = "0"; String delayTime = "0"; int iRet = -1;
|
|
|
+ * RTXSvrApi RtxsvrapiObj = new RTXSvrApi(); if (RtxsvrapiObj.Init()) {
|
|
|
+ *
|
|
|
+ * iRet = RtxsvrapiObj.sendNotify("zhaoj", "标题", "内容", "0", "0"); if
|
|
|
+ * (iRet == 0) { System.out.println("发送成功"); } else {
|
|
|
+ * System.out.println("发送失败"); } } RtxsvrapiObj.UnInit(); } catch
|
|
|
+ * (Throwable e) { // flag=false; e.printStackTrace(); }
|
|
|
+ */
|
|
|
}
|
|
|
}
|