jz.kai преди 3 години
родител
ревизия
bbc3d74732

+ 17 - 76
common/src/main/java/com/jpsoft/excellent/modules/common/utils/SMSUtil.java

@@ -6,47 +6,37 @@ import org.apache.commons.httpclient.methods.PostMethod;
 import org.apache.commons.httpclient.params.HttpMethodParams;
 
 import java.util.*;
-
+import com.alibaba.fastjson.JSON;
 
 public class SMSUtil {
-	private final static String SpCode = "216290";
-	private final static String LoginName = "jz_zg";
-	private final static String Password = "zzbs+8468418";
+	private final static String SpCode = "b7e0861e";
+	private final static String LoginName = "jzssyhbgs";
+	private final static String Password = "BB0871C971688CAA1A4FFD86883DD312";
 
 	//发送短信
-	public static MessageResult sendSMS(String MessageContent, String UserNumber, String templateId, String SerialNumber, String ScheduleTime){
+	public static MessageResult sendSMS(String MessageContent, String UserNumber, String ScheduleTime){
 		MessageResult retMessage = new MessageResult();
 
 		try{
 			HttpClient httpclient = new HttpClient();//方法调用
-			PostMethod post = new PostMethod("https://api.ums86.com:9600/sms/Api/Send.do");//接口地址
-			post.getParams().setParameter(HttpMethodParams.HTTP_CONTENT_CHARSET,"gbk");//格式转换
-			post.addParameter("SpCode", SpCode);//企业编号
-			post.addParameter("LoginName", LoginName);//用户名
-			post.addParameter("Password", Password);//接口密钥
-			post.addParameter("MessageContent", MessageContent);//短信内容
-			post.addParameter("UserNumber", UserNumber);//要发送短信的手机号,可多个手机号,用逗号隔开。
-			post.addParameter("templateId", templateId);//模板编号
-			post.addParameter("SerialNumber", SerialNumber);//流水号
-			post.addParameter("ScheduleTime", ScheduleTime);//预约发送时间,格式:yyyyMMddHHmmss
-			post.addParameter("f", "1");
+			PostMethod post = new PostMethod("http://jk.smstcby.com/smsGBK.aspx");
+			post.getParams().setParameter(HttpMethodParams.HTTP_CONTENT_CHARSET,"gbk");
+			post.addParameter("type", "send");
+			post.addParameter("username", LoginName);//用户名
+			post.addParameter("password", Password);//接口密钥
+			post.addParameter("gwid", SpCode);//模板编号
+			post.addParameter("mobile", UserNumber);//要发送短信的手机号,可多个手机号,用逗号隔开。
+			post.addParameter("message", MessageContent);//短信内容
+			if(StringUtils.isNotEmpty(ScheduleTime))
+				post.addParameter("dstime", ScheduleTime);//定时发送
+			post.addParameter("rece", "json");
 			httpclient.executeMethod(post);
 
 			//result=0&description=发送短信成功&taskid=2431729077612&faillist=&task_id=2431729077612
 			String res = new String(post.getResponseBody(),"gbk");
 
 			//取返回数据
-			Map map = new HashMap();
-			String[] rows = res.split("&");
-			for(String row : rows){
-				String[] cells = row.split("=");
-				if(cells.length < 2) {
-					map.put(cells[0], null);
-				}
-				else {
-					map.put(cells[0], cells[1]);
-				}
-			}
+			Map map = (Map)JSON.parse(res);
 
 			retMessage.setResult(true);
 			retMessage.setCode(200);
@@ -61,55 +51,6 @@ public class SMSUtil {
 			retMessage.setMessage(e.getMessage());
 		}
 
-		return retMessage;
-	}
-
-	//查询回执
-	public static MessageResult queryReceipt(){
-		MessageResult retMessage = new MessageResult();
-
-		try{
-			HttpClient httpclient = new HttpClient();//方法调用
-			PostMethod post = new PostMethod("https://api.ums86.com:9600/sms/Api/report.do");//接口地址
-			post.getParams().setParameter(HttpMethodParams.HTTP_CONTENT_CHARSET,"gbk");//格式转换
-			post.addParameter("SpCode", SpCode);//企业编号
-			post.addParameter("LoginName", LoginName);//用户名
-			post.addParameter("Password", Password);//接口密钥
-			httpclient.executeMethod(post);
-
-			//result=0&out=20210609000000000001,19972671252,0;20210609000000000001,19972671252,0;20210609000000000002,18107167836,0;20210609000000000002,19972671252,0;
-			String res = new String(post.getResponseBody(),"gbk");
-
-			//取返回数据
-			res = res.substring(res.indexOf("out=")+4);
-			List<Map> mapList = new ArrayList<>();
-			if(StringUtils.isNotBlank(res)){
-				String[] rows = res.split(";");
-				for(int i=0; i<rows.length-1; i++){
-					String[] cells = rows[i].split(",");
-
-					Map map = new HashMap();
-					map.put("SerialNumber", cells[0]);
-					map.put("UserNumber", cells[1]);
-					map.put("Value", cells[2]);
-					mapList.add(map);
-				}
-			}
-
-			retMessage.setResult(true);
-			retMessage.setCode(200);
-			retMessage.setMessage("回执接收成功。");
-			retMessage.setData(mapList);
-		}
-		catch (Exception e){
-			e.printStackTrace();
-
-			retMessage.setResult(false);
-			retMessage.setCode(400);
-			retMessage.setMessage(e.getMessage());
-		}
-
-
 		return retMessage;
 	}
 }

+ 21 - 28
web/src/main/java/com/jpsoft/excellent/modules/base/controller/IncidentController.java

@@ -128,16 +128,13 @@ public class IncidentController {
 
 //                User user = userService.get(subject);
 //                SimpleDateFormat sdfDetail = new SimpleDateFormat("yyyy年MM月dd日");
-                String templateId = "";
                 String MessageContent = "";
                 //发送跟踪专班短信
-                templateId = "2431012137069";
-                MessageContent = String.format("您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台手机端查看。(http://39.104.144.104/excellent-mobile)",incident.getBatch(),incident.getSerialNo());
-                sendSMSing(MessageContent, templateId, null, incident.getSpecialClassId(), "");
+                MessageContent = String.format("【双优督办】您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台手机端查看。(http://39.104.144.104/excellent-mobile)",incident.getBatch(),incident.getSerialNo());
+                sendSMSing(MessageContent, null, incident.getSpecialClassId(), null);
                 //发送交办单位短信
-                templateId = "2431012137069";
-                MessageContent = String.format("您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台电脑端查看。(http://39.104.144.104/excellent-portal)",incident.getBatch(),incident.getSerialNo());
-                sendSMSing(MessageContent, templateId, incident.getOrgId(), null, "");
+                MessageContent = String.format("【双优督办】您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台电脑端查看。(http://39.104.144.104/excellent-portal)",incident.getBatch(),incident.getSerialNo());
+                sendSMSing(MessageContent, incident.getOrgId(), null, null);
 
                 msgResult.setResult(true);
                 msgResult.setData(incident);
@@ -305,16 +302,13 @@ public class IncidentController {
 
 //                User user = userService.get(subject);
 //                SimpleDateFormat sdfDetail = new SimpleDateFormat("yyyy年MM月dd日");
-                String templateId = "";
                 String MessageContent = "";
                 //发送跟踪专班短信
-                templateId = "2431012152806";
-                MessageContent = String.format("您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台手机端查看。(http://39.104.144.104/excellent-mobile)",incident.getBatch(),incident.getSerialNo());
-                sendSMSing(MessageContent, templateId, null, incident.getSpecialClassId(), "");
+                MessageContent = String.format("【双优督办】您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台手机端查看。(http://39.104.144.104/excellent-mobile)",incident.getBatch(),incident.getSerialNo());
+                sendSMSing(MessageContent, null, incident.getSpecialClassId(), null);
                 //发送交办单位短信
-                templateId = "2431012152806";
-                MessageContent = String.format("您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台电脑端查看。(http://39.104.144.104/excellent-portal)",incident.getBatch(),incident.getSerialNo());
-                sendSMSing(MessageContent, templateId, incident.getOrgId(), null, "");
+                MessageContent = String.format("【双优督办】您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台电脑端查看。(http://39.104.144.104/excellent-portal)",incident.getBatch(),incident.getSerialNo());
+                sendSMSing(MessageContent, incident.getOrgId(), null, null);
 
                 msgResult.setResult(true);
                 msgResult.setData(incident);
@@ -384,12 +378,10 @@ public class IncidentController {
             }
 
             if(StringUtils.isNotEmpty(incident.getSpecialClassId())) {
-                String templateId = "";
                 String MessageContent = "";
                 //发送跟踪专班短信
-                templateId = "2431012153083";
-                MessageContent = String.format("%s责任单位已上传文档(批次:%s,序号:%s),请查阅。",organization.getName(),incident.getBatch(),incident.getSerialNo());
-                sendSMSing(MessageContent, templateId, null, incident.getSpecialClassId(), "");
+                MessageContent = String.format("【双优督办】%s责任单位已上传文档(批次:%s,序号:%s),请查阅。",organization.getName(),incident.getBatch(),incident.getSerialNo());
+                sendSMSing(MessageContent, null, incident.getSpecialClassId(), null);
             }
 
             msgResult.setResult(true);
@@ -1297,16 +1289,13 @@ public class IncidentController {
 
                     incidentService.insert(incident);
 
-                    String templateId = "";
                     String MessageContent = "";
                     //发送跟踪专班短信
-                    templateId = "2431012137069";
-                    MessageContent = String.format("您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台手机端查看。(http://39.104.144.104/excellent-mobile)",incident.getBatch(),incident.getSerialNo());
-                    sendSMSing(MessageContent, templateId, null, incident.getSpecialClassId(), "");
+                    MessageContent = String.format("【双优督办】您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台手机端查看。(http://39.104.144.104/excellent-mobile)",incident.getBatch(),incident.getSerialNo());
+                    sendSMSing(MessageContent, null, incident.getSpecialClassId(), null);
                     //发送交办单位短信
-                    templateId = "2431012137069";
-                    MessageContent = String.format("您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台电脑端查看。(http://39.104.144.104/excellent-portal)",incident.getBatch(),incident.getSerialNo());
-                    sendSMSing(MessageContent, templateId, incident.getOrgId(), null, "");
+                    MessageContent = String.format("【双优督办】您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台电脑端查看。(http://39.104.144.104/excellent-portal)",incident.getBatch(),incident.getSerialNo());
+                    sendSMSing(MessageContent, incident.getOrgId(), null, null);
 
                     affectCount++;
                 }
@@ -1423,34 +1412,38 @@ public class IncidentController {
     }
 
     //发送短信
-    private void sendSMSing(String MessageContent, String templateId, String orgIds, String specialClassIds, String ScheduleTime){
+    private void sendSMSing(String MessageContent, String orgIds, String specialClassIds, String ScheduleTime){
         SimpleDateFormat sfDate = new SimpleDateFormat("yyyyMMddHHmmssSSS");
         String strDate = sfDate.format(new Date());
         String random = String.valueOf((int)((Math.random()*9+1)*100));
         String SerialNumber = strDate + random;
 
         if(com.jpsoft.excellent.modules.common.utils.StringUtils.isNotEmpty(orgIds)) {
+            List<String> phones = new ArrayList<>();
             String[] orgIdArray = orgIds.split(",");
             for(String orgId : orgIdArray){
                 List<User> userList = userService.findListByOrgId(orgId);
                 for(User user : userList){
                     if(StringUtils.isNotEmpty(user.getPhone())) {
-                        SMSUtil.sendSMS(MessageContent, user.getPhone(), templateId, SerialNumber, ScheduleTime);
+                        phones.add(user.getPhone().replace(" ",""));
                     }
                 }
             }
+            SMSUtil.sendSMS(MessageContent, StringUtils.join(phones.toArray(), ","), ScheduleTime);
         }
 
         if(com.jpsoft.excellent.modules.common.utils.StringUtils.isNotEmpty(specialClassIds)) {
+            List<String> phones = new ArrayList<>();
             String[] specialClassIdArray = specialClassIds.split(",");
             for(String specialClassId : specialClassIdArray){
                 List<User> userList = userService.findListBySpecialClassId(specialClassId);
                 for(User user : userList){
                     if(StringUtils.isNotEmpty(user.getPhone())) {
-                        SMSUtil.sendSMS(MessageContent, user.getPhone(), templateId, SerialNumber, ScheduleTime);
+                        phones.add(user.getPhone().replace(" ",""));
                     }
                 }
             }
+            SMSUtil.sendSMS(MessageContent, StringUtils.join(phones.toArray(), ","), ScheduleTime);
         }
     }
 

+ 2 - 4
web/src/main/java/com/jpsoft/excellent/modules/base/controller/MessageController.java

@@ -90,12 +90,10 @@ public class MessageController {
                         SimpleDateFormat sfDate = new SimpleDateFormat("yyyyMMddHHmmssSSS");
                         String strDate = sfDate.format(new Date());
                         String random = String.valueOf((int)((Math.random()*9+1)*100));
-                        String SerialNumber = strDate + random;
 
-                        String templateId = "2431012153393";
-                        String MessageContent = "您有一条站内消息/文件传输,请登录双优督办平台电脑端查看。(http://39.104.144.104/excellent-portal)";
+                        String MessageContent = "【双优督办】您有一条站内消息/文件传输,请登录双优督办平台电脑端查看。(http://39.104.144.104/excellent-portal)";
                         String phone = userService.get(userId).getPhone();
-                        MessageResult messageResult = SMSUtil.sendSMS(MessageContent, phone, templateId, SerialNumber, "");
+                        MessageResult messageResult = SMSUtil.sendSMS(MessageContent, phone, null);
                         logger.isInfoEnabled();
                     }
                 }

+ 7 - 37
web/src/main/java/com/jpsoft/excellent/modules/textController.java

@@ -39,25 +39,22 @@ public class textController {
     public MessageResult sendSMS(@RequestAttribute String subject){
         MessageResult msgResult = new MessageResult();
 
-        String MessageContent = "开发测试:尊敬的DK,您本次的任务是再次连续发2次短信。";
-        String UserNumber = "19972671252";
-        String templateId = "2431012137037";
-        String SerialNumber = "20210609000000000003";
-        String ScheduleTime = "20210609141500";
+        String MessageContent = "【双优督办】您有一条站内消息/文件传输,请登录双由督察平台电脑端查看。(http://39.104.144.104/excellent-portal/)";
+        String UserNumber = "19972671252,15827719088,15586481185";
 
         try {
-            MessageResult message = SMSUtil.sendSMS(MessageContent, UserNumber, templateId, SerialNumber, "");
-            message = SMSUtil.sendSMS(MessageContent, UserNumber, templateId, SerialNumber, ScheduleTime);
+            MessageResult message = SMSUtil.sendSMS(MessageContent, UserNumber, null);
+//            message = SMSUtil.sendSMS(MessageContent, UserNumber, null);
             Map map = (Map) message.getData();
-            if("0".equals(map.get("result"))) {
+            if("success".equals(map.get("returnstatus"))) {
                 msgResult.setCode(200);
                 msgResult.setResult(true);
-                msgResult.setMessage(map.get("description").toString());
+                msgResult.setMessage(map.get("code").toString());
             }
             else {
                 msgResult.setCode(203);
                 msgResult.setResult(true);
-                msgResult.setMessage(map.get("description").toString());
+                msgResult.setMessage(map.get("code").toString());
                 msgResult.setData(message.getData());
             }
         }
@@ -70,33 +67,6 @@ public class textController {
         return msgResult;
     }
 
-    @ApiOperation(value="查询回执")
-    @RequestMapping(value = "queryReceipt",method = RequestMethod.POST)
-    public MessageResult queryReceipt(@RequestAttribute String subject){
-        MessageResult msgResult = new MessageResult();
-
-        try {
-            MessageResult message = SMSUtil.queryReceipt();
-            List<Map> mapList = (List)message.getData();
-            if(mapList.size() > 0) {
-                msgResult.setCode(203);
-                msgResult.setResult(true);
-                msgResult.setData(mapList);
-            }
-            else {
-                msgResult.setCode(204);
-                msgResult.setResult(true);
-            }
-        }
-        catch(Exception ex){
-            msgResult.setCode(400);
-            msgResult.setResult(false);
-            msgResult.setMessage(ex.getMessage());
-        }
-
-        return msgResult;
-    }
-
     @ApiOperation(value="人员转用户")
     @RequestMapping(value = "personToUser",method = RequestMethod.POST)
     public MessageResult personToUser(@RequestAttribute String subject){

+ 12 - 23
web/src/main/java/com/jpsoft/excellent/modules/timed/taskSMS.java

@@ -17,6 +17,7 @@ import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
 
 import java.text.SimpleDateFormat;
+import java.util.ArrayList;
 import java.util.Calendar;
 import java.util.Date;
 import java.util.List;
@@ -47,58 +48,46 @@ public class taskSMS {
         String endTime = sdf.format(calendar.getTime());
         List<Incident> incidentList = incidentService.findTodayListByWarnTime(startTime, endTime);
         for(Incident incident : incidentList){
-            String templateId = "";
             String MessageContent = "";
             //发送跟踪专班短信
-            templateId = "2431012137069";
-            MessageContent = String.format("您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台手机端查看。(http://39.104.144.104/excellent-mobile)",incident.getBatch(),incident.getSerialNo());
-            sendSMSing(MessageContent, templateId, null, incident.getSpecialClassId(), "");
+            MessageContent = String.format("【双优督办】您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台手机端查看。(http://39.104.144.104/excellent-mobile)",incident.getBatch(),incident.getSerialNo());
+            sendSMSing(MessageContent, null, incident.getSpecialClassId(), null);
             //发送交办单位短信
-            templateId = "2431012137069";
-            MessageContent = String.format("您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台电脑端查看。(http://39.104.144.104/excellent-portal)",incident.getBatch(),incident.getSerialNo());
-            sendSMSing(MessageContent, templateId, incident.getOrgId(), null, "");
+            MessageContent = String.format("【双优督办】您有一条待办提醒(批次:%s,序号:%s),请登录双优督办平台电脑端查看。(http://39.104.144.104/excellent-portal)",incident.getBatch(),incident.getSerialNo());
+            sendSMSing(MessageContent, incident.getOrgId(), null, null);
         }
 
         log.warn("定时任务:提醒短信结束");
     }
 
-    private String getSerialNumber20(){
-        SimpleDateFormat sfDate = new SimpleDateFormat("yyyyMMddHHmmssSSS");
-        String strDate = sfDate.format(new Date());
-        String random = String.valueOf((int)((Math.random()*9+1)*100));
-
-        return strDate + random;
-    }
-
     //发送短信
-    private void sendSMSing(String MessageContent, String templateId, String orgIds, String specialClassIds, String ScheduleTime){
-        SimpleDateFormat sfDate = new SimpleDateFormat("yyyyMMddHHmmssSSS");
-        String strDate = sfDate.format(new Date());
-        String random = String.valueOf((int)((Math.random()*9+1)*100));
-        String SerialNumber = strDate + random;
-
+    private void sendSMSing(String MessageContent, String orgIds, String specialClassIds, String ScheduleTime){
         if(com.jpsoft.excellent.modules.common.utils.StringUtils.isNotEmpty(orgIds)) {
+            List<String> phones = new ArrayList<>();
             String[] orgIdArray = orgIds.split(",");
             for(String orgId : orgIdArray){
                 List<User> userList = userService.findListByOrgId(orgId);
                 for(User user : userList){
                     if(StringUtils.isNotEmpty(user.getPhone())) {
-                        SMSUtil.sendSMS(MessageContent, user.getPhone(), templateId, SerialNumber, ScheduleTime);
+                        phones.add(user.getPhone().replace(" ",""));
                     }
                 }
             }
+            SMSUtil.sendSMS(MessageContent, StringUtils.join(phones.toArray(), ","), ScheduleTime);
         }
 
         if(com.jpsoft.excellent.modules.common.utils.StringUtils.isNotEmpty(specialClassIds)) {
+            List<String> phones = new ArrayList<>();
             String[] specialClassIdArray = specialClassIds.split(",");
             for(String specialClassId : specialClassIdArray){
                 List<User> userList = userService.findListBySpecialClassId(specialClassId);
                 for(User user : userList){
                     if(StringUtils.isNotEmpty(user.getPhone())) {
-                        SMSUtil.sendSMS(MessageContent, user.getPhone(), templateId, SerialNumber, ScheduleTime);
+                        phones.add(user.getPhone().replace(" ",""));
                     }
                 }
             }
+            SMSUtil.sendSMS(MessageContent, StringUtils.join(phones.toArray(), ","), ScheduleTime);
         }
     }
 }

+ 1 - 43
web/src/main/resources/application-dev.yml

@@ -18,46 +18,4 @@ logger:
   dir: D:\Logs\excellent-server
 
 electricity:
-  port: 9966    #监听端口
-
-wx:
-  pay:
-    appId: wx7e70eb62a8459869
-    appSecret: 909d17e353268da57c4f18cc09798049
-    token: weixin
-    tokenUrl: "https://api.weixin.qq.com/cgi-bin/token"
-    refreshOAuth2TokenUrl: "https://api.weixin.qq.com/sns/oauth2/refresh_token"
-    createQrCodeUrl: "https://api.weixin.qq.com/cgi-bin/qrcode/create"
-    showQrCodeUrl: "https://mp.weixin.qq.com/cgi-bin/showqrcode"
-  cp:
-    corpId: wwe5fb36b045f42c42
-    appConfigs:
-      - agentId: 1000001
-        secret: jWDwhE92FPB7it7ciO0PzJbu2c0mErMYUNtsiYR3sEo
-        token: M9Kq
-        aesKey: K9j9sJJ6QhNZeCprXoFCU5NYm7jOlyyIXfY0Dewbfnm
-      - agentId: 1000002
-        secret: 1111
-        token: 111
-        aesKey: 111
-alipay:
-  serviceUrl: https://openapi.alipaydev.com/gateway.do
-  appId: 2016080600180410
-  publicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzMBfmTqqpt4dMcuz8DpyrEtruu/G7+Gvkd0j99QX4mzcRLx4Wg9IicOIiZGSdgzLMKIxBmk0eKiqqbuBjOsrS/XU+SvsTNlT1O/ZY0w30HEWrb/pvmo58HSY76cevWqLqW19+fUax7HG811mF4lq4YkHNAWArqByEjoFYbKHbtqS0ReXFJ9SE5TaqZSVOieiu3bYPkw5HEGmnYZMhWH3Gvt6tK2peLSM8mEMY5qp3zlGew3sq1KtcDkvO2UCuAmEkAnCDZ1zoYYt45cvcmwaHozGKHGOtOe0EAitpZyLZW3dP5/yBFfWk+MdaA1kZe5gNr8ePY5ht+Sd+DizMEINiQIDAQAB
-  privateKey: MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDMwF+ZOqqm3h0xy7PwOnKsS2u678bv4a+R3SP31BfibNxEvHhaD0iJw4iJkZJ2DMswojEGaTR4qKqpu4GM6ytL9dT5K+xM2VPU79ljTDfQcRatv+m+ajnwdJjvpx69aoupbX359RrHscbzXWYXiWrhiQc0BYCuoHISOgVhsodu2pLRF5cUn1ITlNqplJU6J6K7dtg+TDkcQaadhkyFYfca+3q0ral4tIzyYQxjmqnfOUZ7DeyrUq1wOS87ZQK4CYSQCcINnXOhhi3jly9ybBoejMYocY6057QQCK2lnItlbd0/n/IEV9aT4x1oDWRl7mA2vx49jmG35J34OLMwQg2JAgMBAAECggEBALpSXSxdPKn4+ew0iJwVNAEh6PkF9ayZXWGJMY/2y31avt81+vdJbSMgcoFtnTAb2FN7ZM2Gsx8RrawjW3LXFmFbZeERXUlZg3YEhXhdBXWDU7XtLFIA7JSqJfn/xHNuH4Wgg8EQkLwkRP11gs/sVvzB63Ilh8Jhcyyu6/LJuYDfeXu/50sgkQn0xXjjJdwiez9iX//wraYYcWsSCCbwM3QZ0MRc3TCP04QfZsF+fnPM83/g2yzun8fmvB5zDtYhlHwau52CiZpTHOxCCkZx0tubVyPG9jmLJ8eg+/hIfOKzHi2HiNsOQlOgLj8inUkM2qW3JlU7VcHduB7MWjkDIAECgYEA6HLVEDDT61xQNIUbnBWQ0FpHBQjsG/388Uy/xKfchUkOfzA0kNId+Nrd3hhLtl3i7ta6KNu2vDNS5iEbg7SCVsgqBZ0enLLIrymyJ94pHbUeFTAqgP4pnoWglx3ttMsERCKcqt55NJY3gfLtVjBTgGgY1Kfxh9SYFC6CQ4v4V4kCgYEA4X8kv8vVg4ivoXk/gEsKXPYdXG6O3sClq7pf/kaecV0caV89rARXkDP324nLUMxvGKY0sNa373VhAFav4Hv3kGqrJ0NfEd/XiXXT3Zq3njN5V5xqjZZRsySimyFoBetYMTjN2dtPxTC/65OvQPC8BdHaSZDMQQQSFznKG9y4hgECgYEAieTFXIt6zB7BPcbQ8DEi7VcA1o3Kc3ii+wqKoMDr4u3J+c3BAUCEo0JDaCOFlrPvkbw0R1S//Ll9riNpzSHiSFUKCLaCmHa+8pqLo3b5cTQmmm8uZ8NfMTkYYU1R3HSrHThjNEIyKO4ME7zm6sBUaNJYGJ9gezG03hQRFr0MH/ECgYAKAXZD/Gtw9rO0WojyzGGdVl5fJ5i3UZ0ITbDMu510Mkl8c3ltFJQ+FdA9sZOP9kJHubhE0IJA4dh4B2CueVG22sTVbSvewyvxMYVBJAhZwLb1qD8iITVm2Y1NjOHswVCcfoTD0fNsMImTjm4MV6JAL9ubwA0QJXoYBbxuGBEoAQKBgDj0LpamjOv/gRDo96C8AKqACqWoHtVWvYaOrgsFVJWRsmkcrQu2nMHNyFlyJ1DcXbVkulILrUDth8+2jmbxrkmW+9Y8aX5vaKEmrNOOWiSgau3VxeJU+VedDYJl1IVpfs4k4ymMkkAGa1ZlMYHgeP20krHMzAn/NNeVvHUEXcR4
-  zfbPublicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlU5CIAwwMmDnDPUHQaxiqZh2y6VE11DFTYVZygLEUbZuSCATO2fGkY8hv3fhLj8Wj+QT4kRfJrK+/v1QKcZ7a5UaoaASOPOGEf8X9p+lfuA863luUPiD+k4W6QMjOXoPdY4G4JC9lFe5FT05NqVYHXGIIqXTWSIqLyWDlv7elj8D1HS06H+ArzAjbSyR47IaKJCMnpqLGHJ6ZQGM+6DEcOpdZAULjhguZ891eTtawVndDOaYToCDK4MpW9mEifpKRB8JZptqr2zQhFBm7iADyMsIM1xwko2N6mKJYyYZJ9QzhTindSQBGw0Pbt1480iqeoQOHo+z0HPmikIsuiu65QIDAQAB
-  inputCharset: UTF-8
-  mchId: 2088102170202580
-  # appAuthToken: 201906BBbc7d6558596f4bbc9f056c01b8aebX48
-  signType: RSA2
-  notifyUrl: http://18891j25i6.iok.la/smart-server/aliPay/payNotify
-
-realname:
-  selectUrl: "http://jztest.e2r.cn:8115/foreign/select/check"
-  uploadUrl: "http://jztest.e2r.cn:8115/foreign/upload/check"
-
-#springfox:
-#  documentation:
-#    swagger:
-#      v2:
-#        host: kr6zr7.natappfree.cc
+  port: 9966    #监听端口

+ 1 - 8
web/src/main/resources/application-production.yml

@@ -23,11 +23,4 @@ springfox:
   documentation:
     swagger:
       v2:
-        host: wsbmapi.xiaoxinda.com
-
-baidu:
-  ak: "ECKKpSyZRaFqtfSEV0TSyPZP"
-  sk: "fZSDklYCuAcDryMYGL37ed1I2LmAEDvu"
-
-wechat:
-  tokenUrl: "http://192.168.0.1:8080/weixin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET"
+        host: wsbmapi.xiaoxinda.com