Skip to content

Commit 168550a

Browse files
authored
fix: platform check (#652)
* feat: support harmony * feat: support harmony * feat: support harmony * fix: cicd * fix: check platform
1 parent 22e7a00 commit 168550a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/protocol/chat/chat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (x *RegisterUserReq) Check() error {
142142
}
143143

144144
func (x *LoginReq) Check() error {
145-
if x.Platform < constantpb.IOSPlatformID || x.Platform > constantpb.AdminPlatformID {
145+
if x.Platform < constantpb.IOSPlatformID || x.Platform > constantpb.HarmonyOSPlatformID {
146146
return errs.ErrArgs.WrapMsg("platform is invalid")
147147
}
148148
if x.Email == "" {

0 commit comments

Comments
 (0)