RealNameProxy.lua 835 B

12345678910111213141516171819202122232425262728
  1. local RemoteProxy = requireProxy("remote/RemoteProxy")
  2. local RealNameProxy = class("RealNameProxy", RemoteProxy)
  3. RealNameProxy.NAME = global.ProxyTable.RealNameProxy
  4. function RealNameProxy:ctor()
  5. RealNameProxy.super.ctor(self)
  6. end
  7. function RealNameProxy:onRegister()
  8. RealNameProxy.super.onRegister(self)
  9. end
  10. function RealNameProxy:handle_MSG_SM_BINDHUMMSG(msg)
  11. global.L_NativeBridgeManager:GN_requestRealName()
  12. end
  13. function RealNameProxy:RequestRealNameRes(cr)
  14. LuaSendMsg(global.MsgType.MSG_CM_BINDHUMMSG, 1, cr, 0, 0)
  15. end
  16. function RealNameProxy:RegisterMsgHandler()
  17. RealNameProxy.super.RegisterMsgHandler(self)
  18. local msgType = global.MsgType
  19. LuaRegisterMsgHandler(msgType.MSG_SM_BINDHUMMSG, handler(self, self.handle_MSG_SM_BINDHUMMSG))--弹实名
  20. end
  21. return RealNameProxy