srvItemRecord.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Descripttion:明细
  3. version:
  4. Author: Neo,Huang
  5. Date: 2023-11-22 23:59:15
  6. LastEditors: Neo,Huang
  7. LastEditTime: 2023-11-23 00:00:24
  8. --]]
  9. local baseService = require("baseService")
  10. local util_record_item = require("utils.util_record_item")
  11. local util_user = require("utils.util_user")
  12. local root = {}
  13. -- 获取流水
  14. function root.get_item_detail_gold(uid, lastTime)
  15. if is_empty(uid) then
  16. return
  17. end
  18. local list = util_record_item:get_gold_record(uid, lastTime)
  19. if list == nil then
  20. return
  21. end
  22. local pack = {
  23. count = #list,
  24. list = list
  25. }
  26. util_user:user_proto_notify(uid, "on_user_item_detail_gold", pack)
  27. end
  28. -- 获取饰品
  29. function root.get_item_detail_wapon(uid, lastTime)
  30. if is_empty(uid) then
  31. return
  32. end
  33. local list = util_record_item:get_wapon_record(uid, lastTime)
  34. if list == nil then
  35. return
  36. end
  37. local pack = {
  38. count = #list,
  39. list = list
  40. }
  41. util_user:user_proto_notify(uid, "on_user_item_detail_wapon", pack)
  42. end
  43. function root.onStart()
  44. return true
  45. end
  46. function root.onStop()
  47. return true
  48. end
  49. baseService.start(root, ".srvItemRecord")