Commit 3921d6da authored by shajiaiming's avatar shajiaiming

Merge branch 'master' into develop

parents f33003b3 fb1dd95b
...@@ -115,7 +115,7 @@ class AirDropController extends BaseController ...@@ -115,7 +115,7 @@ class AirDropController extends BaseController
} }
$this->data = AirDropApplyRecord::find() $this->data = AirDropApplyRecord::find()
->where(['apply_id' => $model['id'], 'reach' => AirDropApplyRecord::REACH_YES, 'draw_status' => AirDropApplyRecord::STATUS_DRAW_SUEEESS]) ->where(['apply_id' => $model['id'], 'reach' => AirDropApplyRecord::REACH_YES])
->sum('amount'); ->sum('amount');
if (empty($this->data)) { if (empty($this->data)) {
$this->data = 0; $this->data = 0;
......
...@@ -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