Просмотр исходного кода

数据字典脚本api加强制刷新的参数

unknown 5 лет назад
Родитель
Сommit
f31c1b3725

+ 2 - 2
o2web/source/o2_core/o2/xScript/CMSEnvironment.js

@@ -1566,10 +1566,10 @@ MWF.xScript.createCMSDict = function(application){
             return ar.join("/");
         };
 
-        this.get = function(path, success, failure, async){
+        this.get = function(path, success, failure, async, refresh){
             var value = null;
             if (path){
-                if (this.dictData[path]){
+                if ( !refresh && this.dictData[path] ){
                     if (success) success(this.dictData[path]);
                     return this.dictData[path];
                 }

+ 2 - 2
o2web/source/o2_core/o2/xScript/Environment.js

@@ -1662,10 +1662,10 @@ MWF.xScript.createDict = function(application){
             return ar.join("/");
         };
 
-        this.get = function(path, success, failure, async){
+        this.get = function(path, success, failure, async, refresh){
             var value = null;
             if (path){
-                if (this.dictData[path]){
+                if (!refresh && this.dictData[path]){
                     if (success) success(this.dictData[path]);
                     return this.dictData[path];
                 }

+ 2 - 2
o2web/source/o2_core/o2/xScript/PageEnvironment.js

@@ -1379,10 +1379,10 @@ MWF.xScript.createDict = function(application){
             return ar.join("/");
         };
 
-        this.get = function(path, success, failure, async){
+        this.get = function(path, success, failure, async, refresh){
             var value = null;
             if (path){
-                if (this.dictData[path]){
+                if ( !refresh && this.dictData[path]){
                     if (success) success(this.dictData[path]);
                     return this.dictData[path];
                 }

+ 2 - 2
o2web/source/o2_core/o2/xScript/ViewEnvironment.js

@@ -1137,10 +1137,10 @@ if( !MWF.xScript.createDict ){
                 return ar.join("/");
             };
 
-            this.get = function(path, success, failure, async){
+            this.get = function(path, success, failure, async, refresh){
                 var value = null;
                 if (path){
-                    if (this.dictData[path]){
+                    if (!refresh && this.dictData[path]){
                         if (success) success(this.dictData[path]);
                         return this.dictData[path];
                     }