demo.go 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. package proto
  2. /* 调用样例(demo)
  3. // 1=活跃时长(大厅模块)(已植入)
  4. PostTest("triggerEvent", struct {
  5. TypeId int // 类型ID
  6. Param string // 参数
  7. Value int // 值
  8. TotalValue int // 累计值
  9. }{
  10. TypeId: userlabel.Type_ActiveTime,
  11. Param: "",
  12. Value: 20, // 在线时长
  13. TotalValue: 0,
  14. })
  15. // 2=付费金额(充值模块)(已植入)
  16. PostTest("triggerEvent", struct {
  17. TypeId int // 类型ID
  18. Param string // 参数
  19. Value int // 值
  20. TotalValue int // 累计值
  21. }{
  22. TypeId: userlabel.Type_ChargeAmount,
  23. Param: "",
  24. Value: 30, // 充值金额
  25. TotalValue: 0,
  26. })
  27. // 3 = 游戏喜好(游戏模块)
  28. PostTest("triggerEvent", struct {
  29. TypeId int // 类型ID
  30. Param string // 参数
  31. Value int // 值
  32. TotalValue int // 累计值
  33. }{
  34. TypeId: userlabel.Type_GamePreferences,
  35. Param: "37", // 游戏ID
  36. Value: 200, // 游戏时长
  37. TotalValue: 0,
  38. })
  39. // 4=好友房(游戏模块)(已植入)
  40. PostTest("triggerEvent", struct {
  41. TypeId int // 类型ID
  42. Param string // 参数
  43. Value int // 值
  44. TotalValue int // 累计值
  45. }{
  46. TypeId: userlabel.Type_FriendRoom,
  47. Param: "",
  48. Value: 80, // 好友局数
  49. TotalValue: 0,
  50. })
  51. // 5=互动类(语聊房模块)
  52. PostTest("triggerEvent", struct {
  53. TypeId int // 类型ID
  54. Param string // 参数
  55. Value int // 值
  56. TotalValue int // 累计值
  57. }{
  58. TypeId: userlabel.Type_Interactive,
  59. Param: "",
  60. Value: 50000, // 互动道具和礼物价值金币数
  61. TotalValue: 0,
  62. })
  63. // 6=任务类(任务模块)(已植入)
  64. PostTest("triggerEvent", struct {
  65. TypeId int // 类型ID
  66. Param string // 参数
  67. Value int // 值
  68. TotalValue int // 累计值
  69. }{
  70. TypeId: userlabel.Type_Task,
  71. Param: "",
  72. Value: 8, // 任务数
  73. TotalValue: 0,
  74. })
  75. // 7=聊天类(聊天模块)
  76. PostTest("triggerEvent", struct {
  77. TypeId int // 类型ID
  78. Param string // 参数
  79. Value int // 值
  80. TotalValue int // 累计值
  81. }{
  82. TypeId: userlabel.Type_Chat,
  83. Param: "",
  84. Value: 57, // 聊天信息条数
  85. TotalValue: 0,
  86. })
  87. // 8=交际类(好友模块)(已植入)
  88. PostTest("triggerEvent", struct {
  89. TypeId int // 类型ID
  90. Param string // 参数
  91. Value int // 值
  92. TotalValue int // 累计值
  93. }{
  94. TypeId: userlabel.Type_Communication,
  95. Param: "",
  96. Value: 23, // 好友数量
  97. TotalValue: 0, // 好友数量
  98. })
  99. // 9=IP危险(注册模块)(已植入)
  100. PostTest("triggerEvent", struct {
  101. TypeId int // 类型ID
  102. Param string // 参数
  103. Value int // 值
  104. TotalValue int // 累计值
  105. }{
  106. TypeId: userlabel.Type_IpDanger,
  107. Param: "183.17.230.102", // IP地址
  108. Value: 0,
  109. TotalValue: 0,
  110. })
  111. // 10=IMei危险(注册模块)(已植入)
  112. PostTest("triggerEvent", struct {
  113. TypeId int // 类型ID
  114. Param string // 参数
  115. Value int // 值
  116. TotalValue int // 累计值
  117. }{
  118. TypeId: userlabel.Type_IMeiDanger,
  119. Param: "47f6306f-a9f6-f022-17a7-7eef2eb20d28", // 设备号(deviceid)
  120. Value: 0,
  121. TotalValue: 0,
  122. })
  123. // 11=输金危险(游戏模块、充值模块)
  124. PostTest("triggerEvent", struct {
  125. TypeId int // 类型ID
  126. Param string // 参数
  127. Value int // 值
  128. TotalValue int // 累计值
  129. }{
  130. TypeId: userlabel.Type_LoseDanger,
  131. Param: "",
  132. Value: 5000000, // 输金币数
  133. TotalValue: 0, // 充值金额(美元)
  134. })
  135. // 12=作弊危险(游戏模块)
  136. PostTest("triggerEvent", struct {
  137. TypeId int // 类型ID
  138. Param string // 参数
  139. Value int // 值
  140. TotalValue int // 累计值
  141. }{
  142. TypeId: userlabel.Type_CheatingDanger,
  143. Param: "",
  144. Value: 1000, // 好友房赢金币数
  145. TotalValue: 1000, // 所有房间赢金币数(好友场、比赛场等等)
  146. })
  147. // 13=潜在付费(充值模块)
  148. PostTest("triggerEvent", struct {
  149. TypeId int // 类型ID
  150. Param string // 参数
  151. Value int // 值
  152. TotalValue int // 累计值
  153. }{
  154. TypeId: userlabel.Type_PotentialCharge,
  155. Param: "",
  156. Value: 5, // 点击商城次数
  157. TotalValue: 100, // 充值金额
  158. })
  159. // 14=被动付费(充值模块)
  160. PostTest("triggerEvent", struct {
  161. TypeId int // 类型ID
  162. Param string // 参数
  163. Value int // 值
  164. TotalValue int // 累计值
  165. }{
  166. TypeId: userlabel.Type_PassiveCharge,
  167. Param: "",
  168. Value: 5, // 破产或者濒临破产时充值次数
  169. TotalValue: 5, // 总充值次数
  170. })
  171. // 15=储蓄付费(充值模块)(已植入)
  172. PostTest("triggerEvent", struct {
  173. TypeId int // 类型ID
  174. Param string // 参数
  175. Value int // 值
  176. TotalValue int // 累计值
  177. }{
  178. TypeId: userlabel.Type_SavingsCharge,
  179. Param: "",
  180. Value: 500000, // 充值时剩余金币
  181. TotalValue: 5, // 充值金额
  182. })
  183. // 16=折扣付费(充值模块,主要用于礼包购买)
  184. PostTest("triggerEvent", struct {
  185. TypeId int // 类型ID
  186. Param string // 参数
  187. Value int // 值
  188. TotalValue int // 累计值
  189. }{
  190. TypeId: userlabel.Type_DiscountCharge,
  191. Param: "",
  192. Value: 1, // 充值礼包次数
  193. TotalValue: 100, // 充值次数
  194. })
  195. */