Selaa lähdekoodia

更新

master
huangjiajun 5 kuukautta sitten
vanhempi
commit
12afac9595
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. +5
    -5
      rule/consume_integral_settlement.go

+ 5
- 5
rule/consume_integral_settlement.go Näytä tiedosto

@@ -139,14 +139,14 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask

if hasConsumeTotal > 0 {
for _, v := range subsidyWithUserForConsumeList {
if v.LeaveDay > 0 && userStatusList[v.Uid]["status"] != "1" {
if v.LeaveDay > 0 && userStatusList[v.Uid]["status"] == "1" {
consumeTotalMap[v.Uid] = consumeTotalMap[v.Uid].Add(decimal.NewFromFloat(consumeValue))
consumeTotalCountMap[v.Uid]++
totalMap[v.Uid] = totalMap[v.Uid].Add(decimal.NewFromFloat(consumeValue))
consumeValueTotal = consumeValueTotal.Add(decimal.NewFromFloat(consumeValue))
}
var err1 error
if userStatusList[v.Uid]["status"] != "1" {
if userStatusList[v.Uid]["status"] == "1" {
err1 = DealUserConsumeIntegral(session, &v, consumeValue, mid)
} else {
err1 = DealUserConsumeIntegralStop(session, &v, consumeValue, mid, storeStatusList[v.Uid]["date"])
@@ -178,14 +178,14 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask
return err, totalMap, storeTotalMap
}
for _, v := range subsidyWithUserForExperienceList {
if v.LeaveDay > 0 && userStatusList[v.Uid]["status"] != "1" {
if v.LeaveDay > 0 && userStatusList[v.Uid]["status"] == "1" {
experienceTotalCountMap[v.Uid]++
totalMap[v.Uid] = totalMap[v.Uid].Add(decimal.NewFromFloat(experienceValue))
experienceTotalMap[v.Uid] = experienceTotalMap[v.Uid].Add(decimal.NewFromFloat(experienceValue))
experienceValueTotal = experienceValueTotal.Add(decimal.NewFromFloat(experienceValue))
}
var err1 error
if userStatusList[v.Uid]["status"] != "1" {
if userStatusList[v.Uid]["status"] == "1" {
err1 = DealUserExperienceIntegral(session, &v, experienceValue, mid)
} else {
err1 = DealUserExperienceIntegralStop(session, &v, experienceValue, mid, userStatusList[v.Uid]["date"])
@@ -215,7 +215,7 @@ func DailySettlementBlockConsumeIntegral(engine *xorm.Engine, mid string, isTask
num := zhios_order_relate_utils.StrToFloat64(v.IntegralNum) / zhios_order_relate_utils.StrToFloat64(subsidyBase.ConsumptionIntegral)
storeValue := zhios_order_relate_utils.FloatFormat(consumeValue*num, 2)
var err1 error
if storeStatusList[v.Uid]["status"] != "1" {
if storeStatusList[v.Uid]["status"] == "1" {
storeTotalCountMap[v.Uid] += int(num)
storeTotalMap[v.Uid] = storeTotalMap[v.Uid].Add(decimal.NewFromFloat(storeValue))
storeValueTotal = storeValueTotal.Add(decimal.NewFromFloat(storeValue))


Ladataan…
Peruuta
Tallenna