Commit 327de006 authored by shajiaiming's avatar shajiaiming

向上兼容

parent eb30121e
...@@ -511,7 +511,7 @@ class ExchangeBusiness ...@@ -511,7 +511,7 @@ class ExchangeBusiness
*/ */
public static function getApiListForIndex($page = 1, $limit = 999, $condition = [], $fields = []) public static function getApiListForIndex($page = 1, $limit = 999, $condition = [], $fields = [])
{ {
if (count($condition[0]) > 1) { if(is_array($condition[0]) && (count($condition[0]) > 1)) {
foreach ($condition as $val) { foreach ($condition as $val) {
if ('null' == $val[1] || 'coin' == $val[1]) { if ('null' == $val[1] || 'coin' == $val[1]) {
$data[] = Coin::find()->select('id,sid,icon,name,optional_name,nickname,introduce,platform,chain,address as contract_address,treaty') $data[] = Coin::find()->select('id,sid,icon,name,optional_name,nickname,introduce,platform,chain,address as contract_address,treaty')
......
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