Bladeren bron

新增手机号登录/注册协议

neo 1 jaar geleden
bovenliggende
commit
55650d6b7a
1 gewijzigde bestanden met toevoegingen van 64 en 0 verwijderingen
  1. 64 0
      proto-lib/proto_http.lua

+ 64 - 0
proto-lib/proto_http.lua

@@ -65,6 +65,70 @@ local proto_c2s =
65 65
                 configVersion 13: string    # configVersion
66 66
             }
67 67
         }
68
+
69
+        # 注册 - 手机号
70
+        usr_register_by_phone 1002 {
71
+            request {
72
+                version 1: string           # 必填 - 版本号
73
+                channel 2: integer          # 必填 - 渠道号
74
+                device 3: string            # 选填 - 设备名称
75
+                sysVer 4: string            # 选填 - 设备信息
76
+                apn 5: string               # 选填 - 玩家网络状态
77
+                operator 6: string          # 选填 - 运营商类型字段
78
+                platform 7: string          # 选填 - 登录平台
79
+                deviceId 8: string          # 选填 - 设备号
80
+
81
+                phone 30: string            # 必填 - 手机号
82
+                vcode 31: string            # 必填 - 验证码
83
+                password 32: string         # 必填 - 密码
84
+                nickname 33: string         # 选填 - 昵称 - 空:手机号作为昵称
85
+                sharecode 34: string        # 选填 - 邀请码
86
+            }
87
+            response {
88
+                code 0: integer
89
+                sysTime 1: integer          # 服务器时间
90
+                ip 2: string                # 游戏服网关地址
91
+                port 3: integer             # 网关Socket连接的Port
92
+                wsPort 4: integer           # 网关websocket连接端口
93
+                httpPort 5: integer         # 网关HTTP PORT
94
+                token 6: string             # token
95
+                uid 7: integer              # 玩家id
96
+                registerTime 8: integer     # 注册时间
97
+                errorMsg 9: string          # 登陆失败错误信息
98
+                configVersion 10: string    # configVersion
99
+            }
100
+        }
101
+        
102
+        # 登录 - 手机号
103
+        usr_login_by_phone 1003 {
104
+            request {
105
+                version 1: string           # 必填 - 版本号
106
+                channel 2: integer          # 必填 - 渠道号
107
+                device 3: string            # 选填 - 设备名称
108
+                sysVer 4: string            # 选填 - 设备信息
109
+                apn 5: string               # 选填 - 玩家网络状态
110
+                operator 6: string          # 选填 - 运营商类型字段
111
+                platform 7: string          # 选填 - 登录平台
112
+                deviceId 8: string          # 选填 - 设备号
113
+
114
+                phone 30: string            # 必填 - 手机号
115
+                vcode 31: string            # vcode/password必填 - 验证码 - 优先校验vcode
116
+                password 32: string         # vcode/password必填 - 密码
117
+            }
118
+            response {
119
+                code 0: integer
120
+                sysTime 1: integer          # 服务器时间
121
+                ip 2: string                # 游戏服网关地址
122
+                port 3: integer             # 网关Socket连接的Port
123
+                wsPort 4: integer           # 网关websocket连接端口
124
+                httpPort 5: integer         # 网关HTTP PORT
125
+                token 6: string             # token
126
+                uid 7: integer              # 玩家id
127
+                registerTime 8: integer     # 注册时间
128
+                errorMsg 9: string          # 登陆失败错误信息
129
+                configVersion 10: string    # configVersion
130
+            }
131
+        }
68 132
 ]]
69 133
 
70 134
 local proto_s2c = [[