Commit a8895f6d authored by shajiaiming's avatar shajiaiming

fix

parent e1bd5504
...@@ -67,7 +67,8 @@ class TickerController extends BaseController ...@@ -67,7 +67,8 @@ class TickerController extends BaseController
$res = $curl->post('https://b.biqianbao.net/interface/coin/coin-index', true); $res = $curl->post('https://b.biqianbao.net/interface/coin/coin-index', true);
$res = json_decode($res, true); $res = json_decode($res, true);
foreach ($res['data'] as $val) { foreach ($res['data'] as $val) {
$this->basic_price[$val['name']] = $val['rmb']; $this->basic_price[$val['name']]['rmb'] = $val['rmb'];
$this->basic_price[$val['name']]['usd'] = $val['usd'];
} }
$code = -1; $code = -1;
......
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