|
|
@@ -100,6 +100,7 @@ func SettlementSignInGreenEnergy(engine *xorm.Engine, masterId string) (err erro |
|
|
|
if parentRewardValue <= rewardEndValue { |
|
|
|
break |
|
|
|
} |
|
|
|
parentRewardValue = parentRewardValue * rewardDecrement |
|
|
|
//TODO::判断是否活跃 |
|
|
|
var m model.OneCirclesGreenEnergySignIn |
|
|
|
has, err3333333 := engine.Where("uid =?", relate.ParentUid).And("start_time >=?", time.Now().Format("2006-01-02")+" 00:00:00").Get(&m) |
|
|
@@ -112,7 +113,6 @@ func SettlementSignInGreenEnergy(engine *xorm.Engine, masterId string) (err erro |
|
|
|
//不活跃不需要奖励 |
|
|
|
continue |
|
|
|
} |
|
|
|
parentRewardValue = parentRewardValue * rewardDecrement |
|
|
|
err = DealUserCoin(session, md.DealUserCoinReq{ |
|
|
|
Kind: "add", |
|
|
|
Mid: masterId, |
|
|
|