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
->one();
}
} else {
$data = Coin::find()->select('id,sid,icon,name,optional_name,nickname,introduce,platform,chain,address as contract_address,treaty')
->where(['in', 'name', $condition])
->asArray()->all();
foreach ($condition as $val) {
$data[] = Coin::find()->select('id,sid,icon,name,optional_name,nickname,introduce,platform,chain,address as contract_address,treaty')
->where(['name' => $val])
->asArray()->one();
}
}
$rows = [
'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