Browse Source

注释打印

master
wanghongjun 3 years ago
parent
commit
2254db70a9
  1. 2
      app/Console/Commands/CheckAnomaly.php
  2. 2
      app/Workerman/Swap/Events.php
  3. 2
      public/exchange/market.php
  4. 2
      public/swap/swap_depth.php
  5. 4
      public/swap/swap_getoldkline.php
  6. 2
      public/swap/swap_kline_15min.php
  7. 2
      public/swap/swap_kline_1day.php
  8. 6
      public/swap/swap_kline_1min.php
  9. 2
      public/swap/swap_kline_5min.php
  10. 6
      public/swap/swap_kline_repair.php

2
app/Console/Commands/CheckAnomaly.php

@ -45,7 +45,7 @@ class CheckAnomaly extends Command
{
$items = SustainableAccount::query()->cursor();
foreach ($items as $item) {
dump($item['user_id']);
#dump($item['user_id']);
// 合约转入
$contract_in = UserWalletLog::query()
->where('user_id', $item['user_id'])

2
app/Workerman/Swap/Events.php

@ -196,7 +196,7 @@ class Events
if ($new_cache['low'] > $low['Low']) {
$new_cache['low'] = $low['Low'];
}
var_dump($new_cache);
#var_dump($new_cache);
Cache::store('redis')->put('swap:' . $coin1_symbol . '_detail', $new_cache);
if (!blank($cache_data2)) {
Cache::store('redis')->put('swap:trade_detail_' . $coin1_symbol, $cache_data);

2
public/exchange/market.php

@ -46,7 +46,7 @@ $worker->onWorkerStart = function($worker){
$con->send(json_encode($msg));
}
if(isset($data['ch'])){
var_dump($data);
#var_dump($data);
$ch = $data['ch'];
$pattern_detail = '/^market\.(.*?)\.detail$/'; //市场概要
if(preg_match($pattern_detail, $ch, $match_detail)){

2
public/swap/swap_depth.php

@ -77,7 +77,7 @@ $worker->onWorkerStart = function($worker){
//深度数据
$symbol = $data['s'];
$symbol = str_before($symbol,'USDT');
var_dump($symbol);
#var_dump($symbol);
// 获取风控任务
$risk_key = 'fkJson:' . $symbol . '/USDT';

4
public/swap/swap_getoldkline.php

@ -56,7 +56,7 @@ foreach ($symbols as $symbol) {
}
}
foreach ($aa as $k => $v) {
var_dump($v);
#var_dump($v);
// 1分钟基线
$cache_data = [
"id" => substr($v['0'], 0, 10),
@ -83,7 +83,7 @@ foreach ($symbols as $symbol) {
// var_dump($cache_data);
// echo time();
if ($cache_data['id'] == strtotime(date("Y-m-d H:i:00", $doittime))) {
var_dump($cache_data);
#var_dump($cache_data);
$cache_data['open'] = $last_close;
$cache_on = $cache_data;
$cache_on['last_now'] = $cache_data['id'];

2
public/swap/swap_kline_15min.php

@ -146,7 +146,7 @@ $worker->onWorkerStart = function ($worker) {
$cache_data['high'] = PriceCalculate($cache_data['high'], '+', $change, 8);
$cache_data['low'] = PriceCalculate($cache_data['low'], '+', $change, 8);
}
var_dump($cache_data);
#var_dump($cache_data);
// echo(date("Y-m-d H:i:s",$kline_book['id'])). "\r\n";
// echo $kline_book['id'];
// 1分钟基线

2
public/swap/swap_kline_1day.php

@ -146,7 +146,7 @@ $worker->onWorkerStart = function ($worker) {
$cache_data['high'] = PriceCalculate($cache_data['high'], '+', $change, 8);
$cache_data['low'] = PriceCalculate($cache_data['low'], '+', $change, 8);
}
var_dump($cache_data);
#var_dump($cache_data);
// echo(date("Y-m-d H:i:s",$kline_book['id'])). "\r\n";
// echo $kline_book['id'];
if ($period == '1min') {

6
public/swap/swap_kline_1min.php

@ -111,9 +111,9 @@ $worker->onWorkerStart = function ($worker) {
if($oneminopen['last_now'] == strtotime(date("Y-m-d H:i:00", time()))){
$now['o'] = $oneminopen['open'];
}
if($ch == 'BTCUSDT'){
var_dump($data);
}
#if($ch == 'BTCUSDT'){
#var_dump($data);
#}
$now['t']=substr($now['t'],0,10);
// echo json_encode($cache_data) . "\r\n";
$cache_data = [

2
public/swap/swap_kline_5min.php

@ -146,7 +146,7 @@ $worker->onWorkerStart = function ($worker) {
$cache_data['high'] = PriceCalculate($cache_data['high'], '+', $change, 8);
$cache_data['low'] = PriceCalculate($cache_data['low'], '+', $change, 8);
}
var_dump($cache_data);
#var_dump($cache_data);
// echo(date("Y-m-d H:i:s",$kline_book['id'])). "\r\n";
// echo $kline_book['id'];

6
public/swap/swap_kline_repair.php

@ -95,9 +95,9 @@ $worker->onWorkerStart = function ($worker) {
$now = $data['k'];
$kklinekey = 'swap:' . $symbol . '_kline_' . $period;
$oneminopen = json_decode(Redis::get($kklinekey), true);
if($ch == 'BTCUSDT'){
var_dump($datajson);
}
#if($ch == 'BTCUSDT'){
#var_dump($datajson);
#}
exit();
if($oneminopen['last_now'] == strtotime(date("Y-m-d H:i:00", time()))){
$now['o'] = $oneminopen['open'];

Loading…
Cancel
Save