正在显示
21 个修改的文件
包含
27 行增加
和
39 行删除
| @@ -6,8 +6,8 @@ | @@ -6,8 +6,8 @@ | ||
| 6 | }, | 6 | }, |
| 7 | "autoload": { | 7 | "autoload": { |
| 8 | "psr-4": { | 8 | "psr-4": { |
| 9 | - "Jiaoyin\\": "./src/", | ||
| 10 | - "Trader\\": "./trader/" | 9 | + "jytools\\": "./jytools/", |
| 10 | + "trader\\": "./trader/" | ||
| 11 | }, | 11 | }, |
| 12 | "files": [ "src/functions.php", "trader/common/func.php" ] | 12 | "files": [ "src/functions.php", "trader/common/func.php" ] |
| 13 | }, | 13 | }, |
| 1 | <?php | 1 | <?php |
| 2 | require_once __DIR__ . '/../src/Feishu.php'; | 2 | require_once __DIR__ . '/../src/Feishu.php'; |
| 3 | -use Jiaoyin\Feishu; | ||
| 4 | 3 | ||
| 5 | -Feishu::notice('hello world test',Feishu::url_test,[Feishu::user_jiaoyin]); | ||
| 4 | +use jytools\Feishu; | ||
| 5 | + | ||
| 6 | +Feishu::notice('hello world test', Feishu::url_test, [Feishu::user_jiaoyin]); |
| @@ -2,15 +2,15 @@ | @@ -2,15 +2,15 @@ | ||
| 2 | 2 | ||
| 3 | require_once __DIR__ . '/../src/Logger.php'; | 3 | require_once __DIR__ . '/../src/Logger.php'; |
| 4 | 4 | ||
| 5 | -use Jiaoyin\Logger; | 5 | +use jytools\Logger; |
| 6 | 6 | ||
| 7 | $log = new Logger('./logs'); | 7 | $log = new Logger('./logs'); |
| 8 | $log->info('hello world'); | 8 | $log->info('hello world'); |
| 9 | $log->error('hello world error'); | 9 | $log->error('hello world error'); |
| 10 | 10 | ||
| 11 | -$log2 = new Logger('./logs',['info','error']); | 11 | +$log2 = new Logger('./logs', ['info', 'error']); |
| 12 | $log2->warning('hello world'); | 12 | $log2->warning('hello world'); |
| 13 | -$log2->error( 'hello world error'); | 13 | +$log2->error('hello world error'); |
| 14 | 14 | ||
| 15 | -$log3 = new Logger('./logs',['info','error'],true); | ||
| 16 | -$log3->info('hello world dataSlice test'); | ||
| 15 | +$log3 = new Logger('./logs', ['info', 'error'], true); | ||
| 16 | +$log3->info('hello world dataSlice test'); |
trader/autoload.php
已删除
100644 → 0
| 1 | -<?php | ||
| 2 | -require_once __DIR__ . '/CmBroker.php'; | ||
| 3 | -require_once __DIR__ . '/common/tool.php'; | ||
| 4 | -require_once __DIR__ . '/struct/ApiInfo.php'; | ||
| 5 | -require_once __DIR__ . '/struct/SymbolInfo.php'; | ||
| 6 | -require_once __DIR__ . '/struct/Order.php'; | ||
| 7 | -require_once __DIR__ . '/struct/WsData.php'; | ||
| 8 | -require_once __DIR__ . '/struct/WsDataTrade.php'; | ||
| 9 | -require_once __DIR__ . '/struct/WsDataPos.php'; | ||
| 10 | -require_once __DIR__ . '/struct/WsDataOrder.php'; | ||
| 11 | -require_once __DIR__ . '/struct/Pos.php'; | ||
| 12 | -require_once __DIR__ . '/struct/Kline.php'; | ||
| 13 | -require_once __DIR__ . '/exchange/okx/ExBroker.php'; |
-
请 注册 或 登录 后发表评论