@xuda.io/xuda-worker-bundle-min 1.3.623 → 1.3.625
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 +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1106,8 +1106,8 @@ func.common.perform_rpi_request = async function (
|
|
|
1106
1106
|
headers: {
|
|
1107
1107
|
Accept: "application/json",
|
|
1108
1108
|
"Content-Type": "application/json",
|
|
1109
|
-
"xu-token": _session.
|
|
1110
|
-
"xu-app-token": _session.
|
|
1109
|
+
"xu-token": _session.gtp_token,
|
|
1110
|
+
"xu-app-token": _session.app_token,
|
|
1111
1111
|
},
|
|
1112
1112
|
body: JSON.stringify(data),
|
|
1113
1113
|
});
|
|
@@ -6007,7 +6007,7 @@ func.utils.ws_worker.functions = {
|
|
|
6007
6007
|
let ret = await do_heartbeat(
|
|
6008
6008
|
params.app_replicate,
|
|
6009
6009
|
params.app_id,
|
|
6010
|
-
params.gtp_token || req.body.
|
|
6010
|
+
params.gtp_token || req.body.app_token,
|
|
6011
6011
|
params.fingerprint,
|
|
6012
6012
|
params.device_name,
|
|
6013
6013
|
params.stat
|
|
@@ -6017,7 +6017,7 @@ func.utils.ws_worker.functions = {
|
|
|
6017
6017
|
if (params.token) {
|
|
6018
6018
|
try {
|
|
6019
6019
|
const couch = await __.rpi.get_app_couch(req.body.app_id);
|
|
6020
|
-
const session_doc = await couch.get(req.body.
|
|
6020
|
+
const session_doc = await couch.get(req.body.app_token);
|
|
6021
6021
|
ret.session_stat = session_doc.stat;
|
|
6022
6022
|
} catch (error) {}
|
|
6023
6023
|
}
|