|
@@ -158,7 +158,7 @@ namespace DigitalSchoolApi.Controllers |
|
|
using (IDbConnection conn = new SqlConnection(_sqlConnection)) |
|
|
using (IDbConnection conn = new SqlConnection(_sqlConnection)) |
|
|
{ |
|
|
{ |
|
|
List<FinaChargeStuOrderEntity> stuorderlist = null; |
|
|
List<FinaChargeStuOrderEntity> stuorderlist = null; |
|
|
stuorderlist = conn.Query<FinaChargeStuOrderEntity>(@"select StuNo,YearNo,FSYId,'ExcelOffLine' as PayMode from FinaChargeStuOrder where Status=1 and fsyid='"+ FSYID + @"' |
|
|
|
|
|
|
|
|
stuorderlist = conn.Query<FinaChargeStuOrderEntity>(@"select StuNo,YearNo,FSYId,'ExcelOffLine' as PayMode from FinaChargeStuOrder where Status=1 and fsyid='" + FSYID + @"' |
|
|
group by StuNo, YearNo, FSYId, PayMode").ToList(); |
|
|
group by StuNo, YearNo, FSYId, PayMode").ToList(); |
|
|
foreach (var stuorderEntity in stuorderlist) |
|
|
foreach (var stuorderEntity in stuorderlist) |
|
|
{ |
|
|
{ |
|
@@ -204,7 +204,19 @@ namespace DigitalSchoolApi.Controllers |
|
|
byte[] payload = encoding.GetBytes(par); |
|
|
byte[] payload = encoding.GetBytes(par); |
|
|
HttpClient httpClient = new HttpClient(); |
|
|
HttpClient httpClient = new HttpClient(); |
|
|
HttpContent content = new ByteArrayContent(payload); |
|
|
HttpContent content = new ByteArrayContent(payload); |
|
|
string reStr = httpClient.PostAsync(payresulturl, content).Result.Content.ReadAsStringAsync().Result; |
|
|
|
|
|
|
|
|
string reStr = string.Empty; |
|
|
|
|
|
try |
|
|
|
|
|
{ |
|
|
|
|
|
reStr = httpClient.PostAsync(payresulturl, content).Result.Content.ReadAsStringAsync().Result; |
|
|
|
|
|
} |
|
|
|
|
|
catch (Exception e) |
|
|
|
|
|
{ |
|
|
|
|
|
using (IDbConnection conncore = new SqlConnection(_coresqlConnection)) |
|
|
|
|
|
{ |
|
|
|
|
|
conncore.Execute( |
|
|
|
|
|
"insert into LR_Base_Log(F_LogId,F_CategoryId,F_SourceObjectId,F_SourceContentJson,F_OperateTime) values(newid(),121,'ccb','对接支付结果地址接口失败:" + reStr + ":" + e.Message + ":" + e.StackTrace + "',getdate())"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
xml.LoadXml(reStr); |
|
|
xml.LoadXml(reStr); |
|
|
string s = ((XmlElement)xml.SelectSingleNode("TX/RETURN_CODE")).InnerText; |
|
|
string s = ((XmlElement)xml.SelectSingleNode("TX/RETURN_CODE")).InnerText; |
|
|
//string s = "000000"; |
|
|
//string s = "000000"; |
|
|