Commit 8503560a authored by 吴春's avatar 吴春

提交代码

parent bc10dd26
......@@ -151,14 +151,15 @@ namespace Edu.WebApi.Controllers.WeChatPay
ServiceFee = OriginalFee
};
var detailList = new
var detailList = new List<object>();
detailList.Add(new
{
CostTypeId = 533,
Number = 1,
OriginalMoney = Convert.ToDecimal((payModel.amount.payer_total / 100)),
UnitPrice = Convert.ToDecimal((payModel.amount.payer_total / 100)),
Remark = orderModle.StudentName + orderModle.CourseName + payModel.out_trade_no
};
});
var financeObj = new
{
......@@ -192,7 +193,7 @@ namespace Edu.WebApi.Controllers.WeChatPay
{
msg = sign,
};
string apiResult = Common.Plugin.HttpHelper.HttpPost(Config.ReadConfigKey("IncomeFinanceApi"), JsonHelper.Serialize(resultInfo), "");
string apiResult = Common.Plugin.HttpHelper.HttpPost(Config.ReadConfigKey("PaymentFinanceApi"), JsonHelper.Serialize(resultInfo), "");
JObject parmsJob = JObject.Parse(apiResult);
string resultCode = parmsJob.GetStringValue("resultCode");
int frid = parmsJob.GetInt("data", 0);
......@@ -393,14 +394,15 @@ namespace Edu.WebApi.Controllers.WeChatPay
ServiceFee = OriginalFee
};
var detailList = new
var detailList = new List<object>();
detailList.Add(new
{
CostTypeId = 533,
Number = 1,
OriginalMoney = Convert.ToDecimal((payModel.amount.payer_total / 100)),
UnitPrice = Convert.ToDecimal((payModel.amount.payer_total / 100)),
Remark = orderModle.StudentName + orderModle.CourseName + payModel.out_trade_no
};
});
var financeObj = new
{
......@@ -434,7 +436,7 @@ namespace Edu.WebApi.Controllers.WeChatPay
{
msg = sign,
};
string apiResult = Common.Plugin.HttpHelper.HttpPost(Config.ReadConfigKey("IncomeFinanceApi"), JsonHelper.Serialize(resultInfo), "");
string apiResult = Common.Plugin.HttpHelper.HttpPost(Config.ReadConfigKey("PaymentFinanceApi"), JsonHelper.Serialize(resultInfo), "");
JObject parmsJob = JObject.Parse(apiResult);
string resultCode = parmsJob.GetStringValue("resultCode");
int frid = parmsJob.GetInt("data", 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment