Skip to content

Commit 149119a

Browse files
committed
修复PushPlus实名认证提示
1 parent 1e01cc9 commit 149119a

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

dist/PushPlus.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ class PushPlus {
7373
extraMessage: response
7474
};
7575
}
76+
if (response.data.code === 905) {
77+
return {
78+
status: 205,
79+
statusText: 'Error',
80+
extraMessage: response
81+
};
82+
}
7683
return {
7784
status: 100,
7885
statusText: 'Error',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "all-pusher-api",
3-
"version": "1.4.1",
3+
"version": "1.4.2",
44
"description": "统一化推送服务API.",
55
"main": "dist/index.js",
66
"scripts": {

src/PushPlus.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ class PushPlus {
8585
extraMessage: response
8686
};
8787
}
88+
if (response.data.code === 905) {
89+
return {
90+
status: 205,
91+
statusText: 'Error',
92+
extraMessage: response
93+
};
94+
}
8895
return {
8996
status: 100,
9097
statusText: 'Error',

0 commit comments

Comments
 (0)