@tmsfe/tms-core 0.0.59 → 0.0.60

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
@@ -49,10 +49,11 @@ function batchSendData(): void {
49
49
  const request = helper.getTms().createRequest();
50
50
  request.post('basic/event/upload', { batch })
51
51
  .then((res: any) => {
52
- if (res.errCode !== 0) {
53
- requestFail(batch);
54
- } else {
52
+ if (res.errCode === 0) {
55
53
  startTimer();
54
+ } else if (res.errMsg !== 'Invalid or expired session!') {
55
+ // 如果是多端登录了,就不要再发了
56
+ requestFail(batch);
56
57
  }
57
58
  })
58
59
  .catch((e: any) => {