|
|
@ -657,7 +657,6 @@ class IndexController extends ApiController |
|
|
|
|
|
|
|
|
public function getkkline(Request $request){ |
|
|
public function getkkline(Request $request){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($request['interval'] == 60){ |
|
|
if($request['interval'] == 60){ |
|
|
$where['is_1min'] =1; |
|
|
$where['is_1min'] =1; |
|
|
$msg = 1; |
|
|
$msg = 1; |
|
|
@ -682,6 +681,11 @@ class IndexController extends ApiController |
|
|
$where['is_day'] =1; |
|
|
$where['is_day'] =1; |
|
|
$msg = 60*24; |
|
|
$msg = 60*24; |
|
|
} |
|
|
} |
|
|
|
|
|
// add weeks |
|
|
|
|
|
if($request['interval'] == 604800){ |
|
|
|
|
|
$where['is_week'] =1; |
|
|
|
|
|
$msg = 7*60*24; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$symbols = config('coin.exchange_symbols'); |
|
|
$symbols = config('coin.exchange_symbols'); |
|
|
@ -695,8 +699,6 @@ class IndexController extends ApiController |
|
|
$symbol = $coins[$request['symbol']]['model']; |
|
|
$symbol = $coins[$request['symbol']]['model']; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// dd($symbol); |
|
|
// dd($symbol); |
|
|
// return $symbol; |
|
|
// return $symbol; |
|
|
|
|
|
|
|
|
|