前端正确处理 socketio 状态码 #100
Labels
No Label
area/smartpanel
bug
done-waiting-confirmed
kind/feature
page/admin
page/simplepage
page/tab-admin
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: smartoilets-front/projects#100
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
如果 wcName 或 roomType 参数缺失,服务器会返回 code=400, 如果重复订阅, 会返回 code=429
重复订阅的例子:
siteA+wc1 √
siteA+wc2 √
siteA+wc2 重复
siteA+wc1 √
siteB+wc1 √
siteA+wc1 重复
可能改个另外的code,429表示太多请求而不是重复请求,可能也不够精准