ntk-cms-api 1.2.216 → 1.2.217
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/fesm2020/ntk-cms-api.mjs
CHANGED
|
@@ -3335,7 +3335,7 @@ class CoreAuthService extends ApiServerBase {
|
|
|
3335
3335
|
return this.http.get(this.getBaseUrl() + this.getModuleControllerUrl() + '/CurrentToken', { headers: this.getHeaders() }).pipe(
|
|
3336
3336
|
// catchError(this.handleError)
|
|
3337
3337
|
map((ret) => {
|
|
3338
|
-
this.setToken(ret.token, ret.deviceToken, '');
|
|
3338
|
+
this.setToken(ret.item.token, ret.item.deviceToken, '');
|
|
3339
3339
|
return ret;
|
|
3340
3340
|
}));
|
|
3341
3341
|
}
|
|
@@ -3343,7 +3343,7 @@ class CoreAuthService extends ApiServerBase {
|
|
|
3343
3343
|
return this.http.get(this.getBaseUrl() + this.getModuleControllerUrl() + '/CurrentDeviceToken', { headers: this.getHeaders() }).pipe(
|
|
3344
3344
|
// catchError(this.handleError)
|
|
3345
3345
|
map((ret) => {
|
|
3346
|
-
this.setDeviceToken(ret.deviceToken);
|
|
3346
|
+
this.setDeviceToken(ret.item.deviceToken);
|
|
3347
3347
|
return ret;
|
|
3348
3348
|
}));
|
|
3349
3349
|
}
|
|
@@ -3358,7 +3358,7 @@ class CoreAuthService extends ApiServerBase {
|
|
|
3358
3358
|
return this.http.post(this.getBaseUrl() + this.getModuleControllerUrl() + '/GetTokenDevice/', model).pipe(
|
|
3359
3359
|
// catchError(this.handleError)
|
|
3360
3360
|
map((ret) => {
|
|
3361
|
-
this.setDeviceToken(ret.deviceToken);
|
|
3361
|
+
this.setDeviceToken(ret.item.deviceToken);
|
|
3362
3362
|
return ret;
|
|
3363
3363
|
}));
|
|
3364
3364
|
}
|