ソースを参照

新增支付统计信息

huangyuhao 1 年間 前
コミット
4e22a73308
共有3 個のファイルを変更した34 個の追加5 個の削除を含む
  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 9
 local proto_struct = [[
3 10
 ]]
4 11
 
@@ -68,6 +74,13 @@ local proto_s2c =
68 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 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 9
 local proto_struct =
3 10
     [[
4 11
     # 物品
@@ -14,7 +20,7 @@ local proto_struct =
14 20
         count 1: integer                # 物品数量
15 21
         endTime 2: integer              # 到期时间戳
16 22
     }
17
-    
23
+
18 24
     # 玩家基础信息
19 25
     .DataUserBaseInfo {
20 26
         uid 0: integer                  # 玩家uid
@@ -41,7 +47,7 @@ local proto_struct =
41 47
         shareCode 10: string            # 我的推广码
42 48
         steamLink 11: string            # steam交易链接
43 49
     }
44
-    
50
+
45 51
     # 订单信息
46 52
     .DataOrder {
47 53
         status 0: integer               # 订单状态, 1表示成功!
@@ -54,6 +60,14 @@ local proto_struct =
54 60
         errCode 7: string               # SDK支付方回调错误码, 可能有,可能没有
55 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 73
 return proto_struct

+ 1 - 1
proto-lib/proto_user.lua

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