Commit 109fa616 authored by shajiaiming's avatar shajiaiming

增加筛选条件

parent 370b7322
...@@ -107,7 +107,7 @@ class AirDropController extends Controller ...@@ -107,7 +107,7 @@ class AirDropController extends Controller
foreach ($applies as $apply) { foreach ($applies as $apply) {
$exist = AirDropRulePool::find()->where(['identifier' => $apply->identifier])->one(); $exist = AirDropRulePool::find()->where(['identifier' => $apply->identifier])->one();
if (false == $exist) continue; if (false == $exist || false == $apply->wallet_address) continue;
$result = $service->getBalance($apply->wallet_address, $execer); $result = $service->getBalance($apply->wallet_address, $execer);
if (0 != $result['code']) continue; if (0 != $result['code']) continue;
$balance = $result['result'][0]['balance'] ?? 0; $balance = $result['result'][0]['balance'] ?? 0;
......
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