Commit 6afadf3d authored by shajiaiming's avatar shajiaiming

达标条件变更

parent dcec6e70
......@@ -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