Browse Source

新增支付统计信息

huangyuhao 2 years ago
parent
commit
4e22a73308
3 changed files with 34 additions and 5 deletions
  1. 15 1
      proto-lib/proto_shop.lua
  2. 18 3
      proto-lib/proto_struct.lua
  3. 1 1
      proto-lib/proto_user.lua

+ 15 - 1
proto-lib/proto_shop.lua

@@ -1,5 +1,11 @@
1
-
1
+--[[
2
+Descripttion:商品相关协议
3
+version:
4
+Author: Neo,Huang
5
+Date: 2023-11-20 23:02:54
6
+LastEditors: Neo,Huang
7
+LastEditTime: 2023-11-22 00:03:28
8
+--]]
2
 local proto_struct = [[
9
 local proto_struct = [[
3
 ]]
10
 ]]
4
 
11
 
@@ -68,6 +74,13 @@ local proto_s2c =
68
             giftItems 2: *DataItem          # 赠送发放物品列表
74
             giftItems 2: *DataItem          # 赠送发放物品列表
69
         }
75
         }
70
     }
76
     }
77
+
78
+    # 支付统计信息变动
79
+    on_shop_pay_info 2302 {
80
+        request {
81
+            payInfo 0: DataPay              # 支付统计信息
82
+        }
83
+    }
71
 ]]
84
 ]]
72
 
85
 
73
 local proto = {
86
 local proto = {

+ 18 - 3
proto-lib/proto_struct.lua

@@ -1,5 +1,11 @@
1
-
1
+--[[
2
+Descripttion:公共结构体
3
+version:
4
+Author: Neo,Huang
5
+Date: 2023-11-15 22:34:08
6
+LastEditors: Neo,Huang
7
+LastEditTime: 2023-11-21 23:52:06
8
+--]]
2
 local proto_struct =
9
 local proto_struct =
3
     [[
10
     [[
4
     # 物品
11
     # 物品
@@ -14,7 +20,7 @@ local proto_struct =
14
         count 1: integer                # 物品数量
20
         count 1: integer                # 物品数量
15
         endTime 2: integer              # 到期时间戳
21
         endTime 2: integer              # 到期时间戳
16
     }
22
     }
17
-    
23
+
18
     # 玩家基础信息
24
     # 玩家基础信息
19
     .DataUserBaseInfo {
25
     .DataUserBaseInfo {
20
         uid 0: integer                  # 玩家uid
26
         uid 0: integer                  # 玩家uid
@@ -41,7 +47,7 @@ local proto_struct =
41
         shareCode 10: string            # 我的推广码
47
         shareCode 10: string            # 我的推广码
42
         steamLink 11: string            # steam交易链接
48
         steamLink 11: string            # steam交易链接
43
     }
49
     }
44
-    
50
+
45
     # 订单信息
51
     # 订单信息
46
     .DataOrder {
52
     .DataOrder {
47
         status 0: integer               # 订单状态, 1表示成功!
53
         status 0: integer               # 订单状态, 1表示成功!
@@ -54,6 +60,14 @@ local proto_struct =
54
         errCode 7: string               # SDK支付方回调错误码, 可能有,可能没有
60
         errCode 7: string               # SDK支付方回调错误码, 可能有,可能没有
55
         amount 8: integer               # 实际订单金额,单位分,要转字符串
61
         amount 8: integer               # 实际订单金额,单位分,要转字符串
56
     }
62
     }
63
+    # 支付统计
64
+    .DataPay {
65
+        totalMoney 0: integer           # 终身,付费金额(单位分)
66
+        totalTimes 1: integer           # 终身,付费次数
67
+
68
+        dayMoney 10: integer            # 当天,付费金额(单位分)
69
+        dayTimes 11: integer            # 当天,付费次数
70
+    }
57
 ]]
71
 ]]
58
 
72
 
59
 return proto_struct
73
 return proto_struct

+ 1 - 1
proto-lib/proto_user.lua

@@ -133,7 +133,7 @@ local proto_s2c =
133
     # 玩家系统信息
133
     # 玩家系统信息
134
     on_user_system_info 2000 {
134
     on_user_system_info 2000 {
135
         request {
135
         request {
136
-            sheildList 0: *integer          # 功能ID列表
136
+            payInfo 0: DataPay              # 支付统计信息
137
         }
137
         }
138
     }
138
     }
139
 
139