Commit 953b4215 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

向上兼容 See merge request !501
parents 166de7bb 327de006
......@@ -511,7 +511,7 @@ class ExchangeBusiness
*/
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) {
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')
......
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