Exemplo n.º 1
0
 public static GuangdongResult saveTelOrgStuScore(GuangdongParams2 param)
 {
     var r = new GuangdongResult();
     try
     {
         param.userID = api_gd_uid;
         param.userPwd = api_gd_pwd;
         string url = api_gd_url;
         string data = "method=saveTelOrgStuScore&userID={0}&userPwd={1}&cardNumberType={2}&cardNumber={3}&areaName={4}&year={5}&classCode={6}&classLearnTimeCount={7}&score={8}&password={9}";
         data = string.Format(data, param.userID.Encrypt(), param.userPwd.Encrypt(),
             param.cardNumberType.Encrypt(),
             param.cardNumber.Encrypt(),
             param.areaName.Encrypt(),
             param.year.Encrypt(),
             param.classCode.Encrypt(),
             param.classLearnTimeCount.Encrypt(),
             param.score.Encrypt(),
             param.password.Encrypt());
         string s = http.Send(data, url);
         r.ResponseCode = s;
     }
     catch (Exception ex)
     {
         log.Warn(ex.Message);
     }
     return r;
 }
Exemplo n.º 2
0
 public static GuangdongResult compProve(GuangdongParams1 param)
 {
     var r = new GuangdongResult();
     try
     {
         param.userID = api_gd_uid;
         param.userPwd = api_gd_pwd;
         string url = api_gd_url;
         string data = "method=compProve&userID={0}&userPwd={1}&cardNumber={2}&compId={3}&compName={4}&areaName={5}";
         data = string.Format(data, param.userID.Encrypt(), param.userPwd.Encrypt(), param.cardNumber.Encrypt(), param.compId.Encrypt(), param.compName.Encrypt(), param.areaName.Encrypt());
         string s = http.Send(data, url);
         r.ResponseCode = s;
     }
     catch (Exception ex)
     {
         log.Warn(ex.Message);
     }
     return r;
 }