Commit d140997b authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/airdrop' into develop

parents ff7d4594 f6ba2756
...@@ -189,7 +189,13 @@ class AirDropController extends BaseController ...@@ -189,7 +189,13 @@ class AirDropController extends BaseController
} }
$redis = Yii::$app->redis_app; $redis = Yii::$app->redis_app;
list($reach, $reached_times, $draw_success, $income, $un_draw) = $redis->hmget('airdrop:' . $identifier, 'reach', 'reached_times', 'draw_success', 'income', 'un_draw'); list($reached_times, $draw_success, $income, $un_draw) = $redis->hmget('airdrop:' . $identifier, 'reached_times', 'draw_success', 'income', 'un_draw');
$exist = AirDropRulePool::find()->where(['identifier' => $identifier])->one();
if (false == $exist) {
$reach = 0;
} else {
$reach = $exist->rule->duration;
}
$this->data = [ $this->data = [
'reach' => empty($reach) ? 0 : (int)$reach, 'reach' => empty($reach) ? 0 : (int)$reach,
'reached_times' => empty($reached_times) ? 0 : (int)$reached_times, 'reached_times' => empty($reached_times) ? 0 : (int)$reached_times,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment