diff --git a/composer.lock b/composer.lock index 91239a4..234e21a 100644 --- a/composer.lock +++ b/composer.lock @@ -1,7 +1,7 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], "content-hash": "ff9203293e7978ba588135c0b81d5960", @@ -18,7 +18,13 @@ "type": "zip", "url": "https://api.github.com/repos/doctrine/inflector/zipball/5527a48b7313d15261292c149e55e26eae771b0a", "reference": "5527a48b7313d15261292c149e55e26eae771b0a", - "shasum": "" + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": "^7.1" @@ -85,7 +91,13 @@ "type": "zip", "url": "https://api.github.com/repos/guzzle/guzzle/zipball/407b0cb880ace85c9b63c5f9551db498cb2d50ba", "reference": "407b0cb880ace85c9b63c5f9551db498cb2d50ba", - "shasum": "" + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "guzzlehttp/promises": "^1.0", @@ -150,7 +162,13 @@ "type": "zip", "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", - "shasum": "" + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": ">=5.5.0" @@ -191,33 +209,43 @@ }, { "name": "guzzlehttp/psr7", - "version": "1.5.2", + "version": "1.6.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "9f83dded91781a01c63574e387eaa769be769115" + "reference": "dc784032a3f6f4e7a4b882e272b771f6fe4c37cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/9f83dded91781a01c63574e387eaa769be769115", - "reference": "9f83dded91781a01c63574e387eaa769be769115", - "shasum": "" + "url": "https://api.github.com/repos/guzzle/psr7/zipball/dc784032a3f6f4e7a4b882e272b771f6fe4c37cf", + "reference": "dc784032a3f6f4e7a4b882e272b771f6fe4c37cf", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": ">=5.4.0", "psr/http-message": "~1.0", - "ralouphie/getallheaders": "^2.0.5" + "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" }, "provide": { "psr/http-message-implementation": "1.0" }, "require-dev": { + "ext-zlib": "*", "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" }, + "suggest": { + "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses" + }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.5-dev" + "dev-master": "1.6-dev" } }, "autoload": { @@ -254,21 +282,27 @@ "uri", "url" ], - "time": "2018-12-04T20:46:45+00:00" + "time": "2019-06-30T00:37:05+00:00" }, { "name": "illuminate/contracts", - "version": "v5.7.27", + "version": "v5.8.24", "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", - "reference": "b63324d349a8ae2156fbc2697c1ccc85879b3803" + "reference": "33b4e0ffb89eb2216c764235c9e95fed1f3fab82" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/b63324d349a8ae2156fbc2697c1ccc85879b3803", - "reference": "b63324d349a8ae2156fbc2697c1ccc85879b3803", - "shasum": "" + "url": "https://api.github.com/repos/illuminate/contracts/zipball/33b4e0ffb89eb2216c764235c9e95fed1f3fab82", + "reference": "33b4e0ffb89eb2216c764235c9e95fed1f3fab82", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": "^7.1.3", @@ -278,7 +312,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.7-dev" + "dev-master": "5.8-dev" } }, "autoload": { @@ -298,27 +332,33 @@ ], "description": "The Illuminate Contracts package.", "homepage": "https://laravel.com", - "time": "2019-02-12T07:46:48+00:00" + "time": "2019-06-11T14:00:26+00:00" }, { "name": "illuminate/filesystem", - "version": "v5.7.27", + "version": "v5.8.24", "source": { "type": "git", "url": "https://github.com/illuminate/filesystem.git", - "reference": "ff853e678a93996b1d0a3ddc6fc56c10bae0de30" + "reference": "3934079a1a68d81084c12b82e962cb23555f4b2e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/filesystem/zipball/ff853e678a93996b1d0a3ddc6fc56c10bae0de30", - "reference": "ff853e678a93996b1d0a3ddc6fc56c10bae0de30", - "shasum": "" + "url": "https://api.github.com/repos/illuminate/filesystem/zipball/3934079a1a68d81084c12b82e962cb23555f4b2e", + "reference": "3934079a1a68d81084c12b82e962cb23555f4b2e", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { - "illuminate/contracts": "5.7.*", - "illuminate/support": "5.7.*", + "illuminate/contracts": "5.8.*", + "illuminate/support": "5.8.*", "php": "^7.1.3", - "symfony/finder": "^4.1" + "symfony/finder": "^4.2" }, "suggest": { "league/flysystem": "Required to use the Flysystem local and FTP drivers (^1.0).", @@ -330,7 +370,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.7-dev" + "dev-master": "5.8-dev" } }, "autoload": { @@ -350,33 +390,40 @@ ], "description": "The Illuminate Filesystem package.", "homepage": "https://laravel.com", - "time": "2019-02-11T13:48:57+00:00" + "time": "2019-06-04T14:33:55+00:00" }, { "name": "illuminate/http", - "version": "v5.7.27", + "version": "v5.8.24", "source": { "type": "git", "url": "https://github.com/illuminate/http.git", - "reference": "279984eed495fc19a5649e4e8f57c5076e406f0a" + "reference": "597fd8923080117cda4af2aa878e88cef5624840" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/http/zipball/279984eed495fc19a5649e4e8f57c5076e406f0a", - "reference": "279984eed495fc19a5649e4e8f57c5076e406f0a", - "shasum": "" + "url": "https://api.github.com/repos/illuminate/http/zipball/597fd8923080117cda4af2aa878e88cef5624840", + "reference": "597fd8923080117cda4af2aa878e88cef5624840", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { - "illuminate/session": "5.7.*", - "illuminate/support": "5.7.*", + "ext-json": "*", + "illuminate/session": "5.8.*", + "illuminate/support": "5.8.*", "php": "^7.1.3", - "symfony/http-foundation": "^4.1", - "symfony/http-kernel": "^4.1" + "symfony/http-foundation": "^4.2", + "symfony/http-kernel": "^4.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.7-dev" + "dev-master": "5.8-dev" } }, "autoload": { @@ -396,37 +443,44 @@ ], "description": "The Illuminate Http package.", "homepage": "https://laravel.com", - "time": "2019-02-11T13:48:57+00:00" + "time": "2019-06-11T19:01:45+00:00" }, { "name": "illuminate/session", - "version": "v5.7.27", + "version": "v5.8.24", "source": { "type": "git", "url": "https://github.com/illuminate/session.git", - "reference": "0d1233ea455b9ad50112212022ca3bcff874fa86" + "reference": "762eadf940439344a34acdcf2c31efd0deb9b9ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/session/zipball/0d1233ea455b9ad50112212022ca3bcff874fa86", - "reference": "0d1233ea455b9ad50112212022ca3bcff874fa86", - "shasum": "" + "url": "https://api.github.com/repos/illuminate/session/zipball/762eadf940439344a34acdcf2c31efd0deb9b9ac", + "reference": "762eadf940439344a34acdcf2c31efd0deb9b9ac", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { - "illuminate/contracts": "5.7.*", - "illuminate/filesystem": "5.7.*", - "illuminate/support": "5.7.*", + "ext-json": "*", + "illuminate/contracts": "5.8.*", + "illuminate/filesystem": "5.8.*", + "illuminate/support": "5.8.*", "php": "^7.1.3", - "symfony/finder": "^4.1", - "symfony/http-foundation": "^4.1" + "symfony/finder": "^4.2", + "symfony/http-foundation": "^4.2" }, "suggest": { - "illuminate/console": "Required to use the session:table command (5.7.*)." + "illuminate/console": "Required to use the session:table command (5.8.*)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.7-dev" + "dev-master": "5.8-dev" } }, "autoload": { @@ -446,43 +500,51 @@ ], "description": "The Illuminate Session package.", "homepage": "https://laravel.com", - "time": "2019-02-11T13:48:57+00:00" + "time": "2019-06-05T13:03:53+00:00" }, { "name": "illuminate/support", - "version": "v5.7.27", + "version": "v5.8.24", "source": { "type": "git", "url": "https://github.com/illuminate/support.git", - "reference": "3e2810145f37eb89fa11759781ee88ee1c1a5262" + "reference": "b05653f5ecce996734d3facd06a81aff504b6a2f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/3e2810145f37eb89fa11759781ee88ee1c1a5262", - "reference": "3e2810145f37eb89fa11759781ee88ee1c1a5262", - "shasum": "" + "url": "https://api.github.com/repos/illuminate/support/zipball/b05653f5ecce996734d3facd06a81aff504b6a2f", + "reference": "b05653f5ecce996734d3facd06a81aff504b6a2f", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "doctrine/inflector": "^1.1", + "ext-json": "*", "ext-mbstring": "*", - "illuminate/contracts": "5.7.*", - "nesbot/carbon": "^1.26.3", + "illuminate/contracts": "5.8.*", + "nesbot/carbon": "^1.26.3 || ^2.0", "php": "^7.1.3" }, "conflict": { "tightenco/collect": "<5.5.33" }, "suggest": { - "illuminate/filesystem": "Required to use the composer class (5.7.*).", + "illuminate/filesystem": "Required to use the composer class (5.8.*).", "moontoast/math": "Required to use ordered UUIDs (^1.1).", "ramsey/uuid": "Required to use Str::uuid() (^3.7).", - "symfony/process": "Required to use the composer class (^4.1).", - "symfony/var-dumper": "Required to use the dd function (^4.1)." + "symfony/process": "Required to use the composer class (^4.2).", + "symfony/var-dumper": "Required to use the dd function (^4.2).", + "vlucas/phpdotenv": "Required to use the env helper (^3.3)." }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.7-dev" + "dev-master": "5.8-dev" } }, "autoload": { @@ -505,21 +567,27 @@ ], "description": "The Illuminate Support package.", "homepage": "https://laravel.com", - "time": "2019-02-12T07:57:07+00:00" + "time": "2019-06-19T14:12:17+00:00" }, { "name": "influxdb/influxdb-php", - "version": "1.14.7", + "version": "1.15.0", "source": { "type": "git", "url": "https://github.com/influxdata/influxdb-php.git", - "reference": "570bd5cdedb9b1c1628dceea5785bc40e08f7e48" + "reference": "bf3415f81962e1ab8c939bc1a08a85f500bead35" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/influxdata/influxdb-php/zipball/570bd5cdedb9b1c1628dceea5785bc40e08f7e48", - "reference": "570bd5cdedb9b1c1628dceea5785bc40e08f7e48", - "shasum": "" + "url": "https://api.github.com/repos/influxdata/influxdb-php/zipball/bf3415f81962e1ab8c939bc1a08a85f500bead35", + "reference": "bf3415f81962e1ab8c939bc1a08a85f500bead35", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "guzzlehttp/guzzle": "^6.0", @@ -529,6 +597,7 @@ "phpunit/phpunit": "^5.7" }, "suggest": { + "ext-curl": "Curl extension, needed for Curl driver", "stefanotorresi/influxdb-php-async": "An asyncronous client for InfluxDB, implemented via ReactPHP." }, "type": "library", @@ -565,7 +634,7 @@ "influxdb library", "time series" ], - "time": "2018-07-06T10:13:39+00:00" + "time": "2019-05-30T00:15:14+00:00" }, { "name": "itxq/api-doc-php", @@ -579,7 +648,13 @@ "type": "zip", "url": "https://api.github.com/repos/itxq/api-doc-php/zipball/79ac71cf09da49491cfb92722d6f6e13ad8f6482", "reference": "79ac71cf09da49491cfb92722d6f6e13ad8f6482", - "shasum": "" + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": ">=5.6.0" @@ -615,7 +690,13 @@ "type": "zip", "url": "https://api.github.com/repos/Seldaek/monolog/zipball/bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", - "shasum": "" + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": ">=5.3.0", @@ -683,28 +764,36 @@ }, { "name": "nesbot/carbon", - "version": "1.36.2", + "version": "2.20.0", "source": { "type": "git", "url": "https://github.com/briannesbitt/Carbon.git", - "reference": "cd324b98bc30290f233dd0e75e6ce49f7ab2a6c9" + "reference": "bc671b896c276795fad8426b0aa24e8ade0f2498" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/cd324b98bc30290f233dd0e75e6ce49f7ab2a6c9", - "reference": "cd324b98bc30290f233dd0e75e6ce49f7ab2a6c9", - "shasum": "" + "url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/bc671b896c276795fad8426b0aa24e8ade0f2498", + "reference": "bc671b896c276795fad8426b0aa24e8ade0f2498", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { - "php": ">=5.3.9", - "symfony/translation": "~2.6 || ~3.0 || ~4.0" + "ext-json": "*", + "php": "^7.1.8 || ^8.0", + "symfony/translation": "^3.4 || ^4.0" }, "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7" - }, - "suggest": { - "friendsofphp/php-cs-fixer": "Needed for the `composer phpcs` command. Allow to automatically fix code style.", - "phpstan/phpstan": "Needed for the `composer phpstan` command. Allow to detect potential errors." + "friendsofphp/php-cs-fixer": "^2.14 || ^3.0", + "kylekatarnls/multi-tester": "^1.1", + "phpmd/phpmd": "^2.6", + "phpstan/phpstan": "^0.11", + "phpunit/phpunit": "^7.5 || ^8.0", + "squizlabs/php_codesniffer": "^3.4" }, "type": "library", "extra": { @@ -716,7 +805,7 @@ }, "autoload": { "psr-4": { - "": "src/" + "Carbon\\": "src/Carbon/" } }, "notification-url": "https://packagist.org/downloads/", @@ -737,15 +826,15 @@ "datetime", "time" ], - "time": "2018-12-28T10:07:33+00:00" + "time": "2019-06-25T10:00:57+00:00" }, { "name": "paidian/json-rpc", - "version": "v1.2.1", + "version": "v1.3.4", "source": { "type": "git", "url": "git@git.int.haowumc.com:composer/php-json-rpc.git", - "reference": "198318d9d0ca7f05f39d9d5cd391af57baa96f3d" + "reference": "ac3f7bb7378f7692da43f8b54821848605281a6d" }, "require": { "guzzlehttp/guzzle": "^6.3", @@ -762,7 +851,7 @@ } }, "description": "json rpc server/client.", - "time": "2019-02-20T05:55:03+00:00" + "time": "2019-04-23T07:17:14+00:00" }, { "name": "psr/container", @@ -776,7 +865,13 @@ "type": "zip", "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", - "shasum": "" + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": ">=5.3.0" @@ -825,7 +920,13 @@ "type": "zip", "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", - "shasum": "" + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": ">=5.3.0" @@ -875,7 +976,13 @@ "type": "zip", "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", - "shasum": "" + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": ">=5.3.0" @@ -922,7 +1029,13 @@ "type": "zip", "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", - "shasum": "" + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": ">=5.3.0" @@ -960,24 +1073,30 @@ }, { "name": "ralouphie/getallheaders", - "version": "2.0.5", + "version": "3.0.3", "source": { "type": "git", "url": "https://github.com/ralouphie/getallheaders.git", - "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa" + "reference": "120b605dfeb996808c31b6477290a714d356e822" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/5601c8a83fbba7ef674a7369456d12f1e0d0eafa", - "reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa", - "shasum": "" + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { - "php": ">=5.3" + "php": ">=5.6" }, "require-dev": { - "phpunit/phpunit": "~3.7.0", - "satooshi/php-coveralls": ">=1.0" + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" }, "type": "library", "autoload": { @@ -996,89 +1115,27 @@ } ], "description": "A polyfill for getallheaders.", - "time": "2016-02-11T07:05:27+00:00" - }, - { - "name": "symfony/contracts", - "version": "v1.0.2", - "source": { - "type": "git", - "url": "https://github.com/symfony/contracts.git", - "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/contracts/zipball/1aa7ab2429c3d594dd70689604b5cf7421254cdf", - "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf", - "shasum": "" - }, - "require": { - "php": "^7.1.3" - }, - "require-dev": { - "psr/cache": "^1.0", - "psr/container": "^1.0" - }, - "suggest": { - "psr/cache": "When using the Cache contracts", - "psr/container": "When using the Service contracts", - "symfony/cache-contracts-implementation": "", - "symfony/service-contracts-implementation": "", - "symfony/translation-contracts-implementation": "" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Contracts\\": "" - }, - "exclude-from-classmap": [ - "**/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "A set of abstractions extracted out of the Symfony components", - "homepage": "https://symfony.com", - "keywords": [ - "abstractions", - "contracts", - "decoupling", - "interfaces", - "interoperability", - "standards" - ], - "time": "2018-12-05T08:06:11+00:00" + "time": "2019-03-08T08:55:37+00:00" }, { "name": "symfony/debug", - "version": "v4.2.3", + "version": "v4.3.2", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "cf9b2e33f757deb884ce474e06d2647c1c769b65" + "reference": "d8f4fb38152e0eb6a433705e5f661d25b32c5fcd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/cf9b2e33f757deb884ce474e06d2647c1c769b65", - "reference": "cf9b2e33f757deb884ce474e06d2647c1c769b65", - "shasum": "" + "url": "https://api.github.com/repos/symfony/debug/zipball/d8f4fb38152e0eb6a433705e5f661d25b32c5fcd", + "reference": "d8f4fb38152e0eb6a433705e5f661d25b32c5fcd", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": "^7.1.3", @@ -1093,7 +1150,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "4.3-dev" } }, "autoload": { @@ -1120,34 +1177,46 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2019-01-25T14:35:16+00:00" + "time": "2019-06-19T15:27:09+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v4.2.3", + "version": "v4.3.2", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "bd09ad265cd50b2b9d09d65ce6aba2d29bc81fe1" + "reference": "d257021c1ab28d48d24a16de79dfab445ce93398" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/bd09ad265cd50b2b9d09d65ce6aba2d29bc81fe1", - "reference": "bd09ad265cd50b2b9d09d65ce6aba2d29bc81fe1", - "shasum": "" + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d257021c1ab28d48d24a16de79dfab445ce93398", + "reference": "d257021c1ab28d48d24a16de79dfab445ce93398", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": "^7.1.3", - "symfony/contracts": "^1.0" + "symfony/event-dispatcher-contracts": "^1.1" }, "conflict": { "symfony/dependency-injection": "<3.4" }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "1.1" + }, "require-dev": { "psr/log": "~1.0", "symfony/config": "~3.4|~4.0", "symfony/dependency-injection": "~3.4|~4.0", "symfony/expression-language": "~3.4|~4.0", + "symfony/http-foundation": "^3.4|^4.0", + "symfony/service-contracts": "^1.1", "symfony/stopwatch": "~3.4|~4.0" }, "suggest": { @@ -1157,7 +1226,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "4.3-dev" } }, "autoload": { @@ -1184,21 +1253,91 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2019-01-16T20:35:37+00:00" + "time": "2019-06-13T11:03:18+00:00" }, { - "name": "symfony/finder", - "version": "v4.2.3", + "name": "symfony/event-dispatcher-contracts", + "version": "v1.1.5", "source": { "type": "git", - "url": "https://github.com/symfony/finder.git", - "reference": "ef71816cbb264988bb57fe6a73f610888b9aa70c" + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "c61766f4440ca687de1084a5c00b08e167a2575c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/ef71816cbb264988bb57fe6a73f610888b9aa70c", - "reference": "ef71816cbb264988bb57fe6a73f610888b9aa70c", - "shasum": "" + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/c61766f4440ca687de1084a5c00b08e167a2575c", + "reference": "c61766f4440ca687de1084a5c00b08e167a2575c", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": "^7.1.3" + }, + "suggest": { + "psr/event-dispatcher": "", + "symfony/event-dispatcher-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "time": "2019-06-20T06:46:26+00:00" + }, + { + "name": "symfony/finder", + "version": "v4.3.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "33c21f7d5d3dc8a140c282854a7e13aeb5d0f91a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/33c21f7d5d3dc8a140c282854a7e13aeb5d0f91a", + "reference": "33c21f7d5d3dc8a140c282854a7e13aeb5d0f91a", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": "^7.1.3" @@ -1206,7 +1345,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "4.3-dev" } }, "autoload": { @@ -1233,24 +1372,31 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2019-01-16T20:35:37+00:00" + "time": "2019-06-13T11:03:18+00:00" }, { "name": "symfony/http-foundation", - "version": "v4.2.3", + "version": "v4.3.2", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "8d2318b73e0a1bc75baa699d00ebe2ae8b595a39" + "reference": "e1b507fcfa4e87d192281774b5ecd4265370180d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/8d2318b73e0a1bc75baa699d00ebe2ae8b595a39", - "reference": "8d2318b73e0a1bc75baa699d00ebe2ae8b595a39", - "shasum": "" + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/e1b507fcfa4e87d192281774b5ecd4265370180d", + "reference": "e1b507fcfa4e87d192281774b5ecd4265370180d", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": "^7.1.3", + "symfony/mime": "^4.3", "symfony/polyfill-mbstring": "~1.1" }, "require-dev": { @@ -1260,7 +1406,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "4.3-dev" } }, "autoload": { @@ -1287,34 +1433,41 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2019-01-29T09:49:29+00:00" + "time": "2019-06-26T09:25:00+00:00" }, { "name": "symfony/http-kernel", - "version": "v4.2.3", + "version": "v4.3.2", "source": { "type": "git", "url": "https://github.com/symfony/http-kernel.git", - "reference": "d56b1706abaa771eb6acd894c6787cb88f1dc97d" + "reference": "4150f71e27ed37a74700561b77e3dbd754cbb44d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-kernel/zipball/d56b1706abaa771eb6acd894c6787cb88f1dc97d", - "reference": "d56b1706abaa771eb6acd894c6787cb88f1dc97d", - "shasum": "" + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/4150f71e27ed37a74700561b77e3dbd754cbb44d", + "reference": "4150f71e27ed37a74700561b77e3dbd754cbb44d", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": "^7.1.3", "psr/log": "~1.0", - "symfony/contracts": "^1.0.2", "symfony/debug": "~3.4|~4.0", - "symfony/event-dispatcher": "~4.1", + "symfony/event-dispatcher": "^4.3", "symfony/http-foundation": "^4.1.1", - "symfony/polyfill-ctype": "~1.8" + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-php73": "^1.9" }, "conflict": { + "symfony/browser-kit": "<4.3", "symfony/config": "<3.4", - "symfony/dependency-injection": "<4.2", + "symfony/dependency-injection": "<4.3", "symfony/translation": "<4.2", "symfony/var-dumper": "<4.1.1", "twig/twig": "<1.34|<2.4,>=2" @@ -1324,11 +1477,11 @@ }, "require-dev": { "psr/cache": "~1.0", - "symfony/browser-kit": "~3.4|~4.0", + "symfony/browser-kit": "^4.3", "symfony/config": "~3.4|~4.0", "symfony/console": "~3.4|~4.0", "symfony/css-selector": "~3.4|~4.0", - "symfony/dependency-injection": "^4.2", + "symfony/dependency-injection": "^4.3", "symfony/dom-crawler": "~3.4|~4.0", "symfony/expression-language": "~3.4|~4.0", "symfony/finder": "~3.4|~4.0", @@ -1337,7 +1490,9 @@ "symfony/stopwatch": "~3.4|~4.0", "symfony/templating": "~3.4|~4.0", "symfony/translation": "~4.2", - "symfony/var-dumper": "^4.1.1" + "symfony/translation-contracts": "^1.1", + "symfony/var-dumper": "^4.1.1", + "twig/twig": "^1.34|^2.4" }, "suggest": { "symfony/browser-kit": "", @@ -1349,7 +1504,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "4.3-dev" } }, "autoload": { @@ -1376,21 +1531,92 @@ ], "description": "Symfony HttpKernel Component", "homepage": "https://symfony.com", - "time": "2019-02-03T12:47:33+00:00" + "time": "2019-06-26T14:26:16+00:00" }, { - "name": "symfony/polyfill-ctype", - "version": "v1.10.0", + "name": "symfony/mime", + "version": "v4.3.2", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "e3d826245268269cd66f8326bd8bc066687b4a19" + "url": "https://github.com/symfony/mime.git", + "reference": "ec2c5565de60e03f33d4296a655e3273f0ad1f8b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19", - "reference": "e3d826245268269cd66f8326bd8bc066687b4a19", - "shasum": "" + "url": "https://api.github.com/repos/symfony/mime/zipball/ec2c5565de60e03f33d4296a655e3273f0ad1f8b", + "reference": "ec2c5565de60e03f33d4296a655e3273f0ad1f8b", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": "^7.1.3", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0" + }, + "require-dev": { + "egulias/email-validator": "^2.0", + "symfony/dependency-injection": "~3.4|^4.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.3-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Mime\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A library to manipulate MIME messages", + "homepage": "https://symfony.com", + "keywords": [ + "mime", + "mime-type" + ], + "time": "2019-06-04T09:22:54+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.11.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "82ebae02209c21113908c229e9883c419720738a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a", + "reference": "82ebae02209c21113908c229e9883c419720738a", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": ">=5.3.3" @@ -1401,7 +1627,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -1434,21 +1660,95 @@ "polyfill", "portable" ], - "time": "2018-08-06T14:22:27+00:00" + "time": "2019-02-06T07:57:58+00:00" }, { - "name": "symfony/polyfill-mbstring", - "version": "v1.10.0", + "name": "symfony/polyfill-intl-idn", + "version": "v1.11.0", "source": { "type": "git", - "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "c79c051f5b3a46be09205c73b80b346e4153e494" + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "c766e95bec706cdd89903b1eda8afab7d7a6b7af" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494", - "reference": "c79c051f5b3a46be09205c73b80b346e4153e494", - "shasum": "" + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/c766e95bec706cdd89903b1eda8afab7d7a6b7af", + "reference": "c766e95bec706cdd89903b1eda8afab7d7a6b7af", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.3.3", + "symfony/polyfill-mbstring": "^1.3", + "symfony/polyfill-php72": "^1.9" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Intl\\Idn\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + }, + { + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + } + ], + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "idn", + "intl", + "polyfill", + "portable", + "shim" + ], + "time": "2019-03-04T13:44:35+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.11.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "fe5e94c604826c35a32fa832f35bd036b6799609" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fe5e94c604826c35a32fa832f35bd036b6799609", + "reference": "fe5e94c604826c35a32fa832f35bd036b6799609", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": ">=5.3.3" @@ -1459,7 +1759,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -1493,26 +1793,157 @@ "portable", "shim" ], - "time": "2018-09-21T13:07:52+00:00" + "time": "2019-02-06T07:57:58+00:00" }, { - "name": "symfony/translation", - "version": "v4.2.3", + "name": "symfony/polyfill-php72", + "version": "v1.11.0", "source": { "type": "git", - "url": "https://github.com/symfony/translation.git", - "reference": "23fd7aac70d99a17a8e6473a41fec8fab3331050" + "url": "https://github.com/symfony/polyfill-php72.git", + "reference": "ab50dcf166d5f577978419edd37aa2bb8eabce0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/23fd7aac70d99a17a8e6473a41fec8fab3331050", - "reference": "23fd7aac70d99a17a8e6473a41fec8fab3331050", - "shasum": "" + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/ab50dcf166d5f577978419edd37aa2bb8eabce0c", + "reference": "ab50dcf166d5f577978419edd37aa2bb8eabce0c", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.11-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php72\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2019-02-06T07:57:58+00:00" + }, + { + "name": "symfony/polyfill-php73", + "version": "v1.11.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php73.git", + "reference": "d1fb4abcc0c47be136208ad9d68bf59f1ee17abd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/d1fb4abcc0c47be136208ad9d68bf59f1ee17abd", + "reference": "d1fb4abcc0c47be136208ad9d68bf59f1ee17abd", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.11-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php73\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2019-02-06T07:57:58+00:00" + }, + { + "name": "symfony/translation", + "version": "v4.3.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "934ab1d18545149e012aa898cf02e9f23790f7a0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/934ab1d18545149e012aa898cf02e9f23790f7a0", + "reference": "934ab1d18545149e012aa898cf02e9f23790f7a0", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] }, "require": { "php": "^7.1.3", - "symfony/contracts": "^1.0.2", - "symfony/polyfill-mbstring": "~1.0" + "symfony/polyfill-mbstring": "~1.0", + "symfony/translation-contracts": "^1.1.2" }, "conflict": { "symfony/config": "<3.4", @@ -1520,7 +1951,7 @@ "symfony/yaml": "<3.4" }, "provide": { - "symfony/translation-contracts-implementation": "1.0" + "symfony/translation-implementation": "1.0" }, "require-dev": { "psr/log": "~1.0", @@ -1528,7 +1959,10 @@ "symfony/console": "~3.4|~4.0", "symfony/dependency-injection": "~3.4|~4.0", "symfony/finder": "~2.8|~3.0|~4.0", + "symfony/http-kernel": "~3.4|~4.0", "symfony/intl": "~3.4|~4.0", + "symfony/service-contracts": "^1.1.2", + "symfony/var-dumper": "~3.4|~4.0", "symfony/yaml": "~3.4|~4.0" }, "suggest": { @@ -1539,7 +1973,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.2-dev" + "dev-master": "4.3-dev" } }, "autoload": { @@ -1566,7 +2000,70 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", - "time": "2019-01-27T23:11:39+00:00" + "time": "2019-06-13T11:03:18+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v1.1.5", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "cb4b18ad7b92a26e83b65dde940fab78339e6f3c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/cb4b18ad7b92a26e83b65dde940fab78339e6f3c", + "reference": "cb4b18ad7b92a26e83b65dde940fab78339e6f3c", + "shasum": "", + "mirrors": [ + { + "url": "https://dl.laravel-china.org/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": "^7.1.3" + }, + "suggest": { + "symfony/translation-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Translation\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to translation", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "time": "2019-06-13T11:15:36+00:00" } ], "packages-dev": [], diff --git a/docs/robot-image.jpg b/docs/robot-image.jpg new file mode 100644 index 0000000..719ff0e Binary files /dev/null and b/docs/robot-image.jpg differ diff --git a/docs/robot-markdown.jpg b/docs/robot-markdown.jpg new file mode 100644 index 0000000..2c8c50f Binary files /dev/null and b/docs/robot-markdown.jpg differ diff --git a/docs/robot-news.jpg b/docs/robot-news.jpg new file mode 100644 index 0000000..170c85a Binary files /dev/null and b/docs/robot-news.jpg differ diff --git a/docs/robot-text.jpg b/docs/robot-text.jpg new file mode 100644 index 0000000..e497c5c Binary files /dev/null and b/docs/robot-text.jpg differ diff --git a/src/functions.php b/src/functions.php index debb912..a55d9a5 100644 --- a/src/functions.php +++ b/src/functions.php @@ -1,223 +1,258 @@ env('APP_NAME'), - 'client' => [ - 'auth' => [ - 'base_uri' => 'http://auth.in.haowumc.com', - ], - ], -]); +//define('RPC_CONFIG', [ +// 'app' => env('APP_NAME'), +// 'client' => [ +// 'auth' => [ +// 'base_uri' => 'http://auth.in.haowumc.com', +// ], +// ], +//]); +// +///** +// * 对企业微信群发送报警信息(需先创建 +// * +// * @param $chat +// * @param $text +// * +// * @return mixed|null +// */ +// +//function chat_text_alert ($chat, $text) +//{ +// if (env('APP_ENV') == 'local') { +// return true; +// } +// $base_client = new \JsonRpc\Client(RPC_CONFIG); +// $client = $base_client->endpoint('auth'); +// +// try { +// $resp = $client->call('notify.text', [ +// ['chat' => $chat], +// $text, +// ]); +// } catch (Exception $ex) { +// var_dump($ex->getMessage()); +// return null; +// } +// +// return $resp; +//} +// +///** +// * 对单个或多个用户发送报警或通知信息,多个用户id使用 | 隔开 +// * +// * @param $text +// * +// * @return mixed|null +// */ +//function user_text_alert ($username, $text) +//{ +// if (env('APP_ENV') == 'local') { +// return true; +// } +// $base_client = new \JsonRpc\Client(RPC_CONFIG); +// $client = $base_client->endpoint('auth'); +// +// $username = explode('|', $username); +// try { +// $res = $client->call('notify.text', [ +// ['user' => $username], +// $text, +// ]); +// } catch (Exception $ex) { +// var_dump($ex->getMessage()); +// return null; +// } +// +// return $res; +//} +// +///** +// * 对微信群发送文本卡片 +// * +// * @param $chat +// * @param $title +// * @param $desc +// * @param $button +// * @param $url +// * +// * @return mixed|null +// */ +//function chat_card_alert ($chat, $title, $desc, $button, $url) +//{ +// if (env('APP_ENV') == 'local') { +// return true; +// } +// +// $base_client = new \JsonRpc\Client(RPC_CONFIG); +// $client = $base_client->endpoint('auth'); +// +// try { +// $resp = $client->call('notify.card', [ +// ['chat' => $chat], +// $title, +// $desc, +// $button, +// $url, +// ]); +// } catch (Exception $ex) { +// var_dump($ex->getMessage()); +// return null; +// } +// +// return $resp; +//} +// +///** +// * 对单个或多个用户发送文本卡片,多个用户id使用 | 隔开 +// * +// * @param $username +// * @param $title +// * @param $desc +// * @param $button +// * @param $url +// * +// * @return mixed|null +// */ +//function user_card_alert ($username, $title, $desc, $button, $url) +//{ +// if (env('APP_ENV') == 'local') { +// return true; +// } +// +// $base_client = new \JsonRpc\Client(RPC_CONFIG); +// $client = $base_client->endpoint('auth'); +// +// $username = explode('|', $username); +// try { +// $resp = $client->call('notify.card', [ +// ['user' => $username], +// $title, +// $desc, +// $button, +// $url, +// ]); +// } catch (Exception $ex) { +// var_dump($ex->getMessage()); +// return null; +// } +// +// return $resp; +//} +// +///** +// * 对单个或多个用户发送文本卡片,多个用户id使用 | 隔开 +// * +// * @param $username +// * @param $appid //小程序的appid +// * @param $title //标题 +// * @param $page //小程序页面路径 +// * @param $desc //描述 +// * @param $items //消息内容键值对,最多允许10个item +// * @param $emphasisFirstItem //是否放大第一个content_item +// * +// * @return mixed|null +// */ +//function user_mp_alert ($username, $appid, $title, $page = null, $desc = null, $items = null, $emphasisFirstItem = null) +//{ +// if (env('APP_ENV') == 'local') { +// return true; +// } +// +// $base_client = new \JsonRpc\Client(RPC_CONFIG); +// $client = $base_client->endpoint('auth'); +// +// $username = explode('|', $username); +// try { +// $resp = $client->call('notify.mp', [ +// ['user' => $username], +// $appid, +// $title, +// $page, +// $desc, +// $items, +// $emphasisFirstItem +// ]); +// } catch (Exception $ex) { +// var_dump($ex->getMessage()); +// return null; +// } +// +// return $resp; +//} +// +///** +// * 对单个或多个用户发送文本卡片,多个用户id使用 | 隔开 +// * +// * @param $username +// * @param $appid //小程序的appid +// * @param $title //标题 +// * @param $page //小程序页面路径 +// * @param $desc //描述 +// * @param $items //消息内容键值对,最多允许10个item +// * @param $emphasisFirstItem //是否放大第一个content_item +// * +// * @return mixed|null +// */ +//function tag_mp_alert ($tag, $appid, $title, $page = null, $desc = null, $items = null, $emphasisFirstItem = null) +//{ +// if (env('APP_ENV') == 'local') { +// return true; +// } +// +// $base_client = new \JsonRpc\Client(RPC_CONFIG); +// $client = $base_client->endpoint('auth'); +// +// try { +// $resp = $client->call('notify.mp', [ +// ['tag' => $tag], +// $appid, +// $title, +// $page, +// $desc, +// $items, +// $emphasisFirstItem +// ]); +// } catch (Exception $ex) { +// var_dump($ex->getMessage()); +// return null; +// } +// +// return $resp; +//} + /** - * 对企业微信群发送报警信息(需先创建 + * 机器人通知 * - * @param $chat - * @param $text + * $content = [ + * 'msgtype' => 'text', + * 'text' => [ + * 'content' => '!', + * ] + * ]; * - * @return mixed|null + * @param $name + * @param $content + * @return array|mixed + * @throws Exception */ - -function chat_text_alert ($chat, $text) +function bot_notify($name, $content) { - if (env('APP_ENV') == 'local') { - return true; + switch ($name) { + case 'inventory'; + $uri = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=20a40b87-7bb9-4bcf-bd38-6612377d0970'; + break; + default: + throw new Exception('bot name not found!'); } - $base_client = new \JsonRpc\Client(RPC_CONFIG); - $client = $base_client->endpoint('auth'); - - try { - $resp = $client->call('notify.text', [ - ['chat' => $chat], - $text, - ]); - } catch (Exception $ex) { - var_dump($ex->getMessage()); - return null; + $client = new \GuzzleHttp\Client(); + $option['json'] = $content; + $resp = $client->request('POST', $uri, $option); + if ($resp->getStatusCode() == 200) { + return json_decode($resp->getBody(), true); + } else { + return []; } - - return $resp; -} - -/** - * 对单个或多个用户发送报警或通知信息,多个用户id使用 | 隔开 - * - * @param $text - * - * @return mixed|null - */ -function user_text_alert ($username, $text) -{ - if (env('APP_ENV') == 'local') { - return true; - } - $base_client = new \JsonRpc\Client(RPC_CONFIG); - $client = $base_client->endpoint('auth'); - - $username = explode('|', $username); - try { - $res = $client->call('notify.text', [ - ['user' => $username], - $text, - ]); - } catch (Exception $ex) { - var_dump($ex->getMessage()); - return null; - } - - return $res; -} - -/** - * 对微信群发送文本卡片 - * - * @param $chat - * @param $title - * @param $desc - * @param $button - * @param $url - * - * @return mixed|null - */ -function chat_card_alert ($chat, $title, $desc, $button, $url) -{ - if (env('APP_ENV') == 'local') { - return true; - } - - $base_client = new \JsonRpc\Client(RPC_CONFIG); - $client = $base_client->endpoint('auth'); - - try { - $resp = $client->call('notify.card', [ - ['chat' => $chat], - $title, - $desc, - $button, - $url, - ]); - } catch (Exception $ex) { - var_dump($ex->getMessage()); - return null; - } - - return $resp; -} - -/** - * 对单个或多个用户发送文本卡片,多个用户id使用 | 隔开 - * - * @param $username - * @param $title - * @param $desc - * @param $button - * @param $url - * - * @return mixed|null - */ -function user_card_alert ($username, $title, $desc, $button, $url) -{ - if (env('APP_ENV') == 'local') { - return true; - } - - $base_client = new \JsonRpc\Client(RPC_CONFIG); - $client = $base_client->endpoint('auth'); - - $username = explode('|', $username); - try { - $resp = $client->call('notify.card', [ - ['user' => $username], - $title, - $desc, - $button, - $url, - ]); - } catch (Exception $ex) { - var_dump($ex->getMessage()); - return null; - } - - return $resp; -} - -/** - * 对单个或多个用户发送文本卡片,多个用户id使用 | 隔开 - * - * @param $username - * @param $appid //小程序的appid - * @param $title //标题 - * @param $page //小程序页面路径 - * @param $desc //描述 - * @param $items //消息内容键值对,最多允许10个item - * @param $emphasisFirstItem //是否放大第一个content_item - * - * @return mixed|null - */ -function user_mp_alert ($username, $appid, $title, $page = null, $desc = null, $items = null, $emphasisFirstItem = null) -{ - if (env('APP_ENV') == 'local') { - return true; - } - - $base_client = new \JsonRpc\Client(RPC_CONFIG); - $client = $base_client->endpoint('auth'); - - $username = explode('|', $username); - try { - $resp = $client->call('notify.mp', [ - ['user' => $username], - $appid, - $title, - $page, - $desc, - $items, - $emphasisFirstItem - ]); - } catch (Exception $ex) { - var_dump($ex->getMessage()); - return null; - } - - return $resp; -} - -/** - * 对单个或多个用户发送文本卡片,多个用户id使用 | 隔开 - * - * @param $username - * @param $appid //小程序的appid - * @param $title //标题 - * @param $page //小程序页面路径 - * @param $desc //描述 - * @param $items //消息内容键值对,最多允许10个item - * @param $emphasisFirstItem //是否放大第一个content_item - * - * @return mixed|null - */ -function tag_mp_alert ($tag, $appid, $title, $page = null, $desc = null, $items = null, $emphasisFirstItem = null) -{ - if (env('APP_ENV') == 'local') { - return true; - } - - $base_client = new \JsonRpc\Client(RPC_CONFIG); - $client = $base_client->endpoint('auth'); - - try { - $resp = $client->call('notify.mp', [ - ['tag' => $tag], - $appid, - $title, - $page, - $desc, - $items, - $emphasisFirstItem - ]); - } catch (Exception $ex) { - var_dump($ex->getMessage()); - return null; - } - - return $resp; } \ No newline at end of file diff --git a/tests/text.php b/tests/text.php index 7485947..9eb5f02 100644 --- a/tests/text.php +++ b/tests/text.php @@ -5,11 +5,20 @@ ini_set('display_errors', 'stderr'); require_once dirname(__DIR__).'/vendor/autoload.php'; -$ret = chat_card_alert('szjesh','dfdfdf'); -var_dump($ret); -if( $ret['err_code'] == '0' ){ - echo "发送成功\n"; -}else{ - echo "发送失败,原因{$ret['err_msg']}\n"; -} +//$ret = chat_card_alert('szjesh','dfdfdf'); +//var_dump($ret); +//if( $ret['err_code'] == '0' ){ +// echo "发送成功\n"; +//}else{ +// echo "发送失败,原因{$ret['err_msg']}\n"; +//} + + +$content = [ + 'msgtype' => 'text', + 'text' => [ + 'content' => '!', + ] +]; +bot_notify('inventory',$content); \ No newline at end of file