修改接口bug
This commit is contained in:
Vendored
+15
-3
@@ -55,7 +55,7 @@ def PROJECT_CONFIG = [
|
|||||||
imageName : 'fangjia-open',
|
imageName : 'fangjia-open',
|
||||||
composeDir : 'fangjia-open',
|
composeDir : 'fangjia-open',
|
||||||
serviceName : 'fangjia-open',
|
serviceName : 'fangjia-open',
|
||||||
deployHost : '192.168.0.36',
|
deployHost : ['192.168.0.36', '192.168.0.18'],
|
||||||
deployBase : '/home/docker',
|
deployBase : '/home/docker',
|
||||||
sshCredId : 'goojia-ssh',
|
sshCredId : 'goojia-ssh',
|
||||||
],
|
],
|
||||||
@@ -155,12 +155,24 @@ pipeline {
|
|||||||
'
|
'
|
||||||
"""
|
"""
|
||||||
} else {
|
} else {
|
||||||
sh """
|
if(cfg.deployHost instanceof String){
|
||||||
|
sh """
|
||||||
sshpass -p "\$SSH_PASS" ssh -o StrictHostKeyChecking=no \$SSH_USER@${cfg.deployHost} '
|
sshpass -p "\$SSH_PASS" ssh -o StrictHostKeyChecking=no \$SSH_USER@${cfg.deployHost} '
|
||||||
cd ${cfg.deployBase}/${cfg.composeDir}
|
cd ${cfg.deployBase}/${cfg.composeDir}
|
||||||
docker compose up -d --no-deps --force-recreate ${cfg.serviceName}
|
docker compose up -d --no-deps --force-recreate ${cfg.serviceName}
|
||||||
'
|
'
|
||||||
"""
|
"""
|
||||||
|
}else{
|
||||||
|
for(def host in cfg.deployHost){
|
||||||
|
sh """
|
||||||
|
sshpass -p "\$SSH_PASS" ssh -o StrictHostKeyChecking=no \$SSH_USER@${host} '
|
||||||
|
cd ${cfg.deployBase}/${cfg.composeDir}
|
||||||
|
docker compose up -d --no-deps --force-recreate ${cfg.serviceName}
|
||||||
|
'
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ public class FangjiaOpenExceptionHandler implements ExceptionHandler {
|
|||||||
LOGGER.error("请求地址:{}", context.getRequest().getRequestURL().toString(), e);
|
LOGGER.error("请求地址:{}", context.getRequest().getRequestURL().toString(), e);
|
||||||
}
|
}
|
||||||
String ip = getLocalHostIP();
|
String ip = getLocalHostIP();
|
||||||
String token = "ae14f50045e9375c354940a2afb86f14e453bd1f08f78da0ba6e788d35bccec4";
|
String token = "b11e4456aa0a15f62fe239a61bc15ce4aefcba7be14b3bff504ebbbfc76f5333";
|
||||||
try {
|
try {
|
||||||
DingDingMessageUtil.sendTextMessage(token, "[OpenApi] "+ip+"服务器内部错误,请及时关注!");
|
DingDingMessageUtil.sendTextMessage(token, "[OpenApi] "+ip+"服务器内部错误,请及时关注!");
|
||||||
} catch (Exception e1) {
|
} catch (Exception e1) {
|
||||||
|
|||||||
+1
-1
@@ -109,7 +109,7 @@ public class AuthenticationInterceptor implements Interceptor {
|
|||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
String ip = getLocalHostIP();
|
String ip = getLocalHostIP();
|
||||||
String token = "ae14f50045e9375c354940a2afb86f14e453bd1f08f78da0ba6e788d35bccec4";
|
String token = "b11e4456aa0a15f62fe239a61bc15ce4aefcba7be14b3bff504ebbbfc76f5333";
|
||||||
try {
|
try {
|
||||||
DingDingMessageUtil.sendTextMessage(token, "[OpenApi] "+ip+"Authentication 错误!");
|
DingDingMessageUtil.sendTextMessage(token, "[OpenApi] "+ip+"Authentication 错误!");
|
||||||
} catch (Exception e1) {
|
} catch (Exception e1) {
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ abstract class BaseBatch {
|
|||||||
}
|
}
|
||||||
def phoneNum = getBatchPhones(batch)
|
def phoneNum = getBatchPhones(batch)
|
||||||
if(SystemUtils.IS_OS_LINUX){
|
if(SystemUtils.IS_OS_LINUX){
|
||||||
sendDingDingMsg("ae14f50045e9375c354940a2afb86f14e453bd1f08f78da0ba6e788d35bccec4",msg, phoneNum)
|
sendDingDingMsg("b11e4456aa0a15f62fe239a61bc15ce4aefcba7be14b3bff504ebbbfc76f5333",msg, phoneNum)
|
||||||
|
|
||||||
// try {
|
// try {
|
||||||
// Map<String, String> params = new HashMap<String, String>();
|
// Map<String, String> params = new HashMap<String, String>();
|
||||||
|
|||||||
Reference in New Issue
Block a user