modified 优化细节

This commit is contained in:
zhaoxiang 2020-02-20 10:48:50 +08:00
parent d73adc353b
commit c93c07e6cd
12 changed files with 260 additions and 533 deletions

View File

@ -20,7 +20,7 @@
"php": ">=5.6.0",
"topthink/framework": "5.1.*",
"topthink/think-migration": "^2.0",
"endroid/qr-code": "^3.5"
"guzzlehttp/guzzle": "^6.5"
},
"autoload": {
"psr-4": {

735
composer.lock generated
View File

@ -4,296 +4,20 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "35bfbefd676f6576f812c45a2b80b8ca",
"content-hash": "7fa2f3e78fff7142ed6a489a3fc6722f",
"packages": [
{
"name": "bacon/bacon-qr-code",
"version": "2.0.0",
"name": "guzzlehttp/guzzle",
"version": "6.5.2",
"source": {
"type": "git",
"url": "https://github.com/Bacon/BaconQrCode.git",
"reference": "eaac909da3ccc32b748a65b127acd8918f58d9b0"
"url": "https://github.com/guzzle/guzzle.git",
"reference": "43ece0e75098b7ecd8d13918293029e555a50f82"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Bacon/BaconQrCode/zipball/eaac909da3ccc32b748a65b127acd8918f58d9b0",
"reference": "eaac909da3ccc32b748a65b127acd8918f58d9b0",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"dasprid/enum": "^1.0",
"ext-iconv": "*",
"php": "^7.1"
},
"require-dev": {
"phly/keep-a-changelog": "^1.4",
"phpunit/phpunit": "^6.4",
"squizlabs/php_codesniffer": "^3.1"
},
"suggest": {
"ext-imagick": "to generate QR code images"
},
"type": "library",
"autoload": {
"psr-4": {
"BaconQrCode\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-2-Clause"
],
"authors": [
{
"name": "Ben Scholzen 'DASPRiD'",
"email": "mail@dasprids.de",
"homepage": "http://www.dasprids.de",
"role": "Developer"
}
],
"description": "BaconQrCode is a QR code generator for PHP.",
"homepage": "https://github.com/Bacon/BaconQrCode",
"time": "2018-04-25T17:53:56+00:00"
},
{
"name": "dasprid/enum",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://github.com/DASPRiD/Enum.git",
"reference": "631ef6e638e9494b0310837fa531bedd908fc22b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/DASPRiD/Enum/zipball/631ef6e638e9494b0310837fa531bedd908fc22b",
"reference": "631ef6e638e9494b0310837fa531bedd908fc22b",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require-dev": {
"phpunit/phpunit": "^6.4",
"squizlabs/php_codesniffer": "^3.1"
},
"type": "library",
"autoload": {
"psr-4": {
"DASPRiD\\Enum\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-2-Clause"
],
"authors": [
{
"name": "Ben Scholzen 'DASPRiD'",
"email": "mail@dasprids.de",
"homepage": "https://dasprids.de/"
}
],
"description": "PHP 7.1 enum implementation",
"keywords": [
"enum",
"map"
],
"time": "2017-10-25T22:45:27+00:00"
},
{
"name": "endroid/installer",
"version": "1.1.3",
"source": {
"type": "git",
"url": "https://github.com/endroid/installer.git",
"reference": "0d56857e0687837bead9933048a9cc8d4ce85fd7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/endroid/installer/zipball/0d56857e0687837bead9933048a9cc8d4ce85fd7",
"reference": "0d56857e0687837bead9933048a9cc8d4ce85fd7",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"composer-plugin-api": "^1.1",
"php": ">=7.1"
},
"type": "composer-plugin",
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
},
"class": "Endroid\\Installer\\Installer"
},
"autoload": {
"psr-4": {
"Endroid\\Installer\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Jeroen van den Enden",
"email": "info@endroid.nl"
}
],
"time": "2019-03-30T20:54:26+00:00"
},
{
"name": "endroid/qr-code",
"version": "3.5.8",
"source": {
"type": "git",
"url": "https://github.com/endroid/qr-code.git",
"reference": "7823badf59402f31e8f9b33ce1e3161a1ba89866"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/endroid/qr-code/zipball/7823badf59402f31e8f9b33ce1e3161a1ba89866",
"reference": "7823badf59402f31e8f9b33ce1e3161a1ba89866",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"bacon/bacon-qr-code": "^2.0",
"endroid/installer": "^1.0.3",
"ext-gd": "*",
"khanamiryan/qrcode-detector-decoder": "^1.0.2",
"myclabs/php-enum": "^1.5",
"php": ">=7.1",
"symfony/options-resolver": "^2.7|^3.0|^4.0",
"symfony/property-access": "^2.7|^3.0|^4.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7|^6.0"
},
"suggest": {
"symfony/http-foundation": "Install if you want to use QrCodeResponse"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.x-dev"
}
},
"autoload": {
"psr-4": {
"Endroid\\QrCode\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Jeroen van den Enden",
"email": "info@endroid.nl"
}
],
"description": "Endroid QR Code",
"homepage": "https://github.com/endroid/qr-code",
"keywords": [
"bundle",
"code",
"endroid",
"php",
"qr",
"qrcode"
],
"time": "2019-04-03T21:14:10+00:00"
},
{
"name": "khanamiryan/qrcode-detector-decoder",
"version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/khanamiryan/php-qrcode-detector-decoder.git",
"reference": "a75482d3bc804e3f6702332bfda6cccbb0dfaa76"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/zipball/a75482d3bc804e3f6702332bfda6cccbb0dfaa76",
"reference": "a75482d3bc804e3f6702332bfda6cccbb0dfaa76",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": "^5.6|^7.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7"
},
"type": "library",
"autoload": {
"psr-4": {
"Zxing\\": "lib/"
},
"files": [
"lib/Common/customFunctions.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Ashot Khanamiryan",
"email": "a.khanamiryan@gmail.com",
"homepage": "https://github.com/khanamiryan",
"role": "Developer"
}
],
"description": "QR code decoder / reader",
"homepage": "https://github.com/khanamiryan/php-qrcode-detector-decoder/",
"keywords": [
"barcode",
"qr",
"zxing"
],
"time": "2018-04-26T11:41:33+00:00"
},
{
"name": "myclabs/php-enum",
"version": "1.7.1",
"source": {
"type": "git",
"url": "https://github.com/myclabs/php-enum.git",
"reference": "f46847626b8739de22e4ebc6b56010f317d4448d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/myclabs/php-enum/zipball/f46847626b8739de22e4ebc6b56010f317d4448d",
"reference": "f46847626b8739de22e4ebc6b56010f317d4448d",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/43ece0e75098b7ecd8d13918293029e555a50f82",
"reference": "43ece0e75098b7ecd8d13918293029e555a50f82",
"shasum": "",
"mirrors": [
{
@ -304,197 +28,31 @@
},
"require": {
"ext-json": "*",
"php": ">=7.1"
"guzzlehttp/promises": "^1.0",
"guzzlehttp/psr7": "^1.6.1",
"php": ">=5.5"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35|^5.7|^6.0",
"squizlabs/php_codesniffer": "1.*"
},
"type": "library",
"autoload": {
"psr-4": {
"MyCLabs\\Enum\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP Enum contributors",
"homepage": "https://github.com/myclabs/php-enum/graphs/contributors"
}
],
"description": "PHP Enum implementation",
"homepage": "http://github.com/myclabs/php-enum",
"keywords": [
"enum"
],
"time": "2019-05-05T10:12:03+00:00"
},
{
"name": "symfony/inflector",
"version": "v4.3.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/inflector.git",
"reference": "889dc28cb6350ddb302fe9b8c796e4e6eb836856"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/inflector/zipball/889dc28cb6350ddb302fe9b8c796e4e6eb836856",
"reference": "889dc28cb6350ddb302fe9b8c796e4e6eb836856",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": "^7.1.3",
"symfony/polyfill-ctype": "~1.8"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "4.3-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Component\\Inflector\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Bernhard Schussek",
"email": "bschussek@gmail.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Inflector Component",
"homepage": "https://symfony.com",
"keywords": [
"inflection",
"pluralize",
"singularize",
"string",
"symfony",
"words"
],
"time": "2019-05-30T09:28:08+00:00"
},
{
"name": "symfony/options-resolver",
"version": "v4.3.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/options-resolver.git",
"reference": "40762ead607c8f792ee4516881369ffa553fee6f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/options-resolver/zipball/40762ead607c8f792ee4516881369ffa553fee6f",
"reference": "40762ead607c8f792ee4516881369ffa553fee6f",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": "^7.1.3"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "4.3-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Component\\OptionsResolver\\": ""
},
"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": "Symfony OptionsResolver Component",
"homepage": "https://symfony.com",
"keywords": [
"config",
"configuration",
"options"
],
"time": "2019-06-13T11:01:17+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://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=5.3.3"
"ext-curl": "*",
"phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
"psr/log": "^1.1"
},
"suggest": {
"ext-ctype": "For best performance"
"ext-intl": "Required for Internationalized Domain Name (IDN) support",
"psr/log": "Required for using the Log middleware"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.11-dev"
"dev-master": "6.5-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Polyfill\\Ctype\\": ""
"GuzzleHttp\\": "src/"
},
"files": [
"bootstrap.php"
"src/functions_include.php"
]
},
"notification-url": "https://packagist.org/downloads/",
@ -503,36 +61,36 @@
],
"authors": [
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
},
{
"name": "Gert de Pagter",
"email": "BackEndTea@gmail.com"
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
}
],
"description": "Symfony polyfill for ctype functions",
"homepage": "https://symfony.com",
"description": "Guzzle is a PHP HTTP client library",
"homepage": "http://guzzlephp.org/",
"keywords": [
"compatibility",
"ctype",
"polyfill",
"portable"
"client",
"curl",
"framework",
"http",
"http client",
"rest",
"web service"
],
"time": "2019-02-06T07:57:58+00:00"
"time": "2019-12-23T11:57:10+00:00"
},
{
"name": "symfony/property-access",
"version": "v4.3.2",
"name": "guzzlehttp/promises",
"version": "v1.3.1",
"source": {
"type": "git",
"url": "https://github.com/symfony/property-access.git",
"reference": "18ea48862a39e364927e71b9e4942af3c1a1cb8c"
"url": "https://github.com/guzzle/promises.git",
"reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/property-access/zipball/18ea48862a39e364927e71b9e4942af3c1a1cb8c",
"reference": "18ea48862a39e364927e71b9e4942af3c1a1cb8c",
"url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646",
"reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646",
"shasum": "",
"mirrors": [
{
@ -542,27 +100,23 @@
]
},
"require": {
"php": "^7.1.3",
"symfony/inflector": "~3.4|~4.0"
"php": ">=5.5.0"
},
"require-dev": {
"symfony/cache": "~3.4|~4.0"
},
"suggest": {
"psr/cache-implementation": "To cache access methods."
"phpunit/phpunit": "^4.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "4.3-dev"
"dev-master": "1.4-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Component\\PropertyAccess\\": ""
"GuzzleHttp\\Promise\\": "src/"
},
"exclude-from-classmap": [
"/Tests/"
"files": [
"src/functions_include.php"
]
},
"notification-url": "https://packagist.org/downloads/",
@ -571,28 +125,195 @@
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
}
],
"description": "Symfony PropertyAccess Component",
"homepage": "https://symfony.com",
"description": "Guzzle promises library",
"keywords": [
"access",
"array",
"extraction",
"index",
"injection",
"object",
"property",
"property path",
"reflection"
"promise"
],
"time": "2019-06-06T10:05:02+00:00"
"time": "2016-12-20T10:07:11+00:00"
},
{
"name": "guzzlehttp/psr7",
"version": "1.6.1",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
"reference": "239400de7a173fe9901b9ac7c06497751f00727a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/239400de7a173fe9901b9ac7c06497751f00727a",
"reference": "239400de7a173fe9901b9ac7c06497751f00727a",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=5.4.0",
"psr/http-message": "~1.0",
"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.6-dev"
}
},
"autoload": {
"psr-4": {
"GuzzleHttp\\Psr7\\": "src/"
},
"files": [
"src/functions_include.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
},
{
"name": "Tobias Schultze",
"homepage": "https://github.com/Tobion"
}
],
"description": "PSR-7 message implementation that also provides common utility methods",
"keywords": [
"http",
"message",
"psr-7",
"request",
"response",
"stream",
"uri",
"url"
],
"time": "2019-07-01T23:21:34+00:00"
},
{
"name": "psr/http-message",
"version": "1.0.1",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-message.git",
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=5.3.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Http\\Message\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "http://www.php-fig.org/"
}
],
"description": "Common interface for HTTP messages",
"homepage": "https://github.com/php-fig/http-message",
"keywords": [
"http",
"http-message",
"psr",
"psr-7",
"request",
"response"
],
"time": "2016-08-06T14:39:51+00:00"
},
{
"name": "ralouphie/getallheaders",
"version": "3.0.3",
"source": {
"type": "git",
"url": "https://github.com/ralouphie/getallheaders.git",
"reference": "120b605dfeb996808c31b6477290a714d356e822"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822",
"reference": "120b605dfeb996808c31b6477290a714d356e822",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=5.6"
},
"require-dev": {
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": "^5 || ^6.5"
},
"type": "library",
"autoload": {
"files": [
"src/getallheaders.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Ralph Khattar",
"email": "ralph.khattar@gmail.com"
}
],
"description": "A polyfill for getallheaders.",
"time": "2019-03-08T08:55:37+00:00"
},
{
"name": "topthink/framework",

View File

@ -1,6 +1,7 @@
<?php
use think\migration\Migrator;
use Phinx\Db\Adapter\MysqlAdapter;
class AdminApp extends Migrator {
@ -59,7 +60,7 @@ class AdminApp extends Migrator {
'default' => '',
'comment' => '应用名称'
])->addColumn('app_status', 'integer', [
'limit' => 2,
'limit' => MysqlAdapter::INT_TINY,
'default' => 1,
'comment' => '应用状态0表示禁用1表示启用'
])->addColumn('app_info', 'text', [

View File

@ -1,6 +1,7 @@
<?php
use think\migration\Migrator;
use Phinx\Db\Adapter\MysqlAdapter;
class AdminAppGroup extends Migrator {
@ -48,7 +49,7 @@ class AdminAppGroup extends Migrator {
'comment' => '组说明',
'null' => true
])->addColumn('status', 'integer', [
'limit' => 2,
'limit' => MysqlAdapter::INT_TINY,
'default' => 1,
'comment' => '组状态0表示禁用1表示启用'
])->addColumn('hash', 'string', [

View File

@ -1,6 +1,7 @@
<?php
use think\migration\Migrator;
use Phinx\Db\Adapter\MysqlAdapter;
class AdminAuthGroup extends Migrator {
@ -47,7 +48,7 @@ class AdminAuthGroup extends Migrator {
'comment' => '组描述',
'null' => true
])->addColumn('status', 'integer', [
'limit' => 2,
'limit' => MysqlAdapter::INT_TINY,
'default' => 1,
'comment' => '组状态为1正常为0禁用'
])->create();

View File

@ -1,6 +1,7 @@
<?php
use think\migration\Migrator;
use Phinx\Db\Adapter\MysqlAdapter;
class AdminAuthRule extends Migrator {
@ -55,7 +56,7 @@ class AdminAuthRule extends Migrator {
'signed' => false,
'comment' => '权限数值'
])->addColumn('status', 'integer', [
'limit' => 1,
'limit' => MysqlAdapter::INT_TINY,
'default' => 1,
'comment' => '状态为1正常为0禁用'
])->create();

View File

@ -1,6 +1,7 @@
<?php
use think\migration\Migrator;
use Phinx\Db\Adapter\MysqlAdapter;
class AdminFields extends Migrator {
@ -55,7 +56,7 @@ class AdminFields extends Migrator {
'default' => '',
'comment' => '权限所属组的ID'
])->addColumn('data_type', 'integer', [
'limit' => 2,
'limit' => MysqlAdapter::INT_TINY,
'default' => 0,
'comment' => '数据类型来源于DataType类库'
])->addColumn('default', 'string', [
@ -63,7 +64,7 @@ class AdminFields extends Migrator {
'default' => '',
'comment' => '默认值'
])->addColumn('is_must', 'integer', [
'limit' => 2,
'limit' => MysqlAdapter::INT_TINY,
'default' => 0,
'comment' => '是否必须 0为不必须1为必须'
])->addColumn('range', 'string', [
@ -75,7 +76,7 @@ class AdminFields extends Migrator {
'default' => '',
'comment' => '字段说明'
])->addColumn('type', 'integer', [
'limit' => 2,
'limit' => MysqlAdapter::INT_TINY,
'default' => 0,
'comment' => '字段用处0为request1为response'
])->addColumn('show_name', 'string', [

View File

@ -1,6 +1,7 @@
<?php
use think\migration\Migrator;
use Phinx\Db\Adapter\MysqlAdapter;
class AdminGroup extends Migrator {
@ -52,7 +53,7 @@ class AdminGroup extends Migrator {
'comment' => '组说明',
'null' => true
])->addColumn('status', 'integer', [
'limit' => 1,
'limit' => MysqlAdapter::INT_TINY,
'default' => 1,
'comment' => '状态为1正常为0禁用'
])->addColumn('hash', 'string', [

View File

@ -1,6 +1,7 @@
<?php
use think\migration\Migrator;
use Phinx\Db\Adapter\MysqlAdapter;
class AdminList extends Migrator {
@ -56,19 +57,15 @@ class AdminList extends Migrator {
'default' => '',
'comment' => 'api唯一标识'
])->addColumn('access_token', 'integer', [
'limit' => 2,
'limit' => MysqlAdapter::INT_TINY,
'default' => 1,
'comment' => '是否需要认证AccessToken 1需要0不需要'
])->addColumn('need_login', 'integer', [
'limit' => 2,
'default' => 1,
'comment' => '是否需要认证用户token 1需要 0不需要'
'comment' => '认证方式 1复杂认证0简易认证'
])->addColumn('status', 'integer', [
'limit' => 2,
'limit' => MysqlAdapter::INT_TINY,
'default' => 1,
'comment' => 'API状态0表示禁用1表示启用'
])->addColumn('method', 'integer', [
'limit' => 2,
'limit' => MysqlAdapter::INT_TINY,
'default' => 2,
'comment' => '请求方式0不限1Post2Get'
])->addColumn('info', 'string', [
@ -76,7 +73,7 @@ class AdminList extends Migrator {
'default' => '',
'comment' => 'api中文说明'
])->addColumn('is_test', 'integer', [
'limit' => 2,
'limit' => MysqlAdapter::INT_TINY,
'default' => 0,
'comment' => '是否是测试模式0:生产模式1测试模式'
])->addColumn('return_str', 'text', [

View File

@ -1,6 +1,7 @@
<?php
use think\migration\Migrator;
use Phinx\Db\Adapter\MysqlAdapter;
class AdminMenu extends Migrator {
@ -57,7 +58,7 @@ class AdminMenu extends Migrator {
'default' => '',
'comment' => '链接'
])->addColumn('auth', 'integer', [
'limit' => 2,
'limit' => MysqlAdapter::INT_TINY,
'default' => 0,
'comment' => '访客权限'
])->addColumn('sort', 'integer', [
@ -65,7 +66,7 @@ class AdminMenu extends Migrator {
'default' => 0,
'comment' => '排序'
])->addColumn('hide', 'integer', [
'limit' => 2,
'limit' => MysqlAdapter::INT_TINY,
'default' => 0,
'comment' => '是否显示'
])->addColumn('icon', 'string', [
@ -73,7 +74,7 @@ class AdminMenu extends Migrator {
'default' => '',
'comment' => '菜单图标'
])->addColumn('level', 'integer', [
'limit' => 2,
'limit' => MysqlAdapter::INT_TINY,
'default' => 0,
'comment' => '菜单认证等级'
])->create();

View File

@ -1,6 +1,7 @@
<?php
use think\migration\Migrator;
use Phinx\Db\Adapter\MysqlAdapter;
class AdminUser extends Migrator {
@ -61,8 +62,8 @@ class AdminUser extends Migrator {
'limit' => 11,
'default' => 0,
'comment' => '注册时间'
])->addColumn('create_ip', 'biginteger', [
'limit' => 11,
])->addColumn('create_ip', 'integer', [
'limit' => MysqlAdapter::INT_BIG,
'default' => 0,
'comment' => '注册IP'
])->addColumn('update_time', 'integer', [
@ -70,7 +71,7 @@ class AdminUser extends Migrator {
'default' => 0,
'comment' => '更新时间'
])->addColumn('status', 'integer', [
'limit' => 1,
'limit' => MysqlAdapter::INT_TINY,
'default' => 0,
'comment' => '账号状态 0封号 1正常'
])->addColumn('openid', 'string', [

View File

@ -1,6 +1,7 @@
<?php
use think\migration\Migrator;
use Phinx\Db\Adapter\MysqlAdapter;
class AdminUserData extends Migrator {
@ -46,8 +47,8 @@ class AdminUserData extends Migrator {
'limit' => 11,
'default' => 0,
'comment' => '账号登录次数'
])->addColumn('last_login_ip', 'biginteger', [
'limit' => 11,
])->addColumn('last_login_ip', 'integer', [
'limit' => MysqlAdapter::INT_BIG,
'default' => 0,
'comment' => '最后登录IP'
])->addColumn('last_login_time', 'integer', [