123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- --[[
- Descripttion:
- version:
- Author: Neo,Huang
- Date: 2023-11-15 22:34:35
- LastEditors: Neo,Huang
- LastEditTime: 2023-11-23 00:10:07
- --]]
- --[[
- Descripttion:玩家
- version:
- Author: Neo,Huang
- Date: 2023-11-15 22:34:35
- LastEditors: Neo,Huang
- LastEditTime: 2023-11-15 23:19:26
- --]]
- local skynet = require("skynet")
- local code = require "code"
- local timeUtil = require("utils.timeUtil")
- local util_user = require("utils.util_user")
- local payData = require("data.pay")
- local root = {}
- function root:user_keepalive(role)
- return code.OK, {systemTime = timeUtil.now(role.uid)}
- end
- -- 请求个人信息
- function root:user_self_info(role, msg)
- return role.user:itf_get_info(role, msg)
- end
- -- 登录完成后
- function root:after_user_self_info(role, msg)
- local uid = role.uid
- local pack = {
- payInfo = payData:pack_pay_info(uid)
- }
- util_user:user_proto_notify(role.uid, "on_user_system_info", pack)
- end
- -- 获取验证码
- function root:user_get_verify_code(role, msg)
- return role.user:itf_get_verify_code(role, msg)
- end
- -- 更新主播邀请码
- function root:user_update_band_share_code(role, msg)
- return role.user:itf_update_band_share_code(role, msg)
- end
- -- 更新自己邀请码
- function root:user_update_share_code(role, msg)
- return role.user:itf_update_share_code(role, msg)
- end
- -- 更新steam交易链接
- function root:user_update_steam_link(role, msg)
- return role.user:itf_update_steam_link(role, msg)
- end
- -- 更新头像
- function root:user_update_icon(role, msg)
- return role.user:itf_update_icon(role, msg)
- end
- -- 更新昵称
- function root:user_update_nickname(role, msg)
- return role.user:itf_update_nickname(role, msg)
- end
- -- 更新密码
- function root:user_update_password(role, msg)
- return role.user:itf_update_password(role, msg)
- end
- -- 注销
- function root:user_cancel_account(role, msg)
- return role.user:itf_cancel_account(role, msg)
- end
- -- 实名认证 - 更新信息
- function root:user_identity_update_info(role, msg)
- return role.user:itf_identity(role, msg)
- end
- -- 明细 - 流水
- function root:user_item_detail_gold(role, msg)
- skynet.send(".srvItemRecord", "lua", "get_item_detail_gold", role.uid, msg.lastTime)
- return code.OK
- end
- -- 明细 - 饰品
- function root:user_item_detail_wapon(role, msg)
- skynet.send(".srvItemRecord", "lua", "get_item_detail_wapon", role.uid, msg.lastTime)
- return code.OK
- end
- return root
|