Commit d4d4a32f authored by rlgy's avatar rlgy

行情返回信息修改

parent f67503c4
......@@ -58,7 +58,7 @@ class CoinService
* 爬取币种的实时行情,默认eos
*
* @param string $sid
* @return bool|array
* @return object|string
*/
public static function quotation($sid = 'eos')
{
......@@ -129,7 +129,7 @@ class CoinService
Yii::$app->cache->set($key, $result, 60);//set cache
return $result;
} catch (\Exception $exception) {
return false;
return new \stdClass();
}
}
return $result;
......
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