|
@@ -297,6 +297,12 @@ namespace MySystem
|
|
|
ConsumerOrders order = db.ConsumerOrders.FirstOrDefault(m => m.Id == id);
|
|
|
if (order != null)
|
|
|
{
|
|
|
+ if(order.SettleAmount <= 0 && order.Status > 0 && order.IsAct == 1)
|
|
|
+ {
|
|
|
+ string text = function.GetWebRequest(Library.ConfigurationManager.AppSettings["SpHost"].ToString() + "/Api/PublicMethod/GetSettleOrderAmount?orderNo=" + order.SeoTitle + "&date=" + order.UpdateDate.Value.ToString("yyyy-M-d"));
|
|
|
+ order.SettleAmount = int.Parse(function.CheckInt(text));
|
|
|
+ db.SaveChanges();
|
|
|
+ }
|
|
|
MerchantInfo merchant = db.MerchantInfo.FirstOrDefault(m => m.Id == order.MerchantId) ?? new MerchantInfo();
|
|
|
MerchantParamSet set = Newtonsoft.Json.JsonConvert.DeserializeObject<MerchantParamSet>(order.SeoDescription);
|
|
|
if (order.IsAct == 1 && order.PayMoney >= set.MinPayMoney)
|