Просмотр исходного кода

台州短信通知方面更新

hu 4 лет назад
Родитель
Сommit
683a3c52f4

+ 1 - 1
src/apps/afterserviceorder/afterserviceorder.java

@@ -191,7 +191,7 @@ public class afterserviceorder extends PaoCust {
                 PaoSetRemote tagents =getPaoSet("TAGENTS");
                 String fagentshortname = tagents.getPao(0).getString("FAGENTSHORTNAME");
                 int size = hyworker.count();
-                while (size>0 && getSite().equals("HY")){
+                while (size>0){
                     String phone = hyworker.getPao(size-1).getString("WORKPHONE");
                     HttpURLRest rest = new HttpURLRest("http://smssh1.253.com/msg/v1/send/json");
                     rest.addHeader("Content-type", "application/json");

+ 3 - 3
src/apps/hyworkorder/hyworkorder.java

@@ -215,7 +215,7 @@ public class hyworkorder extends PaoCust {
 				tagents.setWhere("FAGENTNUM='" + getString("FAGENTNUM") + "'");
 				hyworker.setWhere("HYWORKERNUM ='" + getString("PROJECTLEADER") + "'");
 				hyworker.reset();
-				if (!hyworker.isEmpty() && getSite().equals("HY")) {
+				if (!hyworker.isEmpty()) {
 					String submitby = afterserviceorder.getPao(0).getString("SUBMITBY");
 					String phone = hyworker.getPao(0).getString("WORKPHONE");
 					String fagentshortname = tagents.getPao(0).getString("FAGENTSHORTNAME");
@@ -263,7 +263,7 @@ public class hyworkorder extends PaoCust {
 						org.json.JSONObject jsonObject = new org.json.JSONObject();
 						jsonObject.put("account", "N3147701");
 						jsonObject.put("password", "4ClGyab6fv6a87");
-						jsonObject.put("msg", "【Banninger】您好,您的服务申请单已处理,请点击链接前往查询http://122.226.136.204:8082/BGJ/tz/tripList.html?id="+getString("SCENEPHONE"));
+						jsonObject.put("msg", "【Banninger】您好,您的服务申请单已处理,请点击链接前往查询https://oms.idcgroup.com.cn:8079/BGJ/tz/tripList.html?id="+getString("SCENEPHONE"));
 						jsonObject.put("phone", getString("SCENEPHONE"));
 						rest.addRawBody(jsonObject.toString());
 						String s = rest.post();
@@ -271,7 +271,7 @@ public class hyworkorder extends PaoCust {
 								P2Server.getP2Server().getSystemUserInfo());
 						PaoRemote remote = verCodehistory.addAtEnd();
 						remote.setValue("phone", getString("SCENEPHONE"));
-						remote.setValue("msg", "【Banninger】您好,您的服务申请单已处理,请点击链接前往查询http://122.226.136.204:8082/BGJ/tz/tripList.html?id="+getString("SCENEPHONE"));
+						remote.setValue("msg", "【Banninger】您好,您的服务申请单已处理,请点击链接前往查询https://oms.idcgroup.com.cn:8079/BGJ/tz/tripList.html?id="+getString("SCENEPHONE"));
 						remote.setValue("content", s);
 						verCodehistory.save();
 					} catch (Exception e) {