|
|
@@ -20,7 +20,6 @@ import ( |
|
|
|
|
|
|
|
// SettlementSignInGreenEnergy 计算签到得到绿色能量 |
|
|
|
func SettlementSignInGreenEnergy(engine *xorm.Engine, masterId string, ch *rabbit.Channel) (err error) { |
|
|
|
defer ch.Release() |
|
|
|
//1、查找 `one_circles_green_energy_basic_setting` 基础设置 |
|
|
|
oneCirclesGreenEnergyBasicSetting, err := db.OneCirclesGreenEnergyBasicSettingGetOneByParams(engine, map[string]interface{}{ |
|
|
|
"key": "is_open", |
|
|
@@ -55,6 +54,7 @@ func SettlementSignInGreenEnergy(engine *xorm.Engine, masterId string, ch *rabbi |
|
|
|
Id: v.Id, |
|
|
|
}, md.OneCirclesRoutKeyForSignIn) |
|
|
|
} |
|
|
|
page++ |
|
|
|
time.Sleep(time.Millisecond * time.Duration(rand.Intn(1000))) |
|
|
|
} |
|
|
|
|
|
|
|