huqi 5 лет назад
Родитель
Сommit
435dea7ea2

+ 7 - 3
o2web/source/x_desktop/js/initialScriptText.js

@@ -814,8 +814,11 @@ var _Actions = {
 };
 bind.Actions = _Actions;
 
-
-var oPrint = print;
+try{
+    oPrint = oPrint;
+}catch(e){
+    oPrint = print
+}
 print = function(str, type){
     var d = new Date();
     var t = (type || "PRINT").toUpperCase();
@@ -823,7 +826,8 @@ print = function(str, type){
     oPrint(d.format("db")+"."+d.getMilliseconds()+" "+t+" "+l+" "+str);
 }
 bind.print = print;
-bind.oPrint = oPrint;
+echo = print;
+bind.echo = print;
 
 bind.library = library;
 bind.data = this.data;

+ 9 - 2
o2web/source/x_desktop/js/initialServiceScriptText.js

@@ -3259,14 +3259,21 @@ var _org = {
     }
 };
 
-var oPrint = print;
+try{
+    oPrint = oPrint;
+}catch(e){
+    oPrint = print
+}
 print = function(str, type){
     var d = new Date();
     var t = (type || "PRINT").toUpperCase();
-    var l = "[ServiceScript]";
+    var l = "[Script]";
     oPrint(d.format("db")+"."+d.getMilliseconds()+" "+t+" "+l+" "+str);
 }
 bind.print = print;
+echo = print;
+bind.echo = print;
+
 bind.org = _org;
 bind.library = library;
 bind.define = _define;