예제 #1
0
 public static NbManagerEntity[] IsRegistByNameList(string platformCode, string platformZoneCode, string data)
 {
     try
     {
         NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, platformZoneCode);
         return(ws.IsRegistByNameList(data));
     }
     catch (Exception)
     {
         return(null);
     }
 }
예제 #2
0
        public static NbManagerEntity IsRegist(string platformCode, string platformZoneCode, String openId)
        {
            try
            {
                NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, platformZoneCode);

                return(ws.IsRegist(openId, platformZoneCode));
            }
            catch (Exception)
            {
                return(null);
            }
        }
예제 #3
0
 public static bool CheckLockStateNDate(string platformZoneCode, string platformCode, Guid managerId)
 {
     try
     {
         NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, platformZoneCode);
         return(ws.CheckLockStateNDate(managerId));
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
         return(false);
     }
 }
예제 #4
0
 public static bool BreakLock(string platformZoneCode, string platformCode, Guid managerId, string GMName, string memo, string zoneId)
 {
     try
     {
         NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, platformZoneCode);
         return(ws.BreakLock(managerId, GMName, memo, zoneId));
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
         return(false);
     }
 }
예제 #5
0
 public static int GetOnlineCount(string platformZoneCode, string platformCode)
 {
     try
     {
         NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, platformZoneCode);
         return(ws.GetOnlineCount());
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
         return(-1);
     }
 }
예제 #6
0
 public static bool LockUserUnexpect(string platformZoneCode, string platformCode, Guid managerId, string adminName, string memo)
 {
     try
     {
         NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, platformZoneCode);
         return(ws.LockUserUnexpect(managerId, adminName, memo));
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
         return(false);
     }
 }
예제 #7
0
 public static NbManagerEntity[] GetManagerList(string account, string platformZoneCode, string platformCode)
 {
     try
     {
         NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, platformZoneCode);
         return(ws.GetManagerList(account));
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
         return(null);
     }
 }
예제 #8
0
 public static int CheckActive(string platformCode, string platformZoneCode, string account)
 {
     try
     {
         NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, platformZoneCode);
         return(ws.CheckActive(account));
     }
     catch (Exception e)
     {
         LogHelper.Insert(e);
         return(-1);
     }
 }
예제 #9
0
 public static int BuyPointShipments(string platformCode, string platformZoneCode, string managerId, string orderId, string billingId, decimal cash, int mallCode)
 {
     try
     {
         NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, platformZoneCode);
         //return -1;
         return(ws.BuyPointShipments(managerId, orderId, billingId, cash, mallCode));
     }
     catch (Exception e)
     {
         LogHelper.Insert(e);
         return(-1);
     }
 }
예제 #10
0
        //存a8回话id
        public static string GetSessionId(string platformCode, string platformZoneCode, string openId)
        {
            try
            {
                NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, platformZoneCode);
                return(ws.GetSessionId(openId));
            }
            catch (Exception)
            {
                return("");

                throw;
            }
        }
예제 #11
0
 public static int TxTaskStep(string account, int activityId, int activityStep, string cmd,
                              string billno, string platformZoneCode, string platformCode)
 {
     try
     {
         NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, platformZoneCode);
         return(ws.TxTaskStep(account, activityId, activityStep, cmd, billno));
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
         return(-1);
     }
 }
예제 #12
0
 public static int TxBuyItem(string openId, string payItem, string token, string billno,
                             string version, string zoneId, string amt, string payamt_coins
                             , string pubacct_payamt_coins, int exchangeRate, string platformCode)
 {
     try
     {
         NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, zoneId);
         return(ws.TxBuyItem(openId, payItem, token, billno
                             , version, zoneId, amt, payamt_coins, pubacct_payamt_coins, exchangeRate));
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
         return(-1);
     }
 }
예제 #13
0
 public static int SendItemByShare(string platformCode, string serverId, string name, int type)
 {
     NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, serverId);
     return(ws.SendItemByShare(name, type));
 }
예제 #14
0
 /// <summary>
 /// 获得渠道玩家数据
 /// </summary>
 /// <param name="openId"></param>
 /// <returns></returns>
 public static Games.NBall.WebServerFacade.NwWebService.A8csdkStartgameEntity GetStartgameEntity(string openId, string platformCode, string serverId = "1")
 {
     NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, serverId);
     return(ws.GetStartgameEntity(openId));
 }
예제 #15
0
 /// <summary>
 /// 储存渠道玩家数据
 /// </summary>
 /// <param name="openId"></param>
 /// <param name="state"></param>
 /// <param name="serverId"></param>
 /// <param name="pf"></param>
 /// <param name="sessionId"></param>
 /// <param name="jsNeed"></param>
 /// <param name="nickName"></param>
 /// <returns></returns>
 public static bool SetStartGameEntity(string platformCode, string platformZoneCode, string openId, string state, string serverId, string pf, string sessionId, string jsNeed, string nickName = "", string common = "")
 {
     NwWebService.NwWebService ws = WebServiceFactory.GetWebServicePlatform(platformCode, platformZoneCode);
     return(ws.SetStartGameEntity(openId, state, serverId, pf, sessionId, jsNeed, nickName, common));
 }