Commit 1ad2d8a6 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

fix See merge request !444
parents 9d5359fc ca555f71
...@@ -534,9 +534,11 @@ class ExchangeBusiness ...@@ -534,9 +534,11 @@ class ExchangeBusiness
->one(); ->one();
} }
} else { } else {
$data = Coin::find()->select('id,sid,icon,name,optional_name,nickname,introduce,platform,chain,address as contract_address,treaty') foreach ($condition as $val) {
->where(['in', 'name', $condition]) $data[] = Coin::find()->select('id,sid,icon,name,optional_name,nickname,introduce,platform,chain,address as contract_address,treaty')
->asArray()->all(); ->where(['name' => $val])
->asArray()->one();
}
} }
$rows = [ $rows = [
'count' => count($data), 'count' => count($data),
......
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