[fix] 不用orm验证方式,验证不了唯一

This commit is contained in:
醉挽清风 2023-03-23 11:35:46 +08:00
parent 28621780ca
commit 04b2825112
5 changed files with 633 additions and 53 deletions

View File

@ -28,7 +28,6 @@
"workerman/webman-framework": "^1.4.7",
"monolog/monolog": "^2.0",
"webman/think-orm": "^1.0",
"topthink/think-validate": "^2.0",
"vlucas/phpdotenv": "^5.4",
"psr/container": "^1.1.1",
"webman/think-cache": "^1.0",
@ -40,7 +39,10 @@
"qiniu/php-sdk": "7.4",
"qcloud/cos-sdk-v5": "^2.6",
"dragonmantank/cron-expression": "^3.3",
"tinywan/storage": "^0.3.4"
"tinywan/storage": "^0.3.4",
"webman/log": "^1.1",
"taoser/webman-validate": "^1.7",
"webman-tech/log-reader": "^2.0"
},
"suggest": {
"ext-event": "For better performance. "

678
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "64507c05c6f5e4cf1e21794755059863",
"content-hash": "5d367c2c416e091ab4eec73aeb18cf08",
"packages": [
{
"name": "aliyuncs/oss-sdk-php",
@ -973,6 +973,55 @@
],
"time": "2021-10-07T12:57:01+00:00"
},
{
"name": "kriss/log-reader",
"version": "v1.3.3",
"source": {
"type": "git",
"url": "https://github.com/krissss/php-log-reader.git",
"reference": "9878b63610cd28966e1bd0daafb91c97b7337f3e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/krissss/php-log-reader/zipball/9878b63610cd28966e1bd0daafb91c97b7337f3e",
"reference": "9878b63610cd28966e1bd0daafb91c97b7337f3e",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"nesbot/carbon": "^1.0|^2.0",
"php": ">7.0",
"symfony/finder": "^3.0|^4.0|^5.0|^6.0",
"symfony/http-foundation": "^3.0|^4.0|^5.0|^6.0"
},
"type": "library",
"autoload": {
"psr-4": {
"Kriss\\LogReader\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "kriss",
"email": "462679766@qq.com"
}
],
"description": "Log Reader For PHP",
"support": {
"issues": "https://github.com/krissss/php-log-reader/issues",
"source": "https://github.com/krissss/php-log-reader/tree/v1.3.3"
},
"time": "2023-03-09T09:54:55+00:00"
},
{
"name": "maennchen/zipstream-php",
"version": "2.1.0",
@ -1347,6 +1396,114 @@
],
"time": "2020-11-14T18:14:52+00:00"
},
{
"name": "nesbot/carbon",
"version": "2.66.0",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
"reference": "496712849902241f04902033b0441b269effe001"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/496712849902241f04902033b0441b269effe001",
"reference": "496712849902241f04902033b0441b269effe001",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"ext-json": "*",
"php": "^7.1.8 || ^8.0",
"symfony/polyfill-mbstring": "^1.0",
"symfony/polyfill-php80": "^1.16",
"symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0"
},
"require-dev": {
"doctrine/dbal": "^2.0 || ^3.1.4",
"doctrine/orm": "^2.7",
"friendsofphp/php-cs-fixer": "^3.0",
"kylekatarnls/multi-tester": "^2.0",
"ondrejmirtes/better-reflection": "*",
"phpmd/phpmd": "^2.9",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.99 || ^1.7.14",
"phpunit/php-file-iterator": "^2.0.5 || ^3.0.6",
"phpunit/phpunit": "^7.5.20 || ^8.5.26 || ^9.5.20",
"squizlabs/php_codesniffer": "^3.4"
},
"bin": [
"bin/carbon"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-3.x": "3.x-dev",
"dev-master": "2.x-dev"
},
"laravel": {
"providers": [
"Carbon\\Laravel\\ServiceProvider"
]
},
"phpstan": {
"includes": [
"extension.neon"
]
}
},
"autoload": {
"psr-4": {
"Carbon\\": "src/Carbon/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Brian Nesbitt",
"email": "brian@nesbot.com",
"homepage": "https://markido.com"
},
{
"name": "kylekatarnls",
"homepage": "https://github.com/kylekatarnls"
}
],
"description": "An API extension for DateTime that supports 281 different languages.",
"homepage": "https://carbon.nesbot.com",
"keywords": [
"date",
"datetime",
"time"
],
"support": {
"docs": "https://carbon.nesbot.com/docs",
"issues": "https://github.com/briannesbitt/Carbon/issues",
"source": "https://github.com/briannesbitt/Carbon"
},
"funding": [
{
"url": "https://github.com/sponsors/kylekatarnls",
"type": "github"
},
{
"url": "https://opencollective.com/Carbon#sponsor",
"type": "opencollective"
},
{
"url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme",
"type": "tidelift"
}
],
"time": "2023-01-29T18:53:47+00:00"
},
{
"name": "nikic/fast-route",
"version": "v1.3.0",
@ -2423,6 +2580,157 @@
],
"time": "2022-01-02T09:53:40+00:00"
},
{
"name": "symfony/finder",
"version": "v5.4.21",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
"reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/078e9a5e1871fcfe6a5ce421b539344c21afef19",
"reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.2.5",
"symfony/deprecation-contracts": "^2.1|^3",
"symfony/polyfill-php80": "^1.16"
},
"type": "library",
"autoload": {
"psr-4": {
"Symfony\\Component\\Finder\\": ""
},
"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": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/finder/tree/v5.4.21"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2023-02-16T09:33:00+00:00"
},
{
"name": "symfony/http-foundation",
"version": "v5.4.21",
"source": {
"type": "git",
"url": "https://github.com/symfony/http-foundation.git",
"reference": "3bb6ee5582366c4176d5ce596b380117c8200bbf"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/3bb6ee5582366c4176d5ce596b380117c8200bbf",
"reference": "3bb6ee5582366c4176d5ce596b380117c8200bbf",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.2.5",
"symfony/deprecation-contracts": "^2.1|^3",
"symfony/polyfill-mbstring": "~1.1",
"symfony/polyfill-php80": "^1.16"
},
"require-dev": {
"predis/predis": "~1.0",
"symfony/cache": "^4.4|^5.0|^6.0",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/expression-language": "^4.4|^5.0|^6.0",
"symfony/http-kernel": "^5.4.12|^6.0.12|^6.1.4",
"symfony/mime": "^4.4|^5.0|^6.0",
"symfony/rate-limiter": "^5.2|^6.0"
},
"suggest": {
"symfony/mime": "To use the file extension guesser"
},
"type": "library",
"autoload": {
"psr-4": {
"Symfony\\Component\\HttpFoundation\\": ""
},
"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": "Defines an object-oriented layer for the HTTP specification",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/http-foundation/tree/v5.4.21"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2023-02-17T21:35:35+00:00"
},
{
"name": "symfony/polyfill-ctype",
"version": "v1.27.0",
@ -3132,6 +3440,245 @@
],
"time": "2022-12-12T15:54:21+00:00"
},
{
"name": "symfony/translation",
"version": "v5.4.21",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
"reference": "6996affeea65705086939894b77110e9a7f80874"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/6996affeea65705086939894b77110e9a7f80874",
"reference": "6996affeea65705086939894b77110e9a7f80874",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.2.5",
"symfony/deprecation-contracts": "^2.1|^3",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php80": "^1.16",
"symfony/translation-contracts": "^2.3"
},
"conflict": {
"symfony/config": "<4.4",
"symfony/console": "<5.3",
"symfony/dependency-injection": "<5.0",
"symfony/http-kernel": "<5.0",
"symfony/twig-bundle": "<5.0",
"symfony/yaml": "<4.4"
},
"provide": {
"symfony/translation-implementation": "2.3"
},
"require-dev": {
"psr/log": "^1|^2|^3",
"symfony/config": "^4.4|^5.0|^6.0",
"symfony/console": "^5.4|^6.0",
"symfony/dependency-injection": "^5.0|^6.0",
"symfony/finder": "^4.4|^5.0|^6.0",
"symfony/http-client-contracts": "^1.1|^2.0|^3.0",
"symfony/http-kernel": "^5.0|^6.0",
"symfony/intl": "^4.4|^5.0|^6.0",
"symfony/polyfill-intl-icu": "^1.21",
"symfony/service-contracts": "^1.1.2|^2|^3",
"symfony/yaml": "^4.4|^5.0|^6.0"
},
"suggest": {
"psr/log-implementation": "To use logging capability in translator",
"symfony/config": "",
"symfony/yaml": ""
},
"type": "library",
"autoload": {
"files": [
"Resources/functions.php"
],
"psr-4": {
"Symfony\\Component\\Translation\\": ""
},
"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": "Provides tools to internationalize your application",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/translation/tree/v5.4.21"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2023-02-21T19:46:44+00:00"
},
{
"name": "symfony/translation-contracts",
"version": "v2.5.2",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation-contracts.git",
"reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation-contracts/zipball/136b19dd05cdf0709db6537d058bcab6dd6e2dbe",
"reference": "136b19dd05cdf0709db6537d058bcab6dd6e2dbe",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.2.5"
},
"suggest": {
"symfony/translation-implementation": ""
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "2.5-dev"
},
"thanks": {
"name": "symfony/contracts",
"url": "https://github.com/symfony/contracts"
}
},
"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"
],
"support": {
"source": "https://github.com/symfony/translation-contracts/tree/v2.5.2"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2022-06-27T16:58:25+00:00"
},
{
"name": "taoser/webman-validate",
"version": "v1.7.2",
"source": {
"type": "git",
"url": "https://github.com/taoser/webman-validate.git",
"reference": "f6ceda3700cabf3e48966b845fd980faa292127e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/taoser/webman-validate/zipball/f6ceda3700cabf3e48966b845fd980faa292127e",
"reference": "f6ceda3700cabf3e48966b845fd980faa292127e",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.2.0",
"symfony/translation": "^5.4|^6.0",
"topthink/think-container": "~2.0",
"topthink/think-helper": "^3.1"
},
"type": "library",
"autoload": {
"files": [
"src/helper.php"
],
"psr-4": {
"taoser\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"mit"
],
"authors": [
{
"name": "taoser",
"email": "changlin_zhao@qq.com"
}
],
"description": "The webman Validate Package",
"support": {
"issues": "https://github.com/taoser/webman-validate/issues",
"source": "https://github.com/taoser/webman-validate/tree/v1.7.2"
},
"time": "2022-08-27T08:29:08+00:00"
},
{
"name": "tencentcloud/tencentcloud-sdk-php",
"version": "3.0.807",
@ -3451,54 +3998,6 @@
},
"time": "2022-12-15T02:52:53+00:00"
},
{
"name": "topthink/think-validate",
"version": "v2.0.2",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-validate.git",
"reference": "857f9bffc1a09a41e3969a19726cb04315848f0f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-validate/zipball/857f9bffc1a09a41e3969a19726cb04315848f0f",
"reference": "857f9bffc1a09a41e3969a19726cb04315848f0f",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.1.0",
"topthink/think-container": "~2.0"
},
"type": "library",
"autoload": {
"files": [],
"psr-4": {
"think\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "liu21st",
"email": "liu21st@gmail.com"
}
],
"description": "think validate",
"support": {
"issues": "https://github.com/top-think/think-validate/issues",
"source": "https://github.com/top-think/think-validate/tree/2.0"
},
"time": "2019-05-15T06:58:23+00:00"
},
{
"name": "vlucas/phpdotenv",
"version": "v5.4.1",
@ -3585,6 +4084,50 @@
],
"time": "2021-12-12T23:22:04+00:00"
},
{
"name": "webman-tech/log-reader",
"version": "v2.0.0",
"source": {
"type": "git",
"url": "https://github.com/webman-tech/log-reader.git",
"reference": "f802e5fb77fad1eddddb87b946ec3b2fc842bd3f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webman-tech/log-reader/zipball/f802e5fb77fad1eddddb87b946ec3b2fc842bd3f",
"reference": "f802e5fb77fad1eddddb87b946ec3b2fc842bd3f",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"kriss/log-reader": "^1.3",
"php": ">=7.2"
},
"require-dev": {
"workerman/webman-framework": "^1.3"
},
"type": "library",
"autoload": {
"psr-4": {
"WebmanTech\\LogReader\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Webman plugin webman-tech/log-reader",
"support": {
"issues": "https://github.com/webman-tech/log-reader/issues",
"source": "https://github.com/webman-tech/log-reader/tree/v2.0.0"
},
"time": "2022-09-18T10:58:39+00:00"
},
{
"name": "webman/console",
"version": "v1.2.18",
@ -3644,6 +4187,43 @@
},
"time": "2022-11-26T15:15:21+00:00"
},
{
"name": "webman/log",
"version": "v1.1.5",
"source": {
"type": "git",
"url": "https://github.com/webman-php/log.git",
"reference": "28f722778ef722a78c9be2565d537eea7805cc01"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webman-php/log/zipball/28f722778ef722a78c9be2565d537eea7805cc01",
"reference": "28f722778ef722a78c9be2565d537eea7805cc01",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"type": "library",
"autoload": {
"psr-4": {
"Webman\\Log\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Webman plugin webman/log",
"support": {
"issues": "https://github.com/webman-php/log/issues",
"source": "https://github.com/webman-php/log/tree/v1.1.5"
},
"time": "2022-12-28T08:12:41+00:00"
},
{
"name": "webman/think-cache",
"version": "v1.0.1",

View File

@ -1,2 +0,0 @@
<?php
echo 1231231231;