Commit b1fffd2c authored by shajiaiming's avatar shajiaiming

火币 涨跌

parent 71987a90
...@@ -110,8 +110,7 @@ class TickerController extends BaseController ...@@ -110,8 +110,7 @@ class TickerController extends BaseController
$temp['symbol'] = $val['symbol']; $temp['symbol'] = $val['symbol'];
$temp['close'] = (float)sprintf("%0.4f", $quotation['last']); $temp['close'] = (float)sprintf("%0.4f", $quotation['last']);
$temp['close_rmb'] = (float)sprintf("%0.4f", $quotation['last'] * $this->basic_price[$tag_second]); $temp['close_rmb'] = (float)sprintf("%0.4f", $quotation['last'] * $this->basic_price[$tag_second]);
//$temp['change'] = (float)sprintf("%0.4f", ($val['close'] - $val['open']) / $val['open'] * 100); $temp['change'] = (float)sprintf("%0.4f", ($quotation['last'] - $quotation['open']) / $quotation['open'] * 100);
$temp['change'] = 3.33;
$temp['high'] = (float)sprintf("%0.4f", $quotation['high']); $temp['high'] = (float)sprintf("%0.4f", $quotation['high']);
$temp['low'] = (float)sprintf("%0.4f", $quotation['low']); $temp['low'] = (float)sprintf("%0.4f", $quotation['low']);
$temp['platform'] = $val['platform']; $temp['platform'] = $val['platform'];
......
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