Exemplo n.º 1
0
        //****由遊戲帳號找出gash帳號****   by  joda
        public static string GetMainAccountID(string strGame_ID, string Str_ServiceCode, string Str_Region)
        {
            string strgash = "";
            ServiceAccount ws = new ServiceAccount();

            try
            {
                //strgash = Str_ServiceCode + ";" + Str_Region + ";" + strGame_ID;
                strgash = ws.ServiceAccount_GetMainAccountID(Str_ServiceCode, Str_Region, strGame_ID);
                if (strgash.Split(";".ToCharArray())[0] != "1")
                {
                    strgash = "0";
                }
                else
                {
                    strgash = strgash.Split(";".ToCharArray())[1].ToString();
                }
            }
            catch (Exception ex)
            {
                strgash = "-1";
            }

            ws.Dispose();
            return strgash;
        }