|
|
@@ -1254,7 +1254,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
string payment = entity.PayMoney.ToString(); |
|
|
|
string curcode = "01"; |
|
|
|
string txcode = "530550"; |
|
|
|
string remark1 = model.StuNo + "-20" + model.Grade; |
|
|
|
string remark1 = model.StuNo; |
|
|
|
string remark2 = entity.PayFeeDetail.Replace("&", "-"); |
|
|
|
string returntype = "3"; |
|
|
|
string timeout = DateTime.Now.AddMinutes(10).ToString("yyyyMMddHHmmss"); |
|
|
@@ -1276,12 +1276,19 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
} |
|
|
|
String url = bankURL + "&" + tmp1 + "&MAC=" + strMd5; |
|
|
|
string reJson = HttpMethods.Post(url); |
|
|
|
LogEntity logEntity=new LogEntity(); |
|
|
|
logEntity.F_CategoryId = 121; |
|
|
|
logEntity.F_ExecuteResultJson = reJson; |
|
|
|
logEntity.WriteLog(); |
|
|
|
//HttpConnect conn = new HttpConnect(); |
|
|
|
//string reJson = conn.Post(url, ""); |
|
|
|
JsonBean MemberInfoList = JsonConvert.DeserializeObject<JsonBean>(reJson); |
|
|
|
if (MemberInfoList.SUCCESS.Equals("true")) |
|
|
|
{ |
|
|
|
string imgCode = HttpMethods.Post(MemberInfoList.PAYURL); |
|
|
|
logEntity.F_CategoryId = 121; |
|
|
|
logEntity.F_ExecuteResultJson = imgCode; |
|
|
|
logEntity.WriteLog(); |
|
|
|
MemberInfoList = JsonConvert.DeserializeObject<JsonBean>(imgCode); |
|
|
|
if (MemberInfoList.SUCCESS.Equals("true")) |
|
|
|
{ |
|
|
@@ -1384,7 +1391,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
bt = qrCodeEncoder.Encode(enCodeString, Encoding.UTF8); |
|
|
|
//二维码图片的名称 |
|
|
|
string filename = orderId; |
|
|
|
|
|
|
|
if (!Directory.Exists(Server.MapPath("~/Content/images/QRCode/"))) |
|
|
|
{ |
|
|
|
Directory.CreateDirectory(Server.MapPath("~/Content/images/QRCode/")); |
|
|
|
} |
|
|
|
var path = Server.MapPath("~/Content/images/QRCode/") + filename + ".jpg"; |
|
|
|
//保存二维码图片在photos路径下 |
|
|
|
try |
|
|
|