songxingwei há 4 anos atrás
pai
commit
32209249c3
100 ficheiros alterados com 1 adições e 135 exclusões
  1. 0 0
      .DS_Store
  2. 0 0
      README.md
  3. 0 0
      app/.DS_Store
  4. 0 0
      app/admin/controller/CountyMenu.php
  5. 0 77
      app/admin/controller/api/Update.php
  6. 0 57
      app/admin/route/demo.php
  7. 0 0
      app/admin/view/county_menu/form.html
  8. 0 0
      app/admin/view/county_menu/index.html
  9. 0 0
      app/admin/view/school/form.html
  10. 0 0
      app/admin/view/school/index.html
  11. 0 0
      app/admin/view/school/index_search.html
  12. 0 0
      app/admin/view/school/info.html
  13. 0 0
      app/common.php
  14. 0 0
      app/county/controller/School.php
  15. 0 0
      app/county/view/main.html
  16. 0 0
      app/county/view/school/form.html
  17. 0 0
      app/county/view/school/index.html
  18. 0 0
      app/county/view/school/index_search.html
  19. 0 0
      app/test/controller/Test.php
  20. 0 0
      config/apidoc.php
  21. 1 1
      config/database.php
  22. 0 0
      public/api.php
  23. 0 0
      public/test.php
  24. 0 0
      vendor/.DS_Store
  25. 0 0
      vendor/composer/tmp-36806ac8df6bb07e193104258bfef5a0
  26. 0 0
      vendor/composer/tmp-3a09888f26526ea8a171666943791d44
  27. 0 0
      vendor/composer/tmp-a79f35280da790c974b53101ad8536b6
  28. 0 0
      vendor/composer/tmp-ad8a77f41b1f8240e351ed15e0ae991c
  29. 0 0
      vendor/composer/tmp-dc792d0edd9477ce403492e4142fd291
  30. 0 0
      vendor/composer/tmp-e312418c8d03a44c9f15c2080bb26095
  31. 0 0
      vendor/composer/tmp-edda2f91130627eeccf14aaaa8092539
  32. 0 0
      vendor/doctrine/annotations/CHANGELOG.md
  33. 0 0
      vendor/doctrine/annotations/LICENSE
  34. 0 0
      vendor/doctrine/annotations/README.md
  35. 0 0
      vendor/doctrine/annotations/composer.json
  36. 0 0
      vendor/doctrine/annotations/docs/en/annotations.rst
  37. 0 0
      vendor/doctrine/annotations/docs/en/custom.rst
  38. 0 0
      vendor/doctrine/annotations/docs/en/index.rst
  39. 0 0
      vendor/doctrine/annotations/docs/en/sidebar.rst
  40. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation.php
  41. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attribute.php
  42. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attributes.php
  43. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Enum.php
  44. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/IgnoreAnnotation.php
  45. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/NamedArgumentConstructor.php
  46. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Required.php
  47. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Target.php
  48. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php
  49. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php
  50. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php
  51. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php
  52. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php
  53. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php
  54. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/FileCacheReader.php
  55. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/ImplicitlyIgnoredAnnotationNames.php
  56. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php
  57. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/NamedArgumentConstructorAnnotation.php
  58. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PhpParser.php
  59. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Reader.php
  60. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php
  61. 0 0
      vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/TokenParser.php
  62. 0 0
      vendor/doctrine/lexer/LICENSE
  63. 0 0
      vendor/doctrine/lexer/README.md
  64. 0 0
      vendor/doctrine/lexer/composer.json
  65. 0 0
      vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php
  66. 0 0
      vendor/hg/apidoc/.github/workflows/mirror.yml
  67. 0 0
      vendor/hg/apidoc/.gitignore
  68. 0 0
      vendor/hg/apidoc/LICENSE
  69. 0 0
      vendor/hg/apidoc/README.md
  70. 0 0
      vendor/hg/apidoc/composer.json
  71. 0 0
      vendor/hg/apidoc/src/Auth.php
  72. 0 0
      vendor/hg/apidoc/src/Controller.php
  73. 0 0
      vendor/hg/apidoc/src/CreateCrud.php
  74. 0 0
      vendor/hg/apidoc/src/ParseAnnotation.php
  75. 0 0
      vendor/hg/apidoc/src/ParseMarkdown.php
  76. 0 0
      vendor/hg/apidoc/src/ParseModel.php
  77. 0 0
      vendor/hg/apidoc/src/Service.php
  78. 0 0
      vendor/hg/apidoc/src/Utils.php
  79. 0 0
      vendor/hg/apidoc/src/annotation/AddField.php
  80. 0 0
      vendor/hg/apidoc/src/annotation/Author.php
  81. 0 0
      vendor/hg/apidoc/src/annotation/Desc.php
  82. 0 0
      vendor/hg/apidoc/src/annotation/Field.php
  83. 0 0
      vendor/hg/apidoc/src/annotation/Group.php
  84. 0 0
      vendor/hg/apidoc/src/annotation/Header.php
  85. 0 0
      vendor/hg/apidoc/src/annotation/Method.php
  86. 0 0
      vendor/hg/apidoc/src/annotation/Param.php
  87. 0 0
      vendor/hg/apidoc/src/annotation/ParamBase.php
  88. 0 0
      vendor/hg/apidoc/src/annotation/ParamType.php
  89. 0 0
      vendor/hg/apidoc/src/annotation/Returned.php
  90. 0 0
      vendor/hg/apidoc/src/annotation/Route.php
  91. 0 0
      vendor/hg/apidoc/src/annotation/Rule.php
  92. 0 0
      vendor/hg/apidoc/src/annotation/Tag.php
  93. 0 0
      vendor/hg/apidoc/src/annotation/Title.php
  94. 0 0
      vendor/hg/apidoc/src/annotation/Url.php
  95. 0 0
      vendor/hg/apidoc/src/annotation/WithoutField.php
  96. 0 0
      vendor/hg/apidoc/src/config.php
  97. 0 0
      vendor/itxq/api-doc-php/.gitignore
  98. 0 0
      vendor/itxq/api-doc-php/LICENSE
  99. 0 0
      vendor/itxq/api-doc-php/README.md
  100. 0 0
      vendor/itxq/api-doc-php/assets/css/bootstrap.min.css

+ 0 - 0
.DS_Store


+ 0 - 0
README.md


+ 0 - 0
app/.DS_Store


+ 0 - 0
app/admin/controller/CountyMenu.php


+ 0 - 77
app/admin/controller/api/Update.php

@@ -1,77 +0,0 @@
-<?php
-
-// +----------------------------------------------------------------------
-// | ThinkAdmin
-// +----------------------------------------------------------------------
-// | 版权所有 2014~2021 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
-// +----------------------------------------------------------------------
-// | 官方网站: https://thinkadmin.top
-// +----------------------------------------------------------------------
-// | 开源协议 ( https://mit-license.org )
-// +----------------------------------------------------------------------
-// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
-// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
-// +----------------------------------------------------------------------
-
-namespace app\admin\controller\api;
-
-use think\admin\Controller;
-use think\admin\service\ModuleService;
-use think\admin\service\SystemService;
-
-/**
- * 安装服务端支持
- * Class Update
- * @package app\admin\controller\api
- */
-class Update extends Controller
-{
-
-    /**
-     * 访问环境拦截
-     */
-    protected function initialize()
-    {
-        if (!SystemService::instance()->checkRunMode('dev')) {
-            $this->error('只允许访问本地或官方代码!');
-        }
-    }
-
-    /**
-     * 读取文件内容
-     */
-    public function get()
-    {
-        $filename = decode(input('encode', '0'));
-        if (!ModuleService::instance()->checkAllowDownload($filename)) {
-            $this->error('下载的文件不在认证规则中!');
-        }
-        if (file_exists($realname = $this->app->getRootPath() . $filename)) {
-            $this->success('读取文件内容成功!', [
-                'content' => base64_encode(file_get_contents($realname)),
-            ]);
-        } else {
-            $this->error('读取文件内容失败!');
-        }
-    }
-
-    /**
-     * 读取文件列表
-     */
-    public function node()
-    {
-        $this->success('获取文件列表成功!', ModuleService::instance()->getChanges(
-            json_decode($this->request->post('rules', '[]', ''), true),
-            json_decode($this->request->post('ignore', '[]', ''), true)
-        ));
-    }
-
-    /**
-     * 获取模块信息
-     */
-    public function version()
-    {
-        $this->success('获取模块信息成功!', ModuleService::instance()->getModules());
-    }
-
-}

+ 0 - 57
app/admin/route/demo.php

@@ -1,57 +0,0 @@
-<?php
-
-// +----------------------------------------------------------------------
-// | ThinkAdmin
-// +----------------------------------------------------------------------
-// | 版权所有 2014~2021 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
-// +----------------------------------------------------------------------
-// | 官方网站: https://thinkadmin.top
-// +----------------------------------------------------------------------
-// | 开源协议 ( https://mit-license.org )
-// +----------------------------------------------------------------------
-// | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
-// | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
-// +----------------------------------------------------------------------
-
-use think\admin\service\SystemService;
-
-invoke(function (\think\App $app) {
-    /*! 非开发环境,清理限制文件 */
-    if (!SystemService::instance()->checkRunMode('dev')) {
-        @unlink("{$app->getBasePath()}admin/controller/api/Update.php");
-        @unlink("{$app->getBasePath()}admin/route/demo.php");
-        @rmdir("{$app->getBasePath()}admin/route");
-        return;
-    }
-    /*! 演示环境禁止操作路由绑定 */
-    if (SystemService::instance()->checkRunMode('demo')) {
-        $app->route->post('index/pass', function () {
-            return json(['code' => 0, 'info' => '演示环境禁止修改用户密码!']);
-        });
-        $app->route->post('config/system', function () {
-            return json(['code' => 0, 'info' => '演示环境禁止修改系统配置!']);
-        });
-        $app->route->post('config/storage', function () {
-            return json(['code' => 0, 'info' => '演示环境禁止修改系统配置!']);
-        });
-        $app->route->post('menu/index', function () {
-            return json(['code' => 0, 'info' => '演示环境禁止给菜单排序!']);
-        });
-        $app->route->post('menu/add', function () {
-            return json(['code' => 0, 'info' => '演示环境禁止添加菜单!']);
-        });
-        $app->route->post('menu/edit', function () {
-            return json(['code' => 0, 'info' => '演示环境禁止编辑菜单!']);
-        });
-        $app->route->post('menu/state', function () {
-            return json(['code' => 0, 'info' => '演示环境禁止禁用菜单!']);
-        });
-        $app->route->post('menu/remove', function () {
-            return json(['code' => 0, 'info' => '演示环境禁止删除菜单!']);
-        });
-        $app->route->post('user/pass', function () {
-            return json(['code' => 0, 'info' => '演示环境禁止修改用户密码!']);
-        });
-    }
-
-});

+ 0 - 0
app/admin/view/county_menu/form.html


+ 0 - 0
app/admin/view/county_menu/index.html


+ 0 - 0
app/admin/view/school/form.html


+ 0 - 0
app/admin/view/school/index.html


+ 0 - 0
app/admin/view/school/index_search.html


+ 0 - 0
app/admin/view/school/info.html


+ 0 - 0
app/common.php


+ 0 - 0
app/county/controller/School.php


+ 0 - 0
app/county/view/main.html


+ 0 - 0
app/county/view/school/form.html


+ 0 - 0
app/county/view/school/index.html


+ 0 - 0
app/county/view/school/index_search.html


+ 0 - 0
app/test/controller/Test.php


+ 0 - 0
config/apidoc.php


+ 1 - 1
config/database.php

@@ -28,7 +28,7 @@ return [
             // 数据库类型
             'type'            => 'mysql',
             // 服务器地址
-            'hostname'        => '127.0.0.1',
+            'hostname'        => '47.111.246.47',
             // 数据库名
             'database'        => 'bjedu',
             // 用户名

+ 0 - 0
public/api.php


+ 0 - 0
public/test.php


+ 0 - 0
vendor/.DS_Store


+ 0 - 0
vendor/composer/tmp-36806ac8df6bb07e193104258bfef5a0


+ 0 - 0
vendor/composer/tmp-3a09888f26526ea8a171666943791d44


+ 0 - 0
vendor/composer/tmp-a79f35280da790c974b53101ad8536b6


+ 0 - 0
vendor/composer/tmp-ad8a77f41b1f8240e351ed15e0ae991c


+ 0 - 0
vendor/composer/tmp-dc792d0edd9477ce403492e4142fd291


+ 0 - 0
vendor/composer/tmp-e312418c8d03a44c9f15c2080bb26095


+ 0 - 0
vendor/composer/tmp-edda2f91130627eeccf14aaaa8092539


+ 0 - 0
vendor/doctrine/annotations/CHANGELOG.md


+ 0 - 0
vendor/doctrine/annotations/LICENSE


+ 0 - 0
vendor/doctrine/annotations/README.md


+ 0 - 0
vendor/doctrine/annotations/composer.json


+ 0 - 0
vendor/doctrine/annotations/docs/en/annotations.rst


+ 0 - 0
vendor/doctrine/annotations/docs/en/custom.rst


+ 0 - 0
vendor/doctrine/annotations/docs/en/index.rst


+ 0 - 0
vendor/doctrine/annotations/docs/en/sidebar.rst


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attribute.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Attributes.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Enum.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/IgnoreAnnotation.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/NamedArgumentConstructor.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Required.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/Target.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocLexer.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/FileCacheReader.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/ImplicitlyIgnoredAnnotationNames.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/IndexedReader.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/NamedArgumentConstructorAnnotation.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/PhpParser.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Reader.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/SimpleAnnotationReader.php


+ 0 - 0
vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/TokenParser.php


+ 0 - 0
vendor/doctrine/lexer/LICENSE


+ 0 - 0
vendor/doctrine/lexer/README.md


+ 0 - 0
vendor/doctrine/lexer/composer.json


+ 0 - 0
vendor/doctrine/lexer/lib/Doctrine/Common/Lexer/AbstractLexer.php


+ 0 - 0
vendor/hg/apidoc/.github/workflows/mirror.yml


+ 0 - 0
vendor/hg/apidoc/.gitignore


+ 0 - 0
vendor/hg/apidoc/LICENSE


+ 0 - 0
vendor/hg/apidoc/README.md


+ 0 - 0
vendor/hg/apidoc/composer.json


+ 0 - 0
vendor/hg/apidoc/src/Auth.php


+ 0 - 0
vendor/hg/apidoc/src/Controller.php


+ 0 - 0
vendor/hg/apidoc/src/CreateCrud.php


+ 0 - 0
vendor/hg/apidoc/src/ParseAnnotation.php


+ 0 - 0
vendor/hg/apidoc/src/ParseMarkdown.php


+ 0 - 0
vendor/hg/apidoc/src/ParseModel.php


+ 0 - 0
vendor/hg/apidoc/src/Service.php


+ 0 - 0
vendor/hg/apidoc/src/Utils.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/AddField.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/Author.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/Desc.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/Field.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/Group.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/Header.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/Method.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/Param.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/ParamBase.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/ParamType.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/Returned.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/Route.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/Rule.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/Tag.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/Title.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/Url.php


+ 0 - 0
vendor/hg/apidoc/src/annotation/WithoutField.php


+ 0 - 0
vendor/hg/apidoc/src/config.php


+ 0 - 0
vendor/itxq/api-doc-php/.gitignore


+ 0 - 0
vendor/itxq/api-doc-php/LICENSE


+ 0 - 0
vendor/itxq/api-doc-php/README.md


+ 0 - 0
vendor/itxq/api-doc-php/assets/css/bootstrap.min.css


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff