Commit ca555f71 authored by shajiaiming's avatar shajiaiming

fix

parent 9d5359fc
......@@ -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