@@ -4,15 +4,15 @@ discard block |
||
| 4 | 4 | */ |
| 5 | 5 | use Slince\SmartQQ\Credential; |
| 6 | 6 | |
| 7 | -include __DIR__.'/../vendor/autoload.php'; |
|
| 7 | +include __DIR__ . '/../vendor/autoload.php'; |
|
| 8 | 8 | |
| 9 | 9 | date_default_timezone_set('Prc'); |
| 10 | 10 | |
| 11 | 11 | //二维码图片 |
| 12 | -define('LOGIN_QR_IMAGE', getcwd().'/smartqq-login-qr.png'); |
|
| 12 | +define('LOGIN_QR_IMAGE', getcwd() . '/smartqq-login-qr.png'); |
|
| 13 | 13 | |
| 14 | 14 | //登录凭证信息保存 |
| 15 | -define('CREDENTIAL_JSON', getcwd().'/credential.json'); |
|
| 15 | +define('CREDENTIAL_JSON', getcwd() . '/credential.json'); |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * 打印结果到屏幕. |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | function printPrettyScreen($data) |
| 23 | 23 | { |
| 24 | 24 | // printR($data); |
| 25 | - @file_put_contents(getcwd().'/result.log', print_r($data, true)."\r\n", FILE_APPEND); |
|
| 25 | + @file_put_contents(getcwd() . '/result.log', print_r($data, true) . "\r\n", FILE_APPEND); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | */ |
| 5 | 5 | use Slince\SmartQQ\Client; |
| 6 | 6 | |
| 7 | -include __DIR__.'/bootstrap.php'; |
|
| 7 | +include __DIR__ . '/bootstrap.php'; |
|
| 8 | 8 | |
| 9 | 9 | //创建smartQQ客户端 |
| 10 | 10 | $smartQQ = new Client(getCredential()); |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | */ |
| 5 | 5 | use Slince\SmartQQ\Client; |
| 6 | 6 | |
| 7 | -include __DIR__.'/bootstrap.php'; |
|
| 7 | +include __DIR__ . '/bootstrap.php'; |
|
| 8 | 8 | |
| 9 | 9 | //创建smartQQ客户端 |
| 10 | 10 | $smartQQ = new Client(getCredential()); |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | use Slince\SmartQQ\Entity\Discuss; |
| 10 | 10 | use Slince\SmartQQ\Entity\DiscussDetail; |
| 11 | 11 | |
| 12 | -include __DIR__.'/bootstrap.php'; |
|
| 12 | +include __DIR__ . '/bootstrap.php'; |
|
| 13 | 13 | |
| 14 | 14 | //创建smartQQ客户端 |
| 15 | 15 | $smartQQ = new Client(getCredential()); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | while (true) { |
| 39 | 39 | $messages = $smartQQ->pollMessages(); |
| 40 | 40 | if ($messages) { |
| 41 | - printR('收到消息'.PHP_EOL); |
|
| 41 | + printR('收到消息' . PHP_EOL); |
|
| 42 | 42 | foreach ($messages as $message) { |
| 43 | 43 | if ($message instanceof FriendMessage) { |
| 44 | 44 | $friend = $friends->firstByAttribute('uin', $message->getFromUin()); |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | */ |
| 5 | 5 | use Slince\SmartQQ\Client; |
| 6 | 6 | |
| 7 | -include __DIR__.'/bootstrap.php'; |
|
| 7 | +include __DIR__ . '/bootstrap.php'; |
|
| 8 | 8 | |
| 9 | 9 | //创建smartQQ客户端 |
| 10 | 10 | $smartQQ = new Client(getCredential()); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | use Slince\SmartQQ\Message\Request\DiscussMessage; |
| 9 | 9 | use Slince\SmartQQ\Message\Content; |
| 10 | 10 | |
| 11 | -include __DIR__.'/bootstrap.php'; |
|
| 11 | +include __DIR__ . '/bootstrap.php'; |
|
| 12 | 12 | |
| 13 | 13 | //创建smartQQ客户端 |
| 14 | 14 | $smartQQ = new Client(getCredential()); |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Slince\SmartQQ\Client; |
| 4 | 4 | |
| 5 | -include __DIR__.'/bootstrap.php'; |
|
| 5 | +include __DIR__ . '/bootstrap.php'; |
|
| 6 | 6 | |
| 7 | 7 | //创建smartQQ客户端 |
| 8 | 8 | $smartQQ = new Client(); |