Commit ca555f71 authored by shajiaiming's avatar shajiaiming

fix

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