Browse Source

修改开盲盒箱子协议

neo 2 years ago
parent
commit
d5e7fa205b
1 changed files with 4 additions and 4 deletions
  1. 4 4
      proto-lib/proto_box.lua

+ 4 - 4
proto-lib/proto_box.lua

@@ -19,7 +19,7 @@ local proto_struct =
19
 local proto_c2s =
19
 local proto_c2s =
20
     [[
20
     [[
21
     # 盲盒信息
21
     # 盲盒信息
22
-    box_get_info 2500 {
22
+    box_blind_get_info 2500 {
23
         request {
23
         request {
24
             id 0: integer               # 指定箱子id 空:所有箱子
24
             id 0: integer               # 指定箱子id 空:所有箱子
25
         }
25
         }
@@ -30,15 +30,15 @@ local proto_c2s =
30
     }
30
     }
31
 
31
 
32
     # 开盲盒
32
     # 开盲盒
33
-    box_open 2501 {
33
+    box_blind_open 2501 {
34
         request {
34
         request {
35
             id 0: integer               # 箱子id
35
             id 0: integer               # 箱子id
36
-            count 1: integer            # 数量
36
+            count 1: integer            # 数量 空:默认1
37
         }
37
         }
38
         response {
38
         response {
39
             code 0: integer
39
             code 0: integer
40
             items 1: *DataItem          # 掉落物品列表
40
             items 1: *DataItem          # 掉落物品列表
41
-            boxInfoList 2: DataBox      # 箱子信息
41
+            boxInfo 2: DataBox          # 箱子信息
42
         }
42
         }
43
     }
43
     }
44
 ]]
44
 ]]