Skip to content

Commit

Permalink
修复 serviceId 拼写错误bug 处理
Browse files Browse the repository at this point in the history
  • Loading branch information
928255095 committed Jul 24, 2019
1 parent 00eafeb commit e826a12
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ protected void doSoService(ServiceDataFlowEvent event, DataFlowContext context,
}

//处理 服务信息
if(!serviceInfo.containsKey("servicdeId")
|| StringUtils.isEmpty(serviceInfo.getString("servicdeId"))
|| serviceInfo.getString("servicdeId").startsWith("-")){
serviceInfo.put("servicdeId", saveServiceInfo(reqJson, serviceInfo));
if(!serviceInfo.containsKey("serviceId")
|| StringUtils.isEmpty(serviceInfo.getString("serviceId"))
|| serviceInfo.getString("serviceId").startsWith("-")){
serviceInfo.put("serviceId", saveServiceInfo(reqJson, serviceInfo));
}

//处理路由信息
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
},
_initEvent:function(){
vc.on('viewAppInfo','chooseApp',function(_app){
vc.component.viewAppInfo = _app;
vc.emit($props.callBackListener,$props.callBackFunction,_app);
vc.copyObject(_app, vc.component.viewAppInfo);
vc.emit($props.callBackListener,$props.callBackFunction,vc.component.viewAppInfo);
});

vc.on('viewAppInfo', 'onIndex', function(_index){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
serviceId:"",
flowComponent:'Service',
name:"",
securityCode:"",
whileListIp:"",
blackListIp:"",
remark:""
serviceCode:"",
messageQueueName:"",
isInstance:"",
url:"",
method:"",
timeout:"",
retryCount:""
}
},
_initMethod:function(){
Expand All @@ -26,8 +29,9 @@
},
_initEvent:function(){
vc.on('viewServiceInfo','chooseService',function(_service){
vc.component.viewServiceInfo = _service;
vc.emit($props.callBackListener,$props.callBackFunction,_service);
vc.copyObject(_service, vc.component.viewServiceInfo);

vc.emit($props.callBackListener,$props.callBackFunction,vc.component.viewServiceInfo);
});

vc.on('viewServiceInfo', 'onIndex', function(_index){
Expand Down

0 comments on commit e826a12

Please sign in to comment.