|
@@ -100,6 +100,7 @@ func SettlementSignInGreenEnergy(engine *xorm.Engine, masterId string) (err erro |
|
|
if parentRewardValue <= rewardEndValue { |
|
|
if parentRewardValue <= rewardEndValue { |
|
|
break |
|
|
break |
|
|
} |
|
|
} |
|
|
|
|
|
parentRewardValue = parentRewardValue * rewardDecrement |
|
|
//TODO::判断是否活跃 |
|
|
//TODO::判断是否活跃 |
|
|
var m model.OneCirclesGreenEnergySignIn |
|
|
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) |
|
|
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 |
|
|
continue |
|
|
} |
|
|
} |
|
|
parentRewardValue = parentRewardValue * rewardDecrement |
|
|
|
|
|
err = DealUserCoin(session, md.DealUserCoinReq{ |
|
|
err = DealUserCoin(session, md.DealUserCoinReq{ |
|
|
Kind: "add", |
|
|
Kind: "add", |
|
|
Mid: masterId, |
|
|
Mid: masterId, |
|
|