Exemplo n.º 1
0
Arquivo: Token.cs Projeto: aj-hc/SZY
 private string Get_Auth_Token()
 {
     Dictionary<string, string> dic = new Dictionary<string, string>();
     dic.Add("username", UserName);
     dic.Add("password", PassWord);
     dic.Add("method", Fp_Common.FpMethod.gen_token.ToString());
     Fp_DAL.CallApi call = new CallApi(dic);
     string result = call.GetData();
     return result;
 }
Exemplo n.º 2
0
        /// <summary>
        /// 检查登陆
        /// </summary>
        /// <returns></returns>
        private string Get_Auth_Token()
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic.Add("username", UserName);
            dic.Add("password", PassWord);
            dic.Add("method", Fp_Common.FpMethod.gen_token.ToString());
            Fp_DAL.CallApi call   = new CallApi(dic);
            string         result = call.GetData();

            return(result);
        }