This commit is contained in:
2020-11-12 15:37:59 +08:00
parent 223a0850db
commit d88d25a271
3 changed files with 30 additions and 2 deletions
+1 -1
View File
@@ -338,7 +338,7 @@ class ' . $managerName . ' extends ActiveRecord
if (empty($data)) return ''; if (empty($data)) return '';
$string = []; $string = [];
foreach ($data as $key => $_val) { foreach ($data as $key => $_val) {
if (strpos($key, ',') !== false) { if (is_string($key) && strpos($key, ',') !== false) {
$key = '[' . $key . ']'; $key = '[' . $key . ']';
} }
if (count($_val) == 1) { if (count($_val) == 1) {
+29
View File
@@ -4,18 +4,47 @@ declare(strict_types=1);
namespace HttpServer; namespace HttpServer;
use Database\DatabasesProviders;
use HttpServer\Client\Client;
use HttpServer\Client\Curl;
use HttpServer\Client\Http2;
use HttpServer\Http\HttpHeaders; use HttpServer\Http\HttpHeaders;
use HttpServer\Http\HttpParams; use HttpServer\Http\HttpParams;
use HttpServer\Http\Request; use HttpServer\Http\Request;
use Exception; use Exception;
use HttpServer\Route\Router;
use Kafka\Producer;
use Snowflake\Abstracts\BaseGoto; use Snowflake\Abstracts\BaseGoto;
use Snowflake\Annotation\Annotation;
use Snowflake\Cache\Memcached;
use Snowflake\Cache\Redis;
use Snowflake\Error\Logger;
use Snowflake\Event;
use Snowflake\Exception\ComponentException; use Snowflake\Exception\ComponentException;
use Snowflake\Jwt\Jwt;
use Snowflake\Pool\Connection;
use Snowflake\Pool\Pool as SPool;
use Snowflake\Snowflake; use Snowflake\Snowflake;
/** /**
* Class WebController * Class WebController
* @package Snowflake\Snowflake\Web * @package Snowflake\Snowflake\Web
* @property BaseGoto $goto * @property BaseGoto $goto
* @property Annotation $annotation
* @property Event $event
* @property Router $router
* @property SPool $pool
* @property \Redis|Redis $redis
* @property Server $server
* @property DatabasesProviders $db
* @property Connection $connections
* @property Memcached $memcached
* @property Logger $logger
* @property Jwt $jwt
* @property Client $client
* @property Producer $kafka
* @property Curl $curl
* @property Http2 $http2
*/ */
class Controller extends Application class Controller extends Application
{ {
-1
View File
@@ -38,7 +38,6 @@ use Database\DatabasesProviders;
/** /**
* Class BaseApplication * Class BaseApplication
* @package Snowflake\Snowflake\Base * @package Snowflake\Snowflake\Base
* @property $json
* @property Annotation $annotation * @property Annotation $annotation
* @property Event $event * @property Event $event
* @property Router $router * @property Router $router