/// <summary> /// /// </summary> /// <param name="user"></param> public void Notify(BaseUser user) { int gameId = GameEnvironment.ProductCode; int serverId = GameEnvironment.ProductServerId; int userId = user.GetUserId(); string pid = user.GetPassportId(); OrderInfo[] orderList = PayManager.getPayment(gameId, serverId, pid); foreach (var orderInfo in orderList) { if (DoNotify(userId, orderInfo)) { PayManager.Abnormal(orderInfo.OrderNO); TraceLog.ReleaseWriteFatal("Payment order:{0},Pid:{1} notify success", orderInfo.OrderNO, pid); } else { TraceLog.ReleaseWriteFatal("Payment order:{0},Pid:{1} notify faild", orderInfo.OrderNO, pid); } } }
/// <summary> /// /// </summary> /// <param name="roleUser"></param> public SessionUser(BaseUser roleUser) : this() { PassportId = roleUser.GetPassportId(); UserId = roleUser.GetUserId(); }
/// <summary> /// /// </summary> /// <param name="roleUser"></param> public SessionUser(BaseUser roleUser) { OnlineInterval = new TimeSpan(0, 1, 0); PassportId = roleUser.GetPassportId(); UserId = roleUser.GetUserId(); }