|
@@ -85,6 +85,16 @@ func SettlementPublicGiveActivityCoin(engine *xorm.Engine, masterId string, uid |
|
|
|
|
|
|
|
|
fatherUid := zhios_order_relate_utils.IntToStr(tmpOneCirclesPublicPlatoonUserRelation.Uid) |
|
|
fatherUid := zhios_order_relate_utils.IntToStr(tmpOneCirclesPublicPlatoonUserRelation.Uid) |
|
|
fatherReward := rewardSystemMap[k+1] |
|
|
fatherReward := rewardSystemMap[k+1] |
|
|
|
|
|
//判断是否活跃 |
|
|
|
|
|
var m model.OneCirclesGreenEnergySignIn |
|
|
|
|
|
has, err33 := engine.Where("uid =?", fatherUid).And("start_time >=?", time.Now().Format("2006-01-02")+"00:00:00").Get(&m) |
|
|
|
|
|
if err33 != nil { |
|
|
|
|
|
return err33 |
|
|
|
|
|
} |
|
|
|
|
|
if !has { |
|
|
|
|
|
//不活跃不需要奖励 |
|
|
|
|
|
continue |
|
|
|
|
|
} |
|
|
//判断是否满足奖励条件 |
|
|
//判断是否满足奖励条件 |
|
|
userCount, _, err2 := db.SumUserRelateByParentUid(engine, fatherUid) |
|
|
userCount, _, err2 := db.SumUserRelateByParentUid(engine, fatherUid) |
|
|
if err2 != nil { |
|
|
if err2 != nil { |
|
|