Commit e6cb5e71 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/airdrop' into 'master'

达标条件变更 See merge request !330
parents a193013a 6afadf3d
......@@ -111,7 +111,8 @@ class AirDropController extends Controller
$result = $service->getBalance($apply->wallet_address, $execer);
if (0 != $result['code']) continue;
$balance = $result['result'][0]['balance'] ?? 0;
if ($balance == 0) continue;
$frozen = $result['result'][0]['frozen'] ?? 0;
if (($balance + $frozen) / 1e8 < 3000) continue;
$transaction = Yii::$app->db->beginTransaction();
try {
$apply->reach_init = AirDrop::REACH_INIT_YES;
......@@ -168,7 +169,8 @@ class AirDropController extends Controller
$result = $service->getBalance($val->apply->wallet_address, $execer);
if (0 == $result['code']) {
$balance = $result['result'][0]['balance'] ?? 0;
if ($balance > 0) {
$frozen = $result['result'][0]['frozen'] ?? 0;
if (($balance + $frozen) / 1e8 > 3000) {
$val->reach = AirDropApplyRecord::REACH_YES;
$val->save();
}
......
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