Commit 61073582 authored by shajiaiming's avatar shajiaiming

add new column

parent 40b21180
......@@ -49,7 +49,7 @@ class WalletCoinController extends BaseController
foreach ($condition as $val) {
if (is_array($val)) {
$model = WalletCoin::find()->select('id,icon,name,nickname,introduce,platform,chain,address as contract_address,treaty')
$model = WalletCoin::find()->select('id,icon,name,nickname,optional_name,introduce,platform,chain,address as contract_address,treaty')
->where(['name' => $val[0], 'platform' => $val[1]])
->andWhere(['>', "find_in_set($platform_id, platform_id)", 0])
->asArray()
......@@ -57,7 +57,7 @@ class WalletCoinController extends BaseController
}
if (is_string($val)) {
$model = WalletCoin::find()->select('id,icon,name,nickname,introduce,platform,chain,address as contract_address,treaty')
$model = WalletCoin::find()->select('id,icon,name,nickname,optional_name,introduce,platform,chain,address as contract_address,treaty')
->where(['name' => $val])
->andWhere(['>', "find_in_set($platform_id, platform_id)", 0])
->asArray()
......
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