Commit ab1b233
committed
fix: recognize Bemfa legacy API new success codes (5723007/5733007/5743007)
Bemfa's legacy API now returns new success codes:
- 5723007 = 'added successfullye' (note: typo in Bemfa's response)
- 5733007 = 'delete successfullye'
- 5743007 = 'update successfullye'
Previously, these were treated as failures, causing a false fallback
to the new API which then failed because the operation had already
succeeded. This led to duplicate creation attempts and misleading
error logs like 'code=40004 Uid or topic err'.
Now both codes and status strings are recognized as success.
Version bump to 2.3.01 parent 0a3e8ef commit ab1b233
2 files changed
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
48 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
49 | 65 | | |
50 | 66 | | |
51 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
0 commit comments