...
|
...
|
@@ -99,7 +99,7 @@ public class CenterSwitchCtrl { |
|
|
String result2 ="";
|
|
|
if(centerSwitchModel.getName().toLowerCase().equals("switch_mysql")){
|
|
|
//第一步:执行响应的shell文件脚本(token校验再switchdb项目完成)
|
|
|
BaseResponse<String> mysqlResponse = httpRestClientService.postForObject(SWITCH_DB_URL + "/switchMysql", centerSwitchModel, BaseResponse.class);
|
|
|
BaseResponse<String> mysqlResponse = httpRestClientService.postForObject(SWITCH_DB_URL + "/doswitch", centerSwitchModel, BaseResponse.class);
|
|
|
if(mysqlResponse==null||200!=mysqlResponse.getCode()){
|
|
|
return new BaseResponse(201,mysqlResponse==null?"mysql切换异常":mysqlResponse.getMessage());
|
|
|
}
|
...
|
...
|
|