@xuda.io/xuda-worker-bundle-min 1.3.545 → 1.3.547
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +16 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1055,8 +1055,18 @@ func.common.perform_rpi_request = async function (
|
|
|
1055
1055
|
) {
|
|
1056
1056
|
var _session = SESSION_OBJ[SESSION_ID];
|
|
1057
1057
|
var _data_system = _session?.DS_GLB?.[0]?.data_system;
|
|
1058
|
+
|
|
1059
|
+
const set_ajax = async function (stat) {
|
|
1060
|
+
var datasource_changes = {
|
|
1061
|
+
[0]: {
|
|
1062
|
+
["data_system"]: { SYS_GLOBAL_BOL_AJAX_BUSY: stat },
|
|
1063
|
+
},
|
|
1064
|
+
};
|
|
1065
|
+
await func.datasource.update(SESSION_ID, datasource_changes);
|
|
1066
|
+
};
|
|
1058
1067
|
if (_data_system) {
|
|
1059
|
-
_data_system.SYS_GLOBAL_BOL_AJAX_BUSY = 1;
|
|
1068
|
+
// _data_system.SYS_GLOBAL_BOL_AJAX_BUSY = 1;
|
|
1069
|
+
await set_ajax(1);
|
|
1060
1070
|
if (!_data_system.SYS_GLOBAL_BOL_CONNECTED) {
|
|
1061
1071
|
func.utils.alerts.toast(
|
|
1062
1072
|
SESSION_ID,
|
|
@@ -1140,7 +1150,8 @@ func.common.perform_rpi_request = async function (
|
|
|
1140
1150
|
data
|
|
1141
1151
|
);
|
|
1142
1152
|
if (_data_system) {
|
|
1143
|
-
_data_system.SYS_GLOBAL_BOL_AJAX_BUSY = 0;
|
|
1153
|
+
// _data_system.SYS_GLOBAL_BOL_AJAX_BUSY = 0;
|
|
1154
|
+
await set_ajax(0);
|
|
1144
1155
|
}
|
|
1145
1156
|
return ret;
|
|
1146
1157
|
} else {
|
|
@@ -1149,7 +1160,8 @@ func.common.perform_rpi_request = async function (
|
|
|
1149
1160
|
} catch (err) {
|
|
1150
1161
|
const ret = await http();
|
|
1151
1162
|
if (_data_system) {
|
|
1152
|
-
_data_system.SYS_GLOBAL_BOL_AJAX_BUSY = 0;
|
|
1163
|
+
// _data_system.SYS_GLOBAL_BOL_AJAX_BUSY = 0;
|
|
1164
|
+
await set_ajax(0);
|
|
1153
1165
|
}
|
|
1154
1166
|
return ret;
|
|
1155
1167
|
}
|
|
@@ -1729,6 +1741,7 @@ func.datasource.prepare = async function (
|
|
|
1729
1741
|
_ds.data_system["SYS_GLOBAL_BOL_REPLICATION_STAT"] = 0;
|
|
1730
1742
|
_ds.data_system["SYS_GLOBAL_BOL_AJAX_BUSY"] = 0;
|
|
1731
1743
|
_ds.data_system["SYS_GLOBAL_BOL_CONNECTED"] = 1;
|
|
1744
|
+
_ds.data_system["SYS_GLOBAL_BOL_IDLE"] = 0;
|
|
1732
1745
|
|
|
1733
1746
|
_ds.data_system["SYS_GLOBAL_STR_FIREBASE_TOKEN_ID"] = 0;
|
|
1734
1747
|
|