Anyon преди 4 години
родител
ревизия
1b2db3a131
променени са 5 файла, в които са добавени 17 реда и са изтрити 14 реда
  1. 3 1
      .gitignore
  2. 4 4
      composer.lock
  3. 4 4
      vendor/composer/installed.json
  4. 1 1
      vendor/services.php
  5. 5 4
      vendor/zoujingli/think-library/src/helper/ValidateHelper.php

+ 3 - 1
.gitignore

@@ -1,4 +1,6 @@
 .env
+.git
+.svn
 .idea
 .vscode
 *.log
@@ -7,7 +9,7 @@
 /nbproject
 /composer.lock
 /public/upload
-/public/static/theme/css/node_modules/
+/public/static/theme/css/node_modules
 /public/static/theme/css/package-lock.json
 /public/static/theme/css/console.custom.css
 /public/static/theme/css/console.custom.css.map

+ 4 - 4
composer.lock

@@ -929,12 +929,12 @@
             "source": {
                 "type": "git",
                 "url": "https://github.com/zoujingli/ThinkLibrary.git",
-                "reference": "e03639f80bccd83c9ab5bb1f1001ea1d62d85afa"
+                "reference": "5cadd93e2f12dcb645b6a63652da5b37d220274f"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/e03639f80bccd83c9ab5bb1f1001ea1d62d85afa",
-                "reference": "e03639f80bccd83c9ab5bb1f1001ea1d62d85afa",
+                "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/5cadd93e2f12dcb645b6a63652da5b37d220274f",
+                "reference": "5cadd93e2f12dcb645b6a63652da5b37d220274f",
                 "shasum": "",
                 "mirrors": [
                     {
@@ -978,7 +978,7 @@
             ],
             "description": "ThinkPHP v6.0 Development Library",
             "homepage": "http://framework.thinkadmin.top",
-            "time": "2020-07-22T06:32:55+00:00"
+            "time": "2020-07-28T07:55:11+00:00"
         },
         {
             "name": "zoujingli/wechat-developer",

+ 4 - 4
vendor/composer/installed.json

@@ -955,12 +955,12 @@
         "source": {
             "type": "git",
             "url": "https://github.com/zoujingli/ThinkLibrary.git",
-            "reference": "e03639f80bccd83c9ab5bb1f1001ea1d62d85afa"
+            "reference": "5cadd93e2f12dcb645b6a63652da5b37d220274f"
         },
         "dist": {
             "type": "zip",
-            "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/e03639f80bccd83c9ab5bb1f1001ea1d62d85afa",
-            "reference": "e03639f80bccd83c9ab5bb1f1001ea1d62d85afa",
+            "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/5cadd93e2f12dcb645b6a63652da5b37d220274f",
+            "reference": "5cadd93e2f12dcb645b6a63652da5b37d220274f",
             "shasum": "",
             "mirrors": [
                 {
@@ -976,7 +976,7 @@
             "ext-json": "*",
             "topthink/framework": "^6.0"
         },
-        "time": "2020-07-22T06:32:55+00:00",
+        "time": "2020-07-28T07:55:11+00:00",
         "type": "library",
         "extra": {
             "think": {

+ 1 - 1
vendor/services.php

@@ -1,5 +1,5 @@
 <?php 
-// This file is automatically generated at:2020-07-27 09:27:37
+// This file is automatically generated at:2020-07-29 09:57:16
 declare (strict_types = 1);
 return array (
   0 => 'think\\app\\Service',

+ 5 - 4
vendor/zoujingli/think-library/src/helper/ValidateHelper.php

@@ -30,11 +30,12 @@ class ValidateHelper extends Helper
      * @param array $rules 验证规则( 验证信息数组 )
      * @param string $type 输入方式 ( post. 或 get. )
      * @return array
-     *  name.require => message
-     *  age.max:100 => message
-     *  name.between:1,120 => message
-     *  name.value => value
+     *  age.max:100 => message // 最大值限定
+     *  name.require => message // 必填内容
+     *  name.between:1,120 => message // 范围限定
+     *  name.value => value // 固定字段数值内容
      *  name.default => 100 // 获取并设置默认值
+     *  更多规则参照 ThinkPHP 官方的验证类
      */
     public function init(array $rules, $type = '')
     {