Code 发表于 2014-1-5 14:05:02

Code 发表于 2014-1-5 13:47
不做业务逻辑处理是正常的

还是报207了

Code 发表于 2014-1-5 14:08:48

admin 发表于 2014-1-5 13:48
全部更新到V4.9是否正常?如果不正常,请上传核心服务器,业务服务器的log信息,谢谢!

        AnyChat Server SDK Init,V4.9, Build Time:Jan1 2014 11:40:33
        Invoke        BRAS_InitSDK(0x0)
        Success connected to anychatcoreserver...
        OnUserLogoutActionExCallBack(UserId:-2, dwErrorCode:212)        Elapse:0ms
        VerifyUserCallBack(UserName:460012032782286,UserId:2)        ErrorCode:0        Elapse:0ms
        OnUserLoginActionCallBack(UserId:2,UserName:460012032782286)        Elapse:0ms
        Invoke        BRAS_TransBufferEx(ID:2-Len:1305)
        OnUserLogoutActionExCallBack(UserId:2, dwErrorCode:0)        Elapse:0ms
        Invoke        BRAS_TransBuffer(ID:2, buf=0x3c, buf=0xa, Len:173)
        VerifyUserCallBack(UserName:460012032782286,UserId:3)        ErrorCode:0        Elapse:0ms
        OnUserLoginActionCallBack(UserId:3,UserName:460012032782286)        Elapse:0ms
        Invoke        BRAS_TransBufferEx(ID:3-Len:1305)
        OnUserLogoutActionExCallBack(UserId:3, dwErrorCode:0)        Elapse:0ms
        Invoke        BRAS_TransBuffer(ID:3, buf=0x3c, buf=0xa, Len:173)
        VerifyUserCallBack(UserName:460012032782286,UserId:4)        ErrorCode:0        Elapse:0ms
        OnUserLoginActionCallBack(UserId:4,UserName:460012032782286)        Elapse:0ms
        Invoke        BRAS_TransBufferEx(ID:4-Len:1305)
        OnUserLogoutActionExCallBack(UserId:4, dwErrorCode:0)        Elapse:0ms
        Invoke        BRAS_TransBuffer(ID:4, buf=0x3c, buf=0xa, Len:173)
        VerifyUserCallBack(UserName:460012032782286,UserId:5)        ErrorCode:0        Elapse:0ms
        OnUserLoginActionCallBack(UserId:5,UserName:460012032782286)        Elapse:0ms
        Invoke        BRAS_TransBufferEx(ID:5-Len:1305)
        OnUserLogoutActionExCallBack(UserId:5, dwErrorCode:0)        Elapse:0ms
        Invoke        BRAS_TransBuffer(ID:5, buf=0x3c, buf=0xa, Len:173)
        VerifyUserCallBack(UserName:460012032782286,UserId:6)        ErrorCode:0        Elapse:0ms
        OnUserLoginActionCallBack(UserId:6,UserName:460012032782286)        Elapse:0ms
        Invoke        BRAS_TransBufferEx(ID:6-Len:1305)
        OnUserLogoutActionExCallBack(UserId:6, dwErrorCode:0)        Elapse:0ms
        Invoke        BRAS_TransBuffer(ID:6, buf=0x3c, buf=0xa, Len:173)
        VerifyUserCallBack(UserName:460012032782286,UserId:7)        ErrorCode:0        Elapse:0ms
        OnUserLoginActionCallBack(UserId:7,UserName:460012032782286)        Elapse:0ms
        Invoke        BRAS_TransBufferEx(ID:7-Len:1305)
        OnUserLogoutActionExCallBack(UserId:7, dwErrorCode:0)        Elapse:0ms
        Invoke        BRAS_TransBuffer(ID:7, buf=0x3c, buf=0xa, Len:173)
        VerifyUserCallBack(UserName:460012032782286,UserId:8)        ErrorCode:0        Elapse:0ms
        OnUserLoginActionCallBack(UserId:8,UserName:460012032782286)        Elapse:0ms
        Invoke        BRAS_TransBufferEx(ID:8-Len:1305)
        OnUserLogoutActionExCallBack(UserId:8, dwErrorCode:0)        Elapse:0ms
        Invoke        BRAS_TransBuffer(ID:8, buf=0x3c, buf=0xa, Len:173)

这是核心的日志

Code 发表于 2014-1-5 14:11:33

admin 发表于 2014-1-5 13:48
全部更新到V4.9是否正常?如果不正常,请上传核心服务器,业务服务器的log信息,谢谢!

        ---------------------Init Service--------------------------
        Current File Version,Build time:2014-01-01 11:41:52
        Start Server At Demo Mode!
        Load brservernetlayer.dll success!(V4.9, Build time:Jan1 2014 11:41:21)
        Start TCP Server Successed(port=8906)!
        Start UDP Server Successed(port=8907)!
        AnyChat IPC Filter Plus Init, Build Time:Jan1 2014 11:41:32
        Load SDK Filter Plus:IPCFilterPlus.dll Success, ver:SDK Filter Plus (IPC), for Windows V4.9
        Successful communication with the RecordServer!(127.0.0.1:2470, id:-1)
        Successful communicate with the business server!

贴错了 这个是核心服务的日志

admin 发表于 2014-1-5 14:15:49

您好,您可以在业务服务器里面加一些自己的日志,排除一下问题!

从上面的log来看,SDK已经是最新的版本了,很可能是您的代码存在某些问题!

Code 发表于 2014-1-5 14:17:15

admin 发表于 2014-1-5 13:48
全部更新到V4.9是否正常?如果不正常,请上传核心服务器,业务服务器的log信息,谢谢!

//用户身份验证回调函数定义根据函数返回值决定是否验证身份成功,当返回0时,必须分配一个唯一的userid
      private static int OnVerifyUserCallBack_main(string userName, string password, ref int userID, ref int userLevel, IntPtr nickName, int len, int userValue)
      {
            try
            {
                userID = QCDocument.Instance.UserID;

                if (password.ToUpper() == "AMB")
                {
                  userLevel = ConstPM.UserLevel_Android;
                }
                else if (password.ToUpper() == "WEB")
                {
                  userLevel = ConstPM.UserLevel_Web;
                }
                else
                {
                  return ConstPM.GV_ERR_CERTIFY_FAIL;
                }

                byte[] toBytes = Encoding.Convert(Encoding.UTF8, Encoding.GetEncoding("gb2312"), Encoding.UTF8.GetBytes(userName));
                Marshal.Copy(toBytes, 0, nickName, toBytes.Length);

            }
            catch (Exception ex)
            {
                QCDocument.Instance.AddToWinQue(new TWinMsg("OnVerifyUserCallBack_main", "严重异常:" + ex.Message));
            }
            return 0;
      }

这是验证时的代码

Code 发表于 2014-1-5 14:18:39

admin 发表于 2014-1-5 13:38
两点建议:
1,更新核心服务器,业务服务器到最新的V4.9版本,看问题是否能解决!
2,用我们标准的业务服 ...

private void OnUserLoginAction_CallBack_main(int userId, string userName, int level, string addr, int userValue)
      {
            try
            {
                QCDocument.Instance.AddToWinQue(new TWinMsg(Module_Name, "用户登录成功:OnUserLoginAction(" + "userId:" + userId.ToString() + ",userName:" + userName.ToString()
                     + ",level:" + level.ToString() + ",addr:" + addr + ",userValue:" + userValue.ToString() + ")"));

                //说明:此处的userName是身份验证过程赋予的值 安卓为IMSI,WEB为SimNO,苹果未扩展

                string msg = string.Format("{0},{1}", userId, userName);
                switch (level)
                {
                  case ConstPM.UserLevel_Android:
                        {
                            ExeAndroidLogin exe = new ExeAndroidLogin();
                            //exe.Run(msg);
                            ThreadPool.QueueUserWorkItem(new WaitCallback(exe.Run), msg);
                            break;
                        }
                  case ConstPM.UserLevel_Web:
                        {
                            ExeWebLogin exe = new ExeWebLogin();
                            //exe.Run(msg);
                            ThreadPool.QueueUserWorkItem(new WaitCallback(exe.Run), msg);
                            break;
                        }
                }
            }
            catch(Exception ex)
            {
                QCDocument.Instance.AddToWinQue(new TWinMsg("OnUserLoginAction_CallBack_main", "严重异常:" + ex.Message));
            }
      }

这是登陆后推送消息的代码   能解决吗   比较急

admin 发表于 2014-1-5 14:20:10

您好,在您的代码中,UserID怎么是一个固定值,没有和用户名,密码关联?

Code 发表于 2014-1-5 14:21:53

admin 发表于 2014-1-5 14:15
您好,您可以在业务服务器里面加一些自己的日志,排除一下问题!

从上面的log来看,SDK已经是最新的版本 ...

我已经都捕获异常了就算是出错   应该不上报到你们的回调函数

Code 发表于 2014-1-5 14:22:47

admin 发表于 2014-1-5 14:20
您好,在您的代码中,UserID怎么是一个固定值,没有和用户名,密码关联?

以1开始递增   和用户名关联

Code 发表于 2014-1-5 14:24:08

admin 发表于 2014-1-5 14:20
您好,在您的代码中,UserID怎么是一个固定值,没有和用户名,密码关联?

可以和您qq聊吗
页: 1 [2] 3 4
查看完整版本: 有关207错误代码