Commit 29d0b61b authored by 吴春's avatar 吴春

提交代码

parent 8f501999
......@@ -711,6 +711,7 @@ namespace Mall.Module.Education
var financeConfig = finance_ConfigRepository.GetList(new Model.Entity.Education.RB_Finance_Config { Id = Convert.ToInt32(Config.EduActivityIncomeFinanceId), Type = FinanceConfigTypeEnum.ActivityIncome }).FirstOrDefault();
if (financeConfig == null)
{
LogHelper.WriteInfo("活动财务配置不存在");
financeConfig = new Model.Entity.Education.RB_Finance_Config();
}
......@@ -766,8 +767,11 @@ namespace Mall.Module.Education
{
msg = sign,
};
LogHelper.WriteInfo("活动收入财务单据生成数据:"+ JsonHelper.Serialize(resultInfo));
string apiResult = Common.Plugin.HttpHelper.HttpPost(Config.ReadConfigKey("IncomeFinanceApi"), JsonHelper.Serialize(resultInfo), "");
Newtonsoft.Json.Linq.JObject parmsJob = Newtonsoft.Json.Linq.JObject.Parse(apiResult);
LogHelper.WriteInfo("活动收入财务单据结果:" + JsonHelper.Serialize(parmsJob));
string resultCode = parmsJob.GetStringValue("resultCode");
int frid = parmsJob.GetInt("data", 0);
if (resultCode == "1" && frid > 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