Parcourir la source

修改服务和代理脚本中的注释,原来的描述有错误

huqi il y a 5 ans
Parent
commit
c8cbd13632

+ 4 - 4
o2web/source/x_component_service_AgentDesigner/Agent.js

@@ -111,9 +111,9 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
                 var defaultText = "/********************\n";
                 defaultText += "this.entityManager; //实体管理器\n";
                 defaultText += "this.applications; //访问系统内服务\n";
-                defaultText += "this.organization(); //组织访问\n";
-                defaultText += "this.org(); //组织快速访问方法\n";
-                defaultText += "this.service(); ///webSerivces客户端\n";
+                defaultText += "this.organization; //组织访问\n";
+                defaultText += "this.org; //组织快速访问方法\n";
+                defaultText += "this.service; ///webSerivces客户端\n";
                 defaultText += "********************/\n";
                 this.editor.editor.setValue(defaultText);
             }
@@ -386,4 +386,4 @@ MWF.xApplication.service.AgentDesigner.Agent = new Class({
     explode: function(){},
     implode: function(){}
 
-});
+});

+ 4 - 4
o2web/source/x_component_service_InvokeDesigner/Invoke.js

@@ -118,9 +118,9 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
                 defaultText += "this.currentPerson//当前用户\n";
                 defaultText += "this.response//响应对象。通过this.response.setBody(data)设置响应内容\n";
 
-                defaultText += "this.organization(); //组织访问\n";
-                defaultText += "this.org(); //组织快速访问方法\n";
-                defaultText += "this.service(); ///webSerivces客户端\n";
+                defaultText += "this.organization; //组织访问\n";
+                defaultText += "this.org; //组织快速访问方法\n";
+                defaultText += "this.service; ///webSerivces客户端\n";
                 defaultText += "********************/\n";
                 this.editor.editor.setValue(defaultText);
             }
@@ -408,4 +408,4 @@ MWF.xApplication.service.InvokeDesigner.Invoke = new Class({
     explode: function(){},
     implode: function(){}
 
-});
+});