Commit f45601a2 authored by rlgy's avatar rlgy

BTY行情

parent 08796a95
......@@ -55,6 +55,7 @@ class CoinBusiness
//获取行情信息
if (strtoupper($value['name']) == 'BTY') {
$rows['data'][$key]['quotation'] = CoinService::quotationBTY();
continue;
}
$rows['data'][$key]['quotation'] = CoinService::quotation($value['sid']);
}
......
......@@ -155,7 +155,7 @@ class CoinService
'circulate_count' => '',//流通总量
];
$ch = curl_init('https://api2.mytoken.org/currency/currencydetail?com_id=bty_CNY&market_id=1303&market_name=cmc&symbol=BTY&anchor=CNY&timestamp=1528772807124&code=5384ef255744748f1a469b6514dad6ed&v=1.4.0&platform=m&language=zh_CN&');
$ch = curl_init('https://api2.mytoken.org/currency/currencydetail?com_id=bty_CNY&market_id=1303&market_name=cmc&symbol=BTY&anchor=CNY&timestamp=1528775656509&code=c368f591b57e93011cb9c853555a9126&v=1.4.0&platform=m&language=zh_CN&');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$content = curl_exec($ch);
......
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