|
@@ -167,15 +167,15 @@ namespace MySystem
|
|
|
function.WriteLog("CheckTime:" + CheckTime, "返现逻辑日志");
|
|
|
if(CheckTime > 0)
|
|
|
{
|
|
|
- if(subset.DiviPersons - DiviTimes < CheckTime)
|
|
|
+ if(set.DiviPersons - DiviTimes < CheckTime)
|
|
|
{
|
|
|
- CheckTime = subset.DiviPersons - DiviTimes;
|
|
|
+ CheckTime = set.DiviPersons - DiviTimes;
|
|
|
}
|
|
|
function.WriteLog("CheckTime:" + CheckTime, "返现逻辑日志");
|
|
|
GetMoney = GetMoney * CheckTime;
|
|
|
db.SaveChanges();
|
|
|
function.WriteLog("CurDiviPersons1:" + CurDiviPersons, "返现逻辑日志");
|
|
|
- if(RedisDbconn.Instance.Count("ConsumerOrdersHd:Divi:" + PayMode + ":" + MerchantId) >= subset.DiviPersons)
|
|
|
+ if(RedisDbconn.Instance.Count("ConsumerOrdersHd:Divi:" + PayMode + ":" + MerchantId) >= set.DiviPersons)
|
|
|
{
|
|
|
CurDiviPersons -= CheckTime - 1;
|
|
|
}
|
|
@@ -191,7 +191,7 @@ namespace MySystem
|
|
|
|
|
|
decimal RefundAmount = GetMoney * 100;
|
|
|
RefundAmount = PublicFunction.NumberFormat(RefundAmount, 0);
|
|
|
- if(!orderids.Contains(suborder.Id) && DiviTimes < subset.DiviPersons)
|
|
|
+ if(!orderids.Contains(suborder.Id) && DiviTimes < set.DiviPersons)
|
|
|
{
|
|
|
function.WriteLog("请求退款接口", "返现逻辑日志");
|
|
|
string RefundNo = "HDTK" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8);
|