예제 #1
0
 private void Info(IUserToken token)
 {
     ExecutorPool.instance.Execute(
         () =>
     {
         PResult e = this._userBiz.GetByAccount(token, out User user);
         if (e != PResult.SUCCESS)
         {
             this.Reply(token, Module.USER, Command.QCMD_USER_INFOS, e);
         }
         else
         {
             token.CALL_USER_ACMD_USER_INFOS(DTOHelper.GetUserInfo(user));
         }
     });
 }
예제 #2
0
 private void Online(IUserToken token)
 {
     ExecutorPool.instance.Execute(
         () =>
     {
         PResult result = this._userBiz.Online(token);
         if (result != PResult.SUCCESS)
         {
             this.Reply(token, Module.USER, Command.QCMD_USER_ONLINE, result);
         }
         else
         {
             result = this._userBiz.GetByAccount(token, out User user);
             if (result != PResult.SUCCESS)
             {
                 this.Reply(token, Module.USER, Command.QCMD_USER_INFOS, result);
             }
             else
             {
                 token.CALL_USER_ACMD_USER_ONLINE(DTOHelper.GetUserInfo(user));
             }
         }
     });
 }