唐金木 5 months ago
parent
commit
197fd49b4d
95 changed files with 2684 additions and 99321 deletions
  1. BIN
      BTS需求.docx
  2. 1 1
      php/.env
  3. 346 334
      php/.idea/workspace.xml
  4. 270 53
      php/adddata.sql
  5. 0 18
      php/addons/text/config.php
  6. 0 63
      php/addons/text/controller/Pugin.php
  7. 0 15
      php/addons/text/controller/Text.php
  8. 0 10
      php/addons/text/view/pugin/info.html
  9. 0 25016
      php/any_college.sql
  10. 0 25064
      php/any_college2020-2-27.sql
  11. 0 255
      php/app/admin/controller/Adv.php
  12. 55 0
      php/app/admin/controller/Agent.php
  13. 31 0
      php/app/admin/controller/Certificate.php
  14. 3 13
      php/app/admin/controller/Contents.php
  15. 0 330
      php/app/admin/controller/Curriculum.php
  16. 56 0
      php/app/admin/controller/Finance.php
  17. 0 393
      php/app/admin/controller/Friendship.php
  18. 1 1
      php/app/admin/controller/Index.php
  19. 15 0
      php/app/admin/controller/Information.php
  20. 39 0
      php/app/admin/controller/Order.php
  21. 0 167
      php/app/admin/controller/Site.php
  22. 0 166
      php/app/admin/controller/Training.php
  23. 21 0
      php/app/admin/controller/Usermanage.php
  24. 0 21
      php/app/admin/model/ListPage.php
  25. 0 39
      php/app/admin/model/MajorLevel.php
  26. 0 31
      php/app/admin/validate/UserLevel.php
  27. 0 56
      php/app/admin/validate/WxAccount.php
  28. 0 34
      php/app/admin/validate/WxTag.php
  29. 0 34
      php/app/ap/config/route.php
  30. 0 52
      php/app/ap/controller/Login.php
  31. 0 48
      php/app/ap/controller/v1/Index.php
  32. 0 91
      php/app/ap/controller/v1/User.php
  33. 0 22
      php/app/ap/middleware.php
  34. 0 26
      php/app/ap/route/api.php
  35. 0 84
      php/app/common/controller/Aliyunoss.php
  36. 0 29
      php/app/common/controller/Frontend.php
  37. 0 18
      php/app/common/controller/Token.php
  38. 0 47
      php/app/common/controller/Wxs.php
  39. 1 67
      php/app/worker/controller/User.php
  40. 2 2
      php/app/worker/controller/Worker.php
  41. 0 25651
      php/lemocms2020-3-24.sql
  42. 0 13551
      php/lm_about.sql
  43. 475 0
      php/lm_admin.sql
  44. BIN
      php/public/favicons.ico
  45. 245 0
      php/runtime/admin/log/202006/02.log
  46. 139 0
      php/runtime/admin/temp/01e433db5e5517b7a2c4587da42797aa.php
  47. 185 0
      php/runtime/admin/temp/14d50cc59972e0ab82b71f4b5f381353.php
  48. 147 0
      php/runtime/admin/temp/193b3c530962981d3a4dc850749aaa8b.php
  49. 182 0
      php/runtime/admin/temp/42d182ba955a14984e138f63987ed1b0.php
  50. 145 0
      php/runtime/admin/temp/a5b87fd77913dd9b0ad9dd783203b8ce.php
  51. 157 0
      php/runtime/admin/temp/a8ba287c844b92a9904d92bc00486605.php
  52. 152 0
      php/runtime/admin/temp/b04ecd3398bf75dee5dd9dee974fadba.php
  53. 4 0
      php/runtime/cache/0b/dc60c1eb9bd2792cd1fa7f85d9c865.php
  54. 4 0
      php/runtime/cache/b5/0db2208db974a3bc060e4d7255aa98.php
  55. 4 0
      php/runtime/cache/ca/361393b5a02e8a62e8dd6d5373a473.php
  56. BIN
      php/runtime/session/sess_3f972420e5bb26ed1e69c519f52d4119
  57. 0 137
      php/view/admin/adv/add.html
  58. 0 130
      php/view/admin/adv/index.html
  59. 0 115
      php/view/admin/adv/pos.html
  60. 0 91
      php/view/admin/adv/pos_add.html
  61. 1 37
      php/view/admin/contents/feedback.html
  62. 0 124
      php/view/admin/friendship/add_banner.html
  63. 0 110
      php/view/admin/friendship/add_dh.html
  64. 0 100
      php/view/admin/friendship/add_links.html
  65. 0 183
      php/view/admin/friendship/banner.html
  66. 0 165
      php/view/admin/friendship/dh_list.html
  67. 0 95
      php/view/admin/friendship/index.html
  68. 0 177
      php/view/admin/friendship/links.html
  69. 0 343
      php/view/admin/friendship/statistics.html
  70. 0 172
      php/view/admin/site/index.html
  71. 0 86
      php/view/admin/site/sitetree.html
  72. 0 153
      php/view/admin/training/course.html
  73. 0 152
      php/view/admin/training/index.html
  74. 0 210
      php/view/admin/training/text.html
  75. 0 188
      php/view/admin/training/upgrade.html
  76. 0 208
      php/view/admin/wechat/add.html
  77. 0 209
      php/view/admin/wechat/fans.html
  78. 0 122
      php/view/admin/wechat/index.html
  79. 0 102
      php/view/admin/wechat/level_add.html
  80. 0 122
      php/view/admin/wechat/level_index.html
  81. 0 320
      php/view/admin/wechat/material.html
  82. 0 551
      php/view/admin/wechat/material_add.html
  83. 0 252
      php/view/admin/wechat/menu.html
  84. 0 1523
      php/view/admin/wechat/menu_api.html
  85. 0 95
      php/view/admin/wechat/message.html
  86. 0 342
      php/view/admin/wechat/message_reply.html
  87. 0 116
      php/view/admin/wechat/qrcode.html
  88. 0 75
      php/view/admin/wechat/qrcode_add.html
  89. 0 107
      php/view/admin/wechat/reply.html
  90. 0 351
      php/view/admin/wechat/reply_add.html
  91. 0 166
      php/view/admin/wechat/tag.html
  92. 0 65
      php/view/admin/wechat/tag_add.html
  93. 0 25
      php/view/web/index/index.html
  94. 3 0
      服务器.txt
  95. BIN
      虚拟币抢单系统功能清单.xlsx

BIN
BTS需求.docx


File diff suppressed because it is too large
+ 1 - 1
php/.env


+ 346 - 334
php/.idea/workspace.xml

@@ -1,83 +1,80 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
-  <component name="BookmarkManager">
-    <bookmark url="file://$PROJECT_DIR$/app/admin/controller/Contents.php" line="25" />
-  </component>
   <component name="ChangeListManager">
     <list default="true" id="52cc2ceb-e100-4a5f-a9e2-bb6b61bdbebd" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.env" beforeDir="false" afterPath="$PROJECT_DIR$/.env" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/adddata.sql" beforeDir="false" afterPath="$PROJECT_DIR$/adddata.sql" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/addons/text/config.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/addons/text/controller/Pugin.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/addons/text/controller/Text.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/addons/text/view/pugin/info.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/any_college.sql" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/any_college2020-2-27.sql" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/controller/Adv.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/controller/Contents.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/controller/Curriculum.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/controller/Friendship.php" beforeDir="false" />
       <change beforePath="$PROJECT_DIR$/app/admin/controller/Index.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/controller/Index.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/api/config/route.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/api/controller/v1/Token.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/api/controller/v1/User.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/api/middleware.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/api/route/api.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/common.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/About.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/Adv.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/AdvPosition.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/Article.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/ArticleCate.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/Common.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/Examination.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/ExaminationApply.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/Feedback.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/Laboratory.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/MajorLevel.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/StudentAchievement.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/StudentExam.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/Subject.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/UserLevel.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/WxAccount.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/WxFans.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/WxMaterial.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/WxMaterialInfo.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/WxMenu.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/WxMsgHistory.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/WxReply.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/common/model/WxTag.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/app/web/controller/Index.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/config/database.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/database.php" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/lemocms2020-3-24.sql" beforeDir="false" afterPath="$PROJECT_DIR$/lemocms2020-3-24.sql" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/favicon.ico" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/index.html" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/css/app.3923214e.css" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/css/chunk-vendors.56b28f4e.css" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/css/home.aa2e59b3.css" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/fonts/element-icons.535877f5.woff" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/fonts/element-icons.732389de.ttf" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/a889af7e-226d-42c9-ae87-c0d4a1eabc0d.fb3a43a6.jpg" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/banner2@2x.f9b7729b.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/banner@2x.ac15f717.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/bg.1444b65e.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/icon_diy@2x.477f05dd.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/icon_hy@2x.b5bea374.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/icon_kc@2x(1).2d1cb158.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/icon_kc@2x.2d1cb158.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/icon_kj@2x.f19dbc1d.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/icon_logo.f3733667.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/icon_ms@2x.33f75f26.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/icon_qd@2x.253f25b9.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/icon_tg@2x.f47e24c0.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/icon_yj@2x.32ee214b.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/img_1@2x.089aa8b6.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/img_2@2x.e3ca62f1.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/img_3@2x.fefa2cfa.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/img_4@2x.597aa81a.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/img_anli@2x.15392499.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/img_dhy1@2x.99e9cef2.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/img_dhy2@2x.6aa4fcd1.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/img_dhy3@2x.9126b3c2.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/img/logo.125a8805.png" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/js/app.38019ab9.js" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/js/chunk-vendors.947778ee.js" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/public/dist/static/js/home.1cae7556.js" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/admin/log/202005/29.log" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/admin/temp/c5d116d0b0fba4a743db108afcfc6dd9.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/cache/b5/0db2208db974a3bc060e4d7255aa98.php" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/runtime/session/sess_e073e8c24261b8fb84910f1bf455d29f" beforeDir="false" />
-      <change beforePath="$PROJECT_DIR$/view/admin/index/main.html" beforeDir="false" afterPath="$PROJECT_DIR$/view/admin/index/main.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/controller/Site.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/controller/Training.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/model/ListPage.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/model/MajorLevel.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/validate/UserLevel.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/validate/WxAccount.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/validate/WxTag.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/ap/config/route.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/ap/controller/Login.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/ap/controller/v1/Index.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/ap/controller/v1/User.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/ap/middleware.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/ap/route/api.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/common/controller/Aliyunoss.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/common/controller/Frontend.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/common/controller/Token.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/common/controller/Wxs.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/worker/controller/User.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/worker/controller/User.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/worker/controller/Worker.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/worker/controller/Worker.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/lemocms2020-3-24.sql" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/lm_about.sql" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/public/favicons.ico" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/adv/add.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/adv/index.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/adv/pos.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/adv/pos_add.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/contents/feedback.html" beforeDir="false" afterPath="$PROJECT_DIR$/view/admin/contents/feedback.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/friendship/add_banner.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/friendship/add_dh.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/friendship/add_links.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/friendship/banner.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/friendship/dh_list.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/friendship/index.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/friendship/links.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/friendship/statistics.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/site/index.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/site/sitetree.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/training/course.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/training/index.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/training/text.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/training/upgrade.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/add.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/fans.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/index.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/level_add.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/level_index.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/material.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/material_add.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/menu.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/menu_api.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/message.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/message_reply.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/qrcode.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/qrcode_add.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/reply.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/reply_add.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/tag.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/wechat/tag_add.html" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/web/index/index.html" beforeDir="false" />
     </list>
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
     <option name="SHOW_DIALOG" value="false" />
@@ -90,59 +87,77 @@
   </component>
   <component name="FileEditorManager">
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
+      <file pinned="false" current-in-tab="true">
+        <entry file="file://$PROJECT_DIR$/app/admin/controller/Contents.php">
+          <provider selected="true" editor-type-id="text-editor">
+            <state relative-caret-position="275">
+              <caret line="93" column="6" lean-forward="true" selection-start-line="93" selection-start-column="6" selection-end-line="93" selection-end-column="6" />
+              <folding>
+                <element signature="e#69#103#0#PHP" expanded="true" />
+              </folding>
+            </state>
+          </provider>
+        </entry>
+      </file>
       <file pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/app/common/model/User.php">
+        <entry file="file://$PROJECT_DIR$/app/admin/controller/Usermanage.php">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="276">
-              <caret line="22" column="1" lean-forward="true" selection-start-line="22" selection-start-column="1" selection-end-line="22" selection-end-column="1" />
+            <state relative-caret-position="345">
+              <caret line="20" column="1" lean-forward="true" selection-start-line="20" selection-start-column="1" selection-end-line="20" selection-end-column="1" />
             </state>
           </provider>
         </entry>
       </file>
       <file pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/app/ap/controller/Login.php">
+        <entry file="file://$PROJECT_DIR$/app/admin/controller/Agent.php">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="413">
-              <caret line="46" column="28" lean-forward="true" selection-start-line="46" selection-start-column="28" selection-end-line="46" selection-end-column="28" />
-              <folding>
-                <element signature="e#99#125#0#PHP" expanded="true" />
-              </folding>
+            <state relative-caret-position="528">
+              <caret line="54" column="1" lean-forward="true" selection-start-line="54" selection-start-column="1" selection-end-line="54" selection-end-column="1" />
             </state>
           </provider>
         </entry>
       </file>
-      <file pinned="false" current-in-tab="true">
-        <entry file="file://$PROJECT_DIR$/adddata.sql">
+      <file pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/app/admin/controller/Certificate.php">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="547">
-              <caret line="53" column="43" selection-start-line="53" selection-start-column="43" selection-end-line="53" selection-end-column="43" />
+            <state relative-caret-position="437">
+              <caret line="24" column="12" selection-start-line="24" selection-start-column="12" selection-end-line="24" selection-end-column="12" />
             </state>
           </provider>
         </entry>
       </file>
       <file pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/app/common.php">
+        <entry file="file://$PROJECT_DIR$/app/admin/controller/Order.php">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="345">
-              <caret line="197" column="7" lean-forward="true" selection-start-line="197" selection-start-column="7" selection-end-line="197" selection-end-column="7" />
+            <state relative-caret-position="552">
+              <caret line="31" column="7" lean-forward="true" selection-start-line="31" selection-start-column="7" selection-end-line="31" selection-end-column="7" />
             </state>
           </provider>
         </entry>
       </file>
       <file pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/app/ap/route/api.php">
+        <entry file="file://$PROJECT_DIR$/app/admin/controller/Finance.php">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="414">
-              <caret line="21" column="44" lean-forward="true" selection-start-line="21" selection-start-column="44" selection-end-line="21" selection-end-column="44" />
+            <state relative-caret-position="597">
+              <caret line="54" lean-forward="true" selection-start-line="54" selection-end-line="54" />
             </state>
           </provider>
         </entry>
       </file>
       <file pinned="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/app/middleware/Token.php">
+        <entry file="file://$PROJECT_DIR$/app/admin/controller/Information.php">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="138">
-              <caret line="11" column="25" lean-forward="true" selection-start-line="11" selection-start-column="25" selection-end-line="11" selection-end-column="25" />
+            <state relative-caret-position="207">
+              <caret line="14" column="1" lean-forward="true" selection-start-line="14" selection-start-column="1" selection-end-line="14" selection-end-column="1" />
+            </state>
+          </provider>
+        </entry>
+      </file>
+      <file pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/adddata.sql">
+          <provider selected="true" editor-type-id="text-editor">
+            <state relative-caret-position="348">
+              <caret line="122" column="44" selection-start-line="122" selection-start-column="44" selection-end-line="122" selection-end-column="44" />
             </state>
           </provider>
         </entry>
@@ -159,9 +174,6 @@
   </component>
   <component name="FindInProjectRecents">
     <findStrings>
-      <find>signup</find>
-      <find>Laboratorylist</find>
-      <find>my_exam</find>
       <find>Wx</find>
       <find>outvodeo</find>
       <find>delAll</find>
@@ -189,6 +201,9 @@
       <find>api</find>
       <find>Invalid authorization credentials</find>
       <find>resultset_type</find>
+      <find>main</find>
+      <find>lm_finance</find>
+      <find>feedback</find>
     </findStrings>
     <dirStrings>
       <dir>D:\phpstudy_pro\WWW\small\syyxy\php</dir>
@@ -200,16 +215,6 @@
   <component name="IdeDocumentHistory">
     <option name="CHANGED_PATHS">
       <list>
-        <option value="$PROJECT_DIR$/app/admin/controller/Laboratory.php" />
-        <option value="$PROJECT_DIR$/view/admin/examination/exam.html" />
-        <option value="$PROJECT_DIR$/app/admin/controller/Curriculum.php" />
-        <option value="$PROJECT_DIR$/app/admin/controller/Examination.php" />
-        <option value="$PROJECT_DIR$/view/admin/examination/index.html" />
-        <option value="$PROJECT_DIR$/app/index/controller/Login.php" />
-        <option value="$PROJECT_DIR$/view/admin/parameter/index.html" />
-        <option value="$PROJECT_DIR$/app/index/controller/Examinations.php" />
-        <option value="$PROJECT_DIR$/app/index/controller/Home.php" />
-        <option value="$PROJECT_DIR$/app/admin/model/Video.php" />
         <option value="$PROJECT_DIR$/view/admin/auth/admin_add.html" />
         <option value="$PROJECT_DIR$/view/admin/auth/admin_list.html" />
         <option value="$PROJECT_DIR$/app/admin/controller/Auth.php" />
@@ -232,9 +237,7 @@
         <option value="$PROJECT_DIR$/app/admin/controller/Friendship.php" />
         <option value="$PROJECT_DIR$/view/admin/friendship/index.html" />
         <option value="$PROJECT_DIR$/lemocms2020-3-24.sql" />
-        <option value="$PROJECT_DIR$/.env" />
         <option value="$PROJECT_DIR$/view/admin/index/main.html" />
-        <option value="$PROJECT_DIR$/app/admin/controller/Index.php" />
         <option value="$PROJECT_DIR$/app/api/route/api.php" />
         <option value="$PROJECT_DIR$/app/api/controller/v1/User.php" />
         <option value="$PROJECT_DIR$/app/api/middleware.php" />
@@ -250,7 +253,19 @@
         <option value="$PROJECT_DIR$/app/middleware/Token.php" />
         <option value="$PROJECT_DIR$/app/ap/route/api.php" />
         <option value="$PROJECT_DIR$/app/ap/controller/Login.php" />
+        <option value="$PROJECT_DIR$/.env" />
+        <option value="$PROJECT_DIR$/app/admin/controller/Index.php" />
+        <option value="$PROJECT_DIR$/app/worker/controller/User.php" />
+        <option value="$PROJECT_DIR$/app/worker/controller/Worker.php" />
+        <option value="$PROJECT_DIR$/view/admin/contents/feedback.html" />
         <option value="$PROJECT_DIR$/adddata.sql" />
+        <option value="$PROJECT_DIR$/app/admin/controller/Contents.php" />
+        <option value="$PROJECT_DIR$/app/admin/controller/Usermanage.php" />
+        <option value="$PROJECT_DIR$/app/admin/controller/Information.php" />
+        <option value="$PROJECT_DIR$/app/admin/controller/Agent.php" />
+        <option value="$PROJECT_DIR$/app/admin/controller/Certificate.php" />
+        <option value="$PROJECT_DIR$/app/admin/controller/Order.php" />
+        <option value="$PROJECT_DIR$/app/admin/controller/Finance.php" />
       </list>
     </option>
   </component>
@@ -346,8 +361,8 @@
   </component>
   <component name="PhpXdebugProxy" ide_key="PHPSTROM" host="127.0.0.1" />
   <component name="ProjectFrameBounds" extendedState="6">
-    <option name="x" value="-8" />
-    <option name="y" value="-8" />
+    <option name="x" value="1" />
+    <option name="y" value="10" />
     <option name="width" value="1936" />
     <option name="height" value="1056" />
   </component>
@@ -357,7 +372,6 @@
       <foldersAlwaysOnTop value="true" />
     </navigator>
     <panes>
-      <pane id="Scope" />
       <pane id="ProjectPane">
         <subPane>
           <expand>
@@ -373,12 +387,84 @@
             <path>
               <item name="php" type="b2602c69:ProjectViewProjectNode" />
               <item name="php" type="462c0819:PsiDirectoryNode" />
+              <item name="app" type="462c0819:PsiDirectoryNode" />
+              <item name="admin" type="462c0819:PsiDirectoryNode" />
+            </path>
+            <path>
+              <item name="php" type="b2602c69:ProjectViewProjectNode" />
+              <item name="php" type="462c0819:PsiDirectoryNode" />
+              <item name="app" type="462c0819:PsiDirectoryNode" />
+              <item name="admin" type="462c0819:PsiDirectoryNode" />
+              <item name="controller" type="462c0819:PsiDirectoryNode" />
+            </path>
+            <path>
+              <item name="php" type="b2602c69:ProjectViewProjectNode" />
+              <item name="php" type="462c0819:PsiDirectoryNode" />
+              <item name="public" type="462c0819:PsiDirectoryNode" />
+            </path>
+            <path>
+              <item name="php" type="b2602c69:ProjectViewProjectNode" />
+              <item name="php" type="462c0819:PsiDirectoryNode" />
               <item name="route" type="462c0819:PsiDirectoryNode" />
             </path>
+            <path>
+              <item name="php" type="b2602c69:ProjectViewProjectNode" />
+              <item name="php" type="462c0819:PsiDirectoryNode" />
+              <item name="view" type="462c0819:PsiDirectoryNode" />
+            </path>
+            <path>
+              <item name="php" type="b2602c69:ProjectViewProjectNode" />
+              <item name="php" type="462c0819:PsiDirectoryNode" />
+              <item name="view" type="462c0819:PsiDirectoryNode" />
+              <item name="admin" type="462c0819:PsiDirectoryNode" />
+            </path>
+            <path>
+              <item name="php" type="b2602c69:ProjectViewProjectNode" />
+              <item name="php" type="462c0819:PsiDirectoryNode" />
+              <item name="view" type="462c0819:PsiDirectoryNode" />
+              <item name="admin" type="462c0819:PsiDirectoryNode" />
+              <item name="common" type="462c0819:PsiDirectoryNode" />
+            </path>
+            <path>
+              <item name="php" type="b2602c69:ProjectViewProjectNode" />
+              <item name="php" type="462c0819:PsiDirectoryNode" />
+              <item name="view" type="462c0819:PsiDirectoryNode" />
+              <item name="admin" type="462c0819:PsiDirectoryNode" />
+              <item name="contents" type="462c0819:PsiDirectoryNode" />
+            </path>
+            <path>
+              <item name="php" type="b2602c69:ProjectViewProjectNode" />
+              <item name="php" type="462c0819:PsiDirectoryNode" />
+              <item name="view" type="462c0819:PsiDirectoryNode" />
+              <item name="admin" type="462c0819:PsiDirectoryNode" />
+              <item name="database" type="462c0819:PsiDirectoryNode" />
+            </path>
+            <path>
+              <item name="php" type="b2602c69:ProjectViewProjectNode" />
+              <item name="php" type="462c0819:PsiDirectoryNode" />
+              <item name="view" type="462c0819:PsiDirectoryNode" />
+              <item name="admin" type="462c0819:PsiDirectoryNode" />
+              <item name="index" type="462c0819:PsiDirectoryNode" />
+            </path>
+            <path>
+              <item name="php" type="b2602c69:ProjectViewProjectNode" />
+              <item name="php" type="462c0819:PsiDirectoryNode" />
+              <item name="view" type="462c0819:PsiDirectoryNode" />
+              <item name="admin" type="462c0819:PsiDirectoryNode" />
+              <item name="system" type="462c0819:PsiDirectoryNode" />
+            </path>
+            <path>
+              <item name="php" type="b2602c69:ProjectViewProjectNode" />
+              <item name="php" type="462c0819:PsiDirectoryNode" />
+              <item name="view" type="462c0819:PsiDirectoryNode" />
+              <item name="admin" type="462c0819:PsiDirectoryNode" />
+              <item name="user" type="462c0819:PsiDirectoryNode" />
+            </path>
           </expand>
           <select />
         </subPane>
       </pane>
+      <pane id="Scope" />
     </panes>
   </component>
   <component name="PropertiesComponent">
@@ -389,25 +475,25 @@
     <property name="WebServerToolWindowPanel.toolwindow.show.date" value="false" />
     <property name="WebServerToolWindowPanel.toolwindow.show.permissions" value="false" />
     <property name="WebServerToolWindowPanel.toolwindow.show.size" value="false" />
-    <property name="last_opened_file_path" value="$PROJECT_DIR$/../../../company/any_admin" />
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/../../../dlb" />
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
     <property name="nodejs_package_manager_path" value="npm" />
     <property name="settings.editor.selected.configurable" value="Docker" />
   </component>
   <component name="RecentsManager">
-    <key name="MoveFile.RECENT_KEYS">
-      <recent name="D:\phpstudy_pro\WWW\company\any_admin\public\static\admin\images" />
-      <recent name="D:\phpstudy_pro\WWW\small\syyxy\php\public\static\plugins\layui\extend\city" />
-      <recent name="D:\phpstudy_pro\WWW\small\syyxy\php\app\index\controller" />
-      <recent name="D:\phpstudy_pro\WWW\small\syyxy\php\public\static\plugins\selectmenu" />
-    </key>
     <key name="CopyFile.RECENT_KEYS">
+      <recent name="D:\phpstudy_pro\WWW\cxy\bts\php\app\admin\controller" />
       <recent name="D:\phpstudy_pro\WWW\my\fuye\php\app\ap\config" />
       <recent name="D:\phpstudy_pro\WWW\my\fuye\php\app\ap\route" />
       <recent name="D:\phpstudy_pro\WWW\my\fuye\php\app\ap" />
       <recent name="D:\phpstudy_pro\WWW\company\any_admin\public\static\admin\images" />
-      <recent name="D:\phpstudy_pro\WWW\company\any_admin\public" />
+    </key>
+    <key name="MoveFile.RECENT_KEYS">
+      <recent name="D:\phpstudy_pro\WWW\company\any_admin\public\static\admin\images" />
+      <recent name="D:\phpstudy_pro\WWW\small\syyxy\php\public\static\plugins\layui\extend\city" />
+      <recent name="D:\phpstudy_pro\WWW\small\syyxy\php\app\index\controller" />
+      <recent name="D:\phpstudy_pro\WWW\small\syyxy\php\public\static\plugins\selectmenu" />
     </key>
   </component>
   <component name="RunDashboard">
@@ -520,17 +606,18 @@
       <workItem from="1590637551328" duration="21498000" />
       <workItem from="1590714534675" duration="25886000" />
       <workItem from="1590983110728" duration="16565000" />
+      <workItem from="1591065028261" duration="18981000" />
     </task>
     <servers />
   </component>
   <component name="TimeTrackingManager">
-    <option name="totallyTimeSpent" value="682005000" />
+    <option name="totallyTimeSpent" value="700986000" />
   </component>
   <component name="ToolWindowManager">
     <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
     <editor active="true" />
     <layout>
-      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.21908316" />
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.22121535" />
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
       <window_info id="Favorites" order="2" side_tool="true" />
       <window_info anchor="bottom" id="Message" order="0" />
@@ -600,353 +687,278 @@
           <option name="timeStamp" value="4" />
         </line-breakpoint>
         <line-breakpoint enabled="true" type="php">
-          <url>file://$PROJECT_DIR$/app/common/controller/Aliyunoss.php</url>
-          <line>9</line>
-          <option name="timeStamp" value="5" />
+          <url>file://$PROJECT_DIR$/app/admin/controller/Contents.php</url>
+          <line>6</line>
+          <option name="timeStamp" value="6" />
         </line-breakpoint>
       </breakpoints>
     </breakpoint-manager>
   </component>
   <component name="editorHistoryManager">
-    <entry file="file://$PROJECT_DIR$/config/admin/admin.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/validate/WxAccount.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="230">
-          <caret line="18" column="63" lean-forward="true" selection-start-line="18" selection-start-column="63" selection-end-line="18" selection-end-column="64" />
-        </state>
+        <state relative-caret-position="-507" />
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/config/addons.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/validate/WxTag.php">
+      <provider selected="true" editor-type-id="text-editor" />
+    </entry>
+    <entry file="file://$PROJECT_DIR$/app/admin/model/Ztrees.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="230">
-          <caret line="10" column="6" lean-forward="true" selection-start-line="10" selection-start-column="6" selection-end-line="10" selection-end-column="6" />
-        </state>
+        <state relative-caret-position="-345" />
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/public/storage/uploads/20200529/ad110b5e57ac537529fe3c2a2bf8cdfc.png">
-      <provider selected="true" editor-type-id="images" />
+    <entry file="file://$PROJECT_DIR$/app/admin/validate/Field.php">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/public/phpinfo.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/validate/Adv.php">
+      <provider selected="true" editor-type-id="text-editor" />
+    </entry>
+    <entry file="file://$PROJECT_DIR$/app/command/Hello.php">
+      <provider selected="true" editor-type-id="text-editor" />
+    </entry>
+    <entry file="file://$PROJECT_DIR$/app/common/controller/Aliyunoss.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="161">
-          <caret line="7" column="10" lean-forward="true" selection-start-line="7" selection-start-column="10" selection-end-line="7" selection-end-column="10" />
+        <state relative-caret-position="368">
+          <caret line="26" lean-forward="true" selection-start-line="26" selection-end-line="31" selection-end-column="12" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/web/controller/Index.php">
+    <entry file="file://$PROJECT_DIR$/app/command/Timer.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="964">
-          <caret line="52" column="5" lean-forward="true" selection-start-line="52" selection-start-column="5" selection-end-line="52" selection-end-column="5" />
-          <folding>
-            <element signature="e#128#151#0#PHP" expanded="true" />
-          </folding>
-        </state>
+        <state relative-caret-position="-621" />
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/error/controller/Error.php">
+    <entry file="file://$PROJECT_DIR$/app/common/controller/Backend.php">
       <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/worker/controller/User.php">
+    <entry file="file://$PROJECT_DIR$/app/common/controller/Frontend.php">
       <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/controller/Wxs.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-139" />
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/app/command/Hello.php">
+    <entry file="file://$PROJECT_DIR$/app/common/controller/Token.php">
       <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/command/Timer.php">
+    <entry file="file://$PROJECT_DIR$/app/common/controller/Wxs.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-207" />
+        <state relative-caret-position="-414" />
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/extend/lemo/api/validate/ValidataBase.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="230">
-          <caret line="23" column="7" lean-forward="true" selection-start-line="23" selection-start-column="7" selection-end-line="23" selection-end-column="7" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/app/common/controller/Base.php">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/vendor/topthink/think-throttle/src/Throttle.php">
+    <entry file="file://$PROJECT_DIR$/app/common/model/Config.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-1886">
-          <caret line="21" column="17" lean-forward="true" selection-start-line="21" selection-start-column="17" selection-end-line="21" selection-end-column="17" />
+        <state relative-caret-position="69">
+          <caret line="3" column="25" selection-start-line="3" selection-start-column="25" selection-end-line="3" selection-end-column="25" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/vendor/topthink/framework/src/think/middleware/LoadLangPack.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="230">
-          <caret line="23" column="6" selection-start-line="23" selection-start-column="6" selection-end-line="23" selection-end-column="6" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/app/common/model/ConfigGroup.php">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/api/controller/v1/User.php">
+    <entry file="file://$PROJECT_DIR$/app/common/model/FieldType.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-161">
-          <caret line="35" column="16" selection-start-line="35" selection-start-column="7" selection-end-line="35" selection-end-column="16" />
+        <state relative-caret-position="345">
+          <caret line="15" lean-forward="true" selection-start-line="15" selection-end-line="15" />
           <folding>
-            <element signature="e#41#66#0#PHP" expanded="true" />
+            <element signature="e#37#65#0#PHP" expanded="true" />
           </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/api/config/route.php">
+    <entry file="file://$PROJECT_DIR$/app/common/model/User.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="667">
-          <caret line="29" column="17" selection-start-line="29" selection-start-column="17" selection-end-line="29" selection-end-column="17" />
+        <state relative-caret-position="276">
+          <caret line="22" column="1" lean-forward="true" selection-start-line="22" selection-start-column="1" selection-end-line="22" selection-end-column="1" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/api/controller/v1/Token.php">
+    <entry file="file://$PROJECT_DIR$/app/common/model/Common.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="69">
-          <caret line="3" column="16" selection-start-line="3" selection-start-column="16" selection-end-line="3" selection-end-column="16" />
+        <state relative-caret-position="299">
+          <caret line="13" selection-start-line="13" selection-end-line="13" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/extend/lemo/api/Api.php">
+    <entry file="file://$PROJECT_DIR$/app/middleware/Notken.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="61">
-          <caret line="26" column="7" lean-forward="true" selection-start-line="26" selection-start-column="7" selection-end-line="26" selection-end-column="7" />
+        <state relative-caret-position="138">
+          <caret line="11" column="6" selection-start-line="11" selection-start-column="6" selection-end-line="11" selection-end-column="6" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/api/middleware.php">
+    <entry file="file://$PROJECT_DIR$/app/middleware/Token.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="92">
-          <caret line="14" selection-start-line="14" selection-end-line="20" selection-end-column="2" />
+        <state relative-caret-position="31">
+          <caret line="11" column="25" lean-forward="true" selection-start-line="11" selection-start-column="25" selection-end-line="11" selection-end-column="25" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/ap/middleware.php">
+    <entry file="file://$PROJECT_DIR$/app/worker/controller/User.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="276">
-          <caret line="22" lean-forward="true" selection-start-line="22" selection-end-line="22" />
+        <state relative-caret-position="250">
+          <caret line="16" column="1" lean-forward="true" selection-start-line="16" selection-start-column="1" selection-end-line="16" selection-end-column="1" />
+          <folding>
+            <element signature="e#132#152#0#PHP" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/api/route/api.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="16" column="21" lean-forward="true" selection-start-line="16" selection-start-column="21" selection-end-line="16" selection-end-column="21" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/addons/text/controller/Pugin.php">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/ap/config/route.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="552">
-          <caret line="30" column="34" lean-forward="true" selection-start-line="30" selection-start-column="34" selection-end-line="30" selection-end-column="34" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/addons/text/controller/Text.php">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/ap/controller/v1/Index.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="253">
-          <caret line="16" column="22" selection-start-line="16" selection-start-column="22" selection-end-line="16" selection-end-column="22" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/public/favicons.ico">
+      <provider selected="true" editor-type-id="images" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/runtime/ap/log/202006/01.log">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="368">
-          <caret line="16" column="99" selection-start-line="16" selection-start-column="99" selection-end-line="16" selection-end-column="99" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/public/favicon.ico">
+      <provider selected="true" editor-type-id="images" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/controller/ap/v1/User1.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="1885">
-          <caret line="83" column="5" lean-forward="true" selection-start-line="9" selection-start-column="3" selection-end-line="83" selection-end-column="5" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/view/web/index/index.html">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/ap/route/ap.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="184">
-          <caret line="8" selection-start-line="8" selection-end-line="8" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/view/admin/wechat/level_add.html">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/vendor/topthink/framework/src/think/response/Json.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/wechat/index.html">
+      <provider selected="true" editor-type-id="text-editor" />
+    </entry>
+    <entry file="file://$PROJECT_DIR$/view/admin/wechat/add.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="368">
-          <caret line="42" column="29" selection-start-line="42" selection-start-column="23" selection-end-line="42" selection-end-column="29" />
+        <state relative-caret-position="-414">
           <folding>
-            <element signature="e#650#667#0#PHP" expanded="true" />
+            <element signature="n#style#0;n#span#0;n#!!top" expanded="true" />
+            <element signature="n#style#0;n#span#0;n#!!top" expanded="true" />
           </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/vendor/topthink/framework/src/helper.php">
+    <entry file="file://$PROJECT_DIR$/app/worker/controller/Worker.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="1924">
-          <caret line="324" column="45" selection-start-line="324" selection-start-column="40" selection-end-line="324" selection-end-column="45" />
+        <state relative-caret-position="299">
+          <caret line="20" lean-forward="true" selection-start-line="20" selection-end-line="20" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/extend/lemo/service/WechatApp.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-621" />
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/extend/lemo/service/Predis.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-690" />
-      </provider>
-    </entry>
-    <entry file="file://$PROJECT_DIR$/extend/lemo/api/Oauth.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="176">
-          <caret line="50" column="12" lean-forward="true" selection-start-line="50" selection-start-column="12" selection-end-line="56" selection-end-column="64" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/view/admin/user/index.html">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/extend/lemo/api/Token.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-3842">
-          <caret line="63" lean-forward="true" selection-start-line="63" selection-end-line="63" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/view/admin/user/level_add.html">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/ap/controller/v1/Token.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="552">
-          <caret line="29" column="22" selection-start-line="29" selection-start-column="22" selection-end-line="29" selection-end-column="22" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/view/admin/user/level_index.html">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/any_college.sql">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-579159">
-          <caret line="35" column="31" selection-start-line="35" selection-start-column="31" selection-end-line="35" selection-end-column="31" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/view/admin/training/course.html">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/lm_about.sql">
+    <entry file="file://$PROJECT_DIR$/view/admin/user/add.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="96">
-          <caret line="13659" selection-start-line="13659" selection-end-line="13671" />
+        <state relative-caret-position="-1932">
+          <folding>
+            <element signature="n#style#0;n#span#0;n#!!top" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/About.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/contents/feedback.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="299">
-          <caret line="18" column="1" lean-forward="true" selection-start-line="18" selection-start-column="1" selection-end-line="18" selection-end-column="1" />
+        <state relative-caret-position="736">
+          <caret line="110" selection-start-line="110" selection-end-line="110" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/WxMenu.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/contents/about.html">
       <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/WxMsgHistory.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/contents/index.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="276">
-          <caret line="22" column="1" lean-forward="true" selection-start-line="22" selection-start-column="1" selection-end-line="22" selection-end-column="1" />
+        <state relative-caret-position="-598">
+          <caret line="49" column="25" selection-start-line="49" selection-start-column="20" selection-end-line="49" selection-end-column="25" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/FieldType.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/adv/add.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="345">
-          <caret line="15" lean-forward="true" selection-start-line="15" selection-end-line="15" />
+        <state>
           <folding>
-            <element signature="e#37#65#0#PHP" expanded="true" />
+            <element signature="n#style#0;n#span#0;n#!!top" expanded="true" />
           </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/BaseModel.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="206">
-          <caret line="15" column="42" lean-forward="true" selection-start-line="15" selection-start-column="42" selection-end-line="15" selection-end-column="42" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/view/admin/adv/index.html">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/Config.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="69">
-          <caret line="3" column="25" selection-start-line="3" selection-start-column="25" selection-end-line="3" selection-end-column="25" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/view/admin/adv/pos.html">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/Common.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="299">
-          <caret line="13" selection-start-line="13" selection-end-line="13" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/view/admin/adv/pos_add.html">
+      <provider selected="true" editor-type-id="text-editor" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/User.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/common/footer.html">
+      <provider selected="true" editor-type-id="text-editor" />
+    </entry>
+    <entry file="file://$PROJECT_DIR$/adddata.sql">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="276">
-          <caret line="22" column="1" lean-forward="true" selection-start-line="22" selection-start-column="1" selection-end-line="22" selection-end-column="1" />
+        <state relative-caret-position="348">
+          <caret line="122" column="44" selection-start-line="122" selection-start-column="44" selection-end-line="122" selection-end-column="44" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/ap/controller/v1/User.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/Usermanage.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-805">
-          <caret line="30" column="26" selection-start-line="30" selection-start-column="20" selection-end-line="30" selection-end-column="26" />
+        <state relative-caret-position="345">
+          <caret line="20" column="1" lean-forward="true" selection-start-line="20" selection-start-column="1" selection-end-line="20" selection-end-column="1" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/config/database.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/Information.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="92">
-          <caret line="22" column="46" selection-start-line="22" selection-start-column="46" selection-end-line="22" selection-end-column="46" />
+        <state relative-caret-position="207">
+          <caret line="14" column="1" lean-forward="true" selection-start-line="14" selection-start-column="1" selection-end-line="14" selection-end-column="1" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/event.php">
-      <provider selected="true" editor-type-id="text-editor" />
-    </entry>
-    <entry file="file://$PROJECT_DIR$/app/common.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/Agent.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="345">
-          <caret line="197" column="7" lean-forward="true" selection-start-line="197" selection-start-column="7" selection-end-line="197" selection-end-column="7" />
+        <state relative-caret-position="528">
+          <caret line="54" column="1" lean-forward="true" selection-start-line="54" selection-start-column="1" selection-end-line="54" selection-end-column="1" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/middleware/Notken.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/Certificate.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="6" selection-start-line="11" selection-start-column="6" selection-end-line="11" selection-end-column="6" />
+        <state relative-caret-position="437">
+          <caret line="24" column="12" selection-start-line="24" selection-start-column="12" selection-end-line="24" selection-end-column="12" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/middleware/Token.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/Order.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="25" lean-forward="true" selection-start-line="11" selection-start-column="25" selection-end-line="11" selection-end-column="25" />
+        <state relative-caret-position="552">
+          <caret line="31" column="7" lean-forward="true" selection-start-line="31" selection-start-column="7" selection-end-line="31" selection-end-column="7" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/ap/route/api.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/Finance.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="414">
-          <caret line="21" column="44" lean-forward="true" selection-start-line="21" selection-start-column="44" selection-end-line="21" selection-end-column="44" />
+        <state relative-caret-position="597">
+          <caret line="54" lean-forward="true" selection-start-line="54" selection-end-line="54" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/ap/controller/Login.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/Contents.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="413">
-          <caret line="46" column="28" lean-forward="true" selection-start-line="46" selection-start-column="28" selection-end-line="46" selection-end-column="28" />
+        <state relative-caret-position="275">
+          <caret line="93" column="6" lean-forward="true" selection-start-line="93" selection-start-column="6" selection-end-line="93" selection-end-column="6" />
           <folding>
-            <element signature="e#99#125#0#PHP" expanded="true" />
+            <element signature="e#69#103#0#PHP" expanded="true" />
           </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/adddata.sql">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="547">
-          <caret line="53" column="43" selection-start-line="53" selection-start-column="43" selection-end-line="53" selection-end-column="43" />
-        </state>
-      </provider>
-    </entry>
   </component>
 </project>

+ 270 - 53
php/adddata.sql

@@ -1,56 +1,273 @@
 DROP TABLE IF EXISTS `lm_user`;
 CREATE TABLE `lm_user`  (
   `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
-  `user` varchar (128) NULL DEFAULT '' COMMENT '用户',
-  `name` varchar (128) NULL DEFAULT '' COMMENT '呢称',
-  `pwd` varchar (255) NULL DEFAULT '' COMMENT '密码',
-  `openid` varchar (255) NULL DEFAULT '' COMMENT '微信登录openid',
-  `token` varchar (255) NULL DEFAULT '' COMMENT 'token',
-  `money` decimal (20,2) NULL DEFAULT '0' COMMENT '账号余额',
-  `push_money` decimal (20,2) NULL DEFAULT '0' COMMENT '发布余额',
-  `status` int (1) NULL DEFAULT '0' COMMENT '0 正常 1 禁止登录',
-  `status_time` varchar (20) NULL DEFAULT '' COMMENT '封号时间',
-  `create_time` varchar (20) NULL DEFAULT '' COMMENT '创建时间',
-  `vip_time` varchar (20) NULL DEFAULT '' COMMENT '会员到期时间',
-  `vip_level` int (1) NULL DEFAULT 0 COMMENT '0 普通会员 1 周卡 2月卡 3 年卡 ',
-  PRIMARY KEY (`id`) USING BTREE
-) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户表' ROW_FORMAT = Compact;
-
-
-DROP TABLE IF EXISTS `lm_task`;
-CREATE TABLE `lm_task`  (
-  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
-  `type` int (11)  DEFAULT 0 COMMENT '0 实名制 1 下载注册 2 网页注册 3 关注投票 4 分享转发 5电子商务 6多天任务 7 特单任务',
-  `user_id` int (11)  DEFAULT 0 COMMENT '用户id',
-  `name` varchar (128)  DEFAULT '' COMMENT '任务名称',
-  `explain` varchar (255)  DEFAULT '' COMMENT '任务说明',
-  `text` text  DEFAULT '' COMMENT '任务步骤',
-`num` int (11)  DEFAULT 0 COMMENT '剩余数量',
-`nums` int (11)  DEFAULT 0 COMMENT '总数量',
-`money` decimal (11,2)  DEFAULT 0 COMMENT '实际金额',
-`put_money` decimal (11,2)  DEFAULT 0 COMMENT '上架金额',
-`status` int (11)  DEFAULT 0 COMMENT '0 审核中 1 审核通过 2 审核失败 3 已完成 4 已禁止',
-`msg` varchar (128)  DEFAULT '' COMMENT '审核失败原因 ',
-`repeat` int (11)  DEFAULT 0 COMMENT '0 可以重复做 1 不可以 ',
-  `end_task_time` varchar (20) NULL DEFAULT '' COMMENT '设置的结束时间',
-  `push_time` varchar (20) NULL DEFAULT '' COMMENT '提交时间',
-  `examine_time` varchar (20) NULL DEFAULT '' COMMENT '审核时长时间',
-  `create_time` varchar (20) NULL DEFAULT '' COMMENT '创建时间',
-  `update_time` varchar (20) NULL DEFAULT '' COMMENT '更新时间',
-  PRIMARY KEY (`id`) USING BTREE
-) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '任务列表' ROW_FORMAT = Compact;
-
-
-DROP TABLE IF EXISTS `lm_task_order`;
-CREATE TABLE `lm_task_order`  (
-  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
-  `user_id` int (11)  DEFAULT 0 COMMENT '用户id',
-  `user_id` int (11)  DEFAULT 0 COMMENT '商户id',
-  `task_id` int (11)  DEFAULT 0 COMMENT '任务id',
-  `push` int (32)  DEFAULT 0 COMMENT '提交时长',
-  `examine` int (32)  DEFAULT 0 COMMENT '审核时长',
-  `add_time` varchar (20)  DEFAULT 0 COMMENT '添加时间',
-  `push_time` varchar (20)  DEFAULT 0 COMMENT '提交任务时间',
-  `content` text DEFAULT '' COMMENT '驳回数据',
-  PRIMARY KEY (`id`) USING BTREE
-) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '订单列表' ROW_FORMAT = Compact;
+  `uuid` varchar (128)  DEFAULT '' COMMENT 'uuid',
+  `code` varchar (128)  DEFAULT '' COMMENT '邀请码',
+  `phone` varchar (20)  DEFAULT '' COMMENT '手机号',
+  `mail` varchar (20)  DEFAULT '' COMMENT '邮件',
+  `name` varchar (128)  DEFAULT '' COMMENT '呢称',
+  `pwd` varchar (255)  DEFAULT '' COMMENT '密码',
+  `token` varchar (255)  DEFAULT '' COMMENT 'token',
+  `money` decimal (20,2)  DEFAULT '0' COMMENT '通证余额',
+  `ensure_money` decimal (20,2)  DEFAULT '0' COMMENT '保证金',
+  `push_money` decimal (20,2)  DEFAULT '0' COMMENT '可售额度',
+  `pool_money` decimal (20,2)  DEFAULT '0' COMMENT '矿池矿金',
+  `status` int (1)  DEFAULT '0' COMMENT '0 正常 1 禁止登录',
+  `status_time` varchar (20)  DEFAULT '' COMMENT '封号时间',
+  `add_time` varchar (20)  DEFAULT '' COMMENT '创建时间',
+  `update_time` varchar (20)  DEFAULT '' COMMENT '更新时间即使活跃时间',
+  `vip_level` int (1)  DEFAULT 0 COMMENT ' 等级 ',
+  `is_admin` int (1)  DEFAULT 0 COMMENT '0 不是后台账号 1是 ',
+  `sex` varchar (10)  DEFAULT '男' COMMENT '男女 ',
+  `image` varchar (255)  DEFAULT '' COMMENT '头像 ',
+  `pid` int (11)  DEFAULT 0 COMMENT '上级id ',
+  `team` int (11)  DEFAULT 0 COMMENT '团队人数 ',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户表' ROW_FORMAT = Compact;
+
+
+DROP TABLE IF EXISTS `lm_user_message`;
+CREATE TABLE `lm_user_message`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `user_id` int (11)  DEFAULT 0 COMMENT '用户id',
+  `phone` varchar (20)  DEFAULT '' COMMENT '手机号',
+  `name` varchar (20)  DEFAULT '' COMMENT '银行卡持卡人',
+  `bank_name` varchar (255)  DEFAULT '' COMMENT '银行卡名称',
+  `bank_number` varchar (255)  DEFAULT '' COMMENT '银行卡号',
+  `bank_branch` varchar (255)  DEFAULT '' COMMENT '开户支行',
+  `ali_pay` varchar (255)  DEFAULT '' COMMENT '支付宝账号',
+  `wx_pay` varchar (255)  DEFAULT '' COMMENT '微信账号',
+  `ali_pay_image` varchar (255)  DEFAULT '' COMMENT '支付宝收款码',
+  `wx_pay_image` varchar (255)  DEFAULT '' COMMENT '微信收款码',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '会员收款信息' ROW_FORMAT = Compact;
+
+DROP TABLE IF EXISTS `lm_user_level`;
+CREATE TABLE `lm_user_level`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `level` int (11)  DEFAULT 0 COMMENT '等级',
+  `bili` varchar (20)  DEFAULT '0' COMMENT '优惠比例',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '会员等级优惠' ROW_FORMAT = Compact;
+
+
+DROP TABLE IF EXISTS `lm_mining`;
+CREATE TABLE `lm_mining`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `num` int (11)  DEFAULT 0 COMMENT '数量',
+  `mining` int (11)  DEFAULT 0 COMMENT '矿池数量',
+  `enlarge_quota` int (11)  DEFAULT 0 COMMENT '放大额度',
+   `ensure_money` decimal (20,2)  DEFAULT '0' COMMENT '保证金',
+   `breach_money` decimal (20,2)  DEFAULT '0' COMMENT '违约金',
+   `out_game` decimal (20,2)  DEFAULT '0' COMMENT '出局手续费',
+   `direct_push` decimal (20,2)  DEFAULT '0' COMMENT '直推获得',
+   `second_push` decimal (20,2)  DEFAULT '0' COMMENT '次推获得',
+   `create_time` varchar (20)DEFAULT '' COMMENT '创建时间',
+   `status` int (1)DEFAULT 0 COMMENT '0 进行中 1 暂停中',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '矿区' ROW_FORMAT = Compact;
+
+DROP TABLE IF EXISTS `lm_banner`;
+CREATE TABLE `lm_banner`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `image` varchar (255)  DEFAULT '' COMMENT '图片',
+  `status` int (1)  DEFAULT '0' COMMENT '0 显示 1 不显示',
+  `text` text  DEFAULT '' COMMENT '内容',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '轮播图' ROW_FORMAT = Compact;
+
+DROP TABLE IF EXISTS `lm_notice`;
+CREATE TABLE `lm_notice`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `name` varchar (255)  DEFAULT '' COMMENT '标题',
+  `status` int (1)  DEFAULT '0' COMMENT '0 显示 1 不显示',
+  `text` text  DEFAULT '' COMMENT '内容',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '公告' ROW_FORMAT = Compact;
+
+DROP TABLE IF EXISTS `lm_message`;
+CREATE TABLE `lm_message`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `type` int (10)  DEFAULT '0' COMMENT '0 系统提示 1 资金 2 交易',
+  `name` varchar (255)  DEFAULT '' COMMENT '标题',
+  `status` int (1)  DEFAULT '0' COMMENT '0 未度 1 已读',
+  `content` varchar (255)  DEFAULT '' COMMENT '说明',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '消息推送' ROW_FORMAT = Compact;
+
+
+DROP TABLE IF EXISTS `lm_problem`;
+CREATE TABLE `lm_problem`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `name` varchar (255)  DEFAULT '' COMMENT '标题',
+  `text` text  DEFAULT '' COMMENT '说明',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '常见问题' ROW_FORMAT = Compact;
+
+
+DROP TABLE IF EXISTS `lm_phone_code`;
+CREATE TABLE `lm_phone_code`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `phone` varchar (20)  DEFAULT '' COMMENT '手机号',
+  `code` varchar (20)  DEFAULT '' COMMENT '验证码',
+  `add_time` varchar (20)  DEFAULT '' COMMENT '验证码',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '验证码' ROW_FORMAT = Compact;
+
+DROP TABLE IF EXISTS `lm_feedback`;
+CREATE TABLE `lm_feedback`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `user_id` int (11) DEFAULT 0 COMMENT '用户id',
+  `content` varchar (255)DEFAULT '' COMMENT '内容',
+  `image` text DEFAULT '' COMMENT '图片,拼接',
+  `add_time` text DEFAULT '' COMMENT '添加时间',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '反馈意见' ROW_FORMAT = Compact;
+
+DROP TABLE IF EXISTS `lm_state`;
+CREATE TABLE `lm_state`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `user_id` int (11) DEFAULT 0 COMMENT '用户id',
+  `order` int (11) DEFAULT 0 COMMENT '订单id',
+  `content` varchar (255)DEFAULT '' COMMENT '内容',
+  `image` text DEFAULT '' COMMENT '图片,拼接',
+  `add_time` text DEFAULT '' COMMENT '添加时间',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '申述' ROW_FORMAT = Compact;
+
+DROP TABLE IF EXISTS `lm_order`;
+CREATE TABLE `lm_order`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `type` int (1)  DEFAULT 0 COMMENT '0 买入 1 卖出',
+  `buy_user` int (11)  DEFAULT 0 COMMENT '购买用户id',
+  `push_user` int (11)  DEFAULT 0 COMMENT '卖出用户id',
+  `number` int (11)  DEFAULT 0 COMMENT '发布数量',
+  `enlarge_quota` int (11)  DEFAULT 0 COMMENT '放大额度',
+  `order` varchar (255)  DEFAULT '' COMMENT '订单编号',
+  `mining_id` int (11)  DEFAULT 0 COMMENT '区块id',
+  `status` int (1)  DEFAULT 0 COMMENT '0 无匹配或待支付 1 已匹配或已支付 3 已完成 4 已撤销 5 交易失败',
+  `add_time` varchar (20)  DEFAULT '' COMMENT '添加时间',
+  `stat_time` varchar (20)  DEFAULT '' COMMENT '未支付结束时间',
+  `end_time` varchar (20)  DEFAULT '' COMMENT '完成时间',
+  `msg` varchar (255)  DEFAULT '' COMMENT '失败原因',
+  `image`text  DEFAULT '' COMMENT '上传图片,拼接',
+  `breach_money` decimal (20,2)  DEFAULT '0' COMMENT '违约金',
+   `out_game` decimal (20,2)  DEFAULT '0' COMMENT '出局手续费',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '发布订单' ROW_FORMAT = Compact;
+
+DROP TABLE IF EXISTS `lm_order_frequency`;
+CREATE TABLE `lm_order_frequency`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `user_id` int (11)  DEFAULT 0 COMMENT '用户id',
+  `mining_id` int (11)  DEFAULT 0 COMMENT '区块id',
+  `buy` int (11)  DEFAULT 0 COMMENT '买入次数',
+  `push` int (11)  DEFAULT 0 COMMENT '卖出次数',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '交易次数统计' ROW_FORMAT = Compact;
+
+DROP TABLE IF EXISTS `lm_vendibility_finance`;
+CREATE TABLE `lm_vendibility_finance`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `user_id` int (11)  DEFAULT 0 COMMENT '用户id',
+  `mining_id` int (11)  DEFAULT 0 COMMENT '区块id',
+  `money` decimal (20,2)  DEFAULT 0 COMMENT '获得交易区块',
+  `pool` int(11)  DEFAULT 0 COMMENT '矿池数量',
+  `push_money` decimal (20,2)  DEFAULT 0 COMMENT '可售额度',
+  `add_time` varchar (20) DEFAULT '' COMMENT '添加时间',
+  `buy` int (11) DEFAULT 0 COMMENT '当前买入次数',
+  `push` int (11) DEFAULT 0 COMMENT '当前卖出次数',
+  `status` int (1) DEFAULT 0 COMMENT '0 增加 1 减少',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '可售余额' ROW_FORMAT = Compact;
+
+
+DROP TABLE IF EXISTS `lm_commission_finance`;
+CREATE TABLE `lm_commission_finance`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `user_id` int (11)  DEFAULT 0 COMMENT '用户id',
+  `name` varchar (255)  DEFAULT '' COMMENT '名称',
+  `money` decimal (20,2)  DEFAULT 0 COMMENT '金额',
+   `status` int (1) DEFAULT 0 COMMENT '0 增加 1 减少',
+  `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '佣金记录' ROW_FORMAT = Compact;
+
+
+DROP TABLE IF EXISTS `lm_bond_finance`;
+CREATE TABLE `lm_bond_finance`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `user_id` int (11)  DEFAULT 0 COMMENT '用户id',
+  `name` varchar (255)  DEFAULT '' COMMENT '名称',
+  `money` decimal (20,2)  DEFAULT 0 COMMENT '金额',
+   `status` int (1) DEFAULT 0 COMMENT '0 增加 1 减少',
+  `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '保证金记录' ROW_FORMAT = Compact;
+
+DROP TABLE IF EXISTS `lm_bond`;
+CREATE TABLE `lm_bond`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `user_id` int (11)  DEFAULT 0 COMMENT '用户id',
+  `type` int (1)  DEFAULT 0 COMMENT '0 充值 1 提现',
+  `money` decimal (20,2)  DEFAULT 0 COMMENT '金额',
+   `status` int (1) DEFAULT 0 COMMENT '0 申请中 1 审核通过',
+  `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '保证金提现和充值' ROW_FORMAT = Compact;
+
+
+DROP TABLE IF EXISTS `lm_general_finance`;
+CREATE TABLE `lm_general_finance`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `user_id` int (11)  DEFAULT 0 COMMENT '用户id',
+  `money` decimal (20,2)  DEFAULT 0 COMMENT '金额',
+  `actual_money` decimal (20,2)  DEFAULT 0 COMMENT '实际到账金额',
+  `charge_money` decimal (20,2)  DEFAULT 0 COMMENT '手续费',
+   `status` int (1) DEFAULT 0 COMMENT '0 申请中 1 审核通过',
+  `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '通证充值' ROW_FORMAT = Compact;
+
+
+DROP TABLE IF EXISTS `lm_general_transfer`;
+CREATE TABLE `lm_general_transfer`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `user_id` int (11)  DEFAULT 0 COMMENT '用户id',
+  `puser_id` int (11)  DEFAULT 0 COMMENT '收款用户id',
+  `account` varchar (255)  DEFAULT 0 COMMENT '转账账户',
+  `money` decimal (20,2)  DEFAULT 0 COMMENT '金额',
+   `status` int (1) DEFAULT 0 COMMENT '0 申请中 1 审核通过',
+  `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '通证转账' ROW_FORMAT = Compact;
+
+
+DROP TABLE IF EXISTS `lm_finance`;
+CREATE TABLE `lm_finance`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `user_id` int (11)  DEFAULT 0 COMMENT '用户id',
+  `name` varchar (255)  DEFAULT 0 COMMENT '金额',
+  `money` decimal (20,2)  DEFAULT 0 COMMENT '金额',
+  `status` int (1)  DEFAULT 0 COMMENT '0 增加 1减少',
+  `add_time` varchar (20) DEFAULT 0 COMMENT '添加时间',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '资产明细' ROW_FORMAT = Compact;
+
+
+DROP TABLE IF EXISTS `lm_system`;
+CREATE TABLE `lm_system`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `name` varchar (128)  DEFAULT '' COMMENT '变量名称',
+  `value` text  DEFAULT '' COMMENT '内容',
+  `type` varchar (128) DEFAULT '' COMMENT '类型',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '系统设置' ROW_FORMAT = Compact;
+
+
+DROP TABLE IF EXISTS `lm_about`;
+CREATE TABLE `lm_about`  (
+  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
+  `text` text  DEFAULT '' COMMENT '内容',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '关于我们' ROW_FORMAT = Compact;

+ 0 - 18
php/addons/text/config.php

@@ -1,18 +0,0 @@
-<?php
-/**
- * Created by PhpStorm.
- * User: anyluck
- * Date: 2020/1/14
- * Time: 17:38
- */
-return [
-    'display' => [
-        'title' => '是否显示:',
-        'type' => 'radio',
-        'options' => [
-            '1' => '显示',
-            '0' => '不显示'
-        ],
-        'value' => '1'
-    ]
-];

+ 0 - 63
php/addons/text/controller/Pugin.php

@@ -1,63 +0,0 @@
-<?php
-/**
- * Created by PhpStorm.
- * User: Administrator
- * Date: 2020/1/14
- * Time: 17:05
- */
-
-namespace addons\text;
-
-
-use think\Addons;
-
-/**
- * Class Pugin
- * @package addons\text
- */
-class Pugin extends Addons
-{
-    // 该插件的基础信息
-    public $info = [
-        'name' => 'test',    // 插件标识
-        'title' => '插件测试',    // 插件名称
-        'description' => 'thinkph6插件测试',    // 插件简介
-        'status' => 0,    // 状态
-        'author' => 'byron sampson',
-        'version' => '0.1'
-    ];
-
-
-    /**
-     * 插件安装方法
-     * @return bool
-     */
-    public function install()
-    {
-        // TODO: Implement install() method.
-        return true;
-    }
-    /**
-     * 插件卸载方法
-     * @return bool
-     */
-    public function uninstall()
-    {
-        // TODO: Implement uninstall() method.
-        return true;
-    }
-
-    /**
-     * 实现的testhook钩子方法
-     * @return mixed
-     */
-    public function testhook($param)
-    {
-        // 调用钩子时候的参数信息
-        print_r($param);
-        // 当前插件的配置信息,配置信息存在当前目录的config.php文件中,见下方
-        print_r($this->getConfig());
-        // 可以返回模板,模板文件默认读取的为插件目录中的文件。模板名不能为空!
-        return $this->fetch('info');
-    }
-}

+ 0 - 15
php/addons/text/controller/Text.php

@@ -1,15 +0,0 @@
-<?php
-/**
- * Created by PhpStorm.
- * User: anyluck
- * Date: 2020/1/14
- * Time: 17:29
- */
-
-namespace addons\text;
-
-
-class Text
-{
-
-}

+ 0 - 10
php/addons/text/view/pugin/info.html

@@ -1,10 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta charset="UTF-8">
-    <title>Title</title>
-</head>
-<body>
-
-</body>
-</html>

File diff suppressed because it is too large
+ 0 - 25016
php/any_college.sql


File diff suppressed because it is too large
+ 0 - 25064
php/any_college2020-2-27.sql


+ 0 - 255
php/app/admin/controller/Adv.php

@@ -1,255 +0,0 @@
-<?php
-/**
- * lemocms
- * ============================================================================
- * 版权所有 2018-2027 lemocms,并保留所有权利。
- * 网站地址: https://www.lemocms.com
- * ----------------------------------------------------------------------------
- * 采用最新Thinkphp6实现
- * ============================================================================
- * Author: yuege
- * Date: 2019/8/2
- */
-namespace app\admin\controller;
-
-use app\common\controller\Backend;
-use app\common\model\AdvPosition;
-use think\facade\Db;
-use think\facade\Request;
-use think\facade\View;
-use app\common\model\Adv as AdvModel;
-class Adv extends Backend {
-
-    public function initialize(){
-        parent::initialize();
-    }
-    /*-----------------------广告管理----------------------*/
-    // 广告列表
-    public function index()
-    {
-        if(Request::isPost()){
-            $keys = Request::post('keys','','trim');
-            $page = Request::post('page') ? Request::post('page') : 1;
-            $list=Db::name('adv')->alias('a')
-                ->join('adv_position ap','a.pid = ap.id','left')
-                ->field('a.*,ap.position_name,ap.position_desc')
-                ->where('a.ad_name','like','%'.$keys.'%')
-                ->order('a.sort desc,a.id desc')
-                ->paginate(['list_rows' => $this->pageSize, 'page' => $page])
-                ->toArray();
-            return $result = ['code'=>0,'msg'=>lang('get info success'),'data'=>$list['data'],'count'=>$list['total']];
-        }
-
-        return View::fetch();
-    }
-
-    // 广告添加
-    public function add()
-    {
-        if (Request::isPost()) {
-            $data = Request::post();
-            try{
-                $this->validate($data, 'Adv');
-            }catch (\Exception $e){
-                $this->error($e->getMessage());
-            }
-            if($data['time']){
-                $time = explode(' - ',$data['time']);
-                $data['start_time'] = strtotime($time[0]);
-                $data['end_time'] = strtotime($time[1]);
-            }else{
-                $data['start_time'] = '';
-                $data['end_time'] = '';
-            }
-
-            //添加
-            $result = AdvModel::create($data);
-            if ($result) {
-                $this->success(lang('add success'), url('index'));
-            } else {
-                $this->error(lang('add fail'));
-            }
-        } else {
-            $info = '';
-            $posGroup = AdvPosition::where('status', 1)->select();
-            $view = [
-                'info'  =>$info,
-                'posGroup' => $posGroup,
-                'title' => lang('add'),
-            ];
-            View::assign($view);
-            return View::fetch();
-        }
-    }
-    /**
-     * 广告修改
-     */
-    public function edit()
-    {
-        if (Request::isPost()) {
-            $data = Request::post();
-            try{
-                $this->validate($data, 'Adv');
-            }catch (\Exception $e){
-                $this->error($e->getMessage());
-            }
-            AdvModel::update($data);
-            $this->success(lang('edit success'), url('index'));
-
-        } else {
-            $id = Request::param('id');
-            if ($id) {
-                $posGroup = AdvPosition::where('status', 1)->select();
-                $info = AdvModel::find($id);
-                $info['time'] = date('Y-m-d',$info['start_time']).' - '.date('Y-m-d',$info['end_time']);
-                $view = [
-                    'info' => $info,
-                    'posGroup' => $posGroup,
-                    'title' => '编辑',
-                ];
-                View::assign($view);
-                return View::fetch('add');
-            }
-        }
-    }
-
-
-    // 广告删除
-    public function delete()
-    {
-        $id = Request::post('id');
-        AdvModel::destroy($id);
-        $this->success(lang('delete success'));
-
-    }
-
-
-
-    // 广告状态修改
-    public function state()
-    {
-        if (Request::isPost()) {
-            $id = Request::post('id');
-            if (empty($id)) {
-                $this->error('id'.lang('not exist'));
-            }
-            $adv = AdvModel::find($id);
-            $status = $adv['status'] == 1 ? 0 : 1;
-            $adv->status = $status;
-            $adv->save();
-            $this->success(lang('edit success'));
-        }
-    }
-
-
-    /*-----------------------广告位置管理----------------------*/
-
-    // 广告位置管理
-    public function pos()
-    {
-        if(Request::isPost()){
-            //条件筛选
-            $keys = Request::param('keys');
-
-            //查出所有数据
-            $list = AdvPosition::where('position_name','like','%'.$keys.'%')
-                ->order('id desc')
-                ->paginate(
-                    $this->pageSize, false,
-                    ['query' => Request::param()]
-                )->toArray();
-            return $result = ['code'=>0,'msg'=>lang('get info success'),'data'=>$list['data'],'count'=>$list['total']];
-
-        }
-
-
-        return View::fetch();
-
-    }
-
-
-
-    // 广告位置添加
-    public function posAdd()
-    {
-        if (Request::isPost()) {
-            $data = Request::post();
-            try {
-                $this->validate($data, 'AdvPosition');
-            } catch (\Exception $e) {
-                $this->error($e->getMessage());
-            }
-            $result = AdvPosition::create($data);
-            if ($result) {
-                $this->success(lang('add  success'), url('pos'));
-            } else {
-                $this->error(lang('add fail'));
-            }
-
-        } else {
-            $view = [
-                'info' => null,
-                'title' => lang('add')
-            ];
-            View::assign($view);
-            return View::fetch('pos_add');
-        }
-    }
-
-    // 广告位置修改
-    public function posEdit()
-    {
-        if (Request::isPost()) {
-            $data = Request::post();
-
-            try{
-                $this->validate($data, 'AdvPosition');
-            }catch (\Exception $e){
-                $this->error($e->getMessage());
-            }
-            $where['id'] = $data['id'];
-            $res = AdvPosition::update($data, $where);
-            if($res){
-
-                $this->success(lang('edit success'), url('pos'));
-            }else{
-                $this->error(lang('edit fail'));
-
-            }
-
-        } else {
-            $id = Request::param('id');
-            $info = AdvPosition::find(['id' => $id]);
-            $view = [
-                'info' => $info,
-                'title' => lang('edit')
-            ];
-            View::assign($view);
-            return View::fetch('pos_add');
-        }
-    }
-
-    // 广告位置状态修改
-    public function posState()
-    {
-        if (Request::isPost()) {
-            $id = Request::param('id');
-            $info = AdvPosition::find($id);
-            $info->status = $info['status'] == 1 ? 0 : 1;
-            $info->save();
-            $this->success(lang('edit success'));
-
-        }
-    }
-    // 广告位置删除
-    public function posDel()
-    {
-        $id = Request::post('id');
-
-        AdvPosition::destroy($id);
-        $this->success(lang('delete success'));
-
-
-    }
-
-   }

+ 55 - 0
php/app/admin/controller/Agent.php

@@ -0,0 +1,55 @@
+<?php
+/**
+ *
+ * User: anyluck
+ * Date: 2020/6/2
+ * Time: 17:36
+ */
+
+namespace app\admin\controller;
+
+
+class Agent
+{
+ // 代理商
+
+    /**
+     * 代理商列表
+     */
+    public function index()
+    {
+        
+    }
+
+    /**
+     * 代理商详情
+     */
+    public function show()
+    {
+
+    }
+
+    /**
+     * 停用代理商
+     */
+    public function update_status()
+    {
+
+    }
+
+    /**
+     * 下级用户列表
+     */
+    public function xiaji()
+    {
+        
+    }
+
+    /**
+     * 代理充值
+     */
+    public function chongzhi()
+    {
+
+    }
+}

+ 31 - 0
php/app/admin/controller/Certificate.php

@@ -0,0 +1,31 @@
+<?php
+/**
+ *
+ * User: anyluck
+ * Date: 2020/6/2
+ * Time: 17:39
+ */
+
+namespace app\admin\controller;
+
+
+class Certificate
+{
+ //通证管理
+
+    /**
+     * 通证管理
+     */
+    public function index()
+    {
+        
+    }
+
+    /**
+     * BTS管理
+     */
+    public function bts()
+    {
+
+    }
+}

+ 3 - 13
php/app/admin/controller/Contents.php

@@ -103,17 +103,12 @@ class Contents extends Backend
             json_result(1,"修改成功");
         }
         $data=Db::name("about")->where(["id"=>1])->value("text");
-//        var_dump(date("Y-m-d",time()));
-
-
         $view = [
             'info' => $data,
             'title' => lang('add'),
         ];
         View::assign($view);
        return View::fetch();
-
-
     }
 
     //
@@ -126,15 +121,10 @@ class Contents extends Backend
             $page=input("page")?:1;
             $limit=input("limit")?:10;
             $where=[];
-            if ($name){
-                $where["name"]=["like","% $name %"];
-            }
+//            if ($name){
+//                $where["name"]=["like","% $name %"];
+//            }
             $list=Db::name("feedback")->order("id desc")->where($where)->paginate(["list_row"=>$limit,"page"=>$page])->each(function ($item){
-                if ($item["create_time"]){
-//                    var_dump($item["create_time"]);
-//                    $date=date('Y-m-s h:i:s',$item["create_time"]);
-//                    $item["create_time"]=$date;
-                }
                 return $item;
 
             })->toArray();

+ 0 - 330
php/app/admin/controller/Curriculum.php

@@ -1,330 +0,0 @@
-<?php
-//declare (strict_types = 1);
-
-namespace app\admin\controller;
-
-use app\admin\model\Video;
-use app\common\controller\Backend;
-
-use think\facade\Db;
-use think\facade\Request;
-use think\facade\Session;
-use think\facade\View;
-use Ramsey\Uuid\Uuid;
-
-class Curriculum extends Backend
-{
-    // todo 课程管理
-
-    // 上传的课程
-    public function index()
-    {
-//        Uuid::uuid1();
-    }
-
-    // 我发布的课程
-    public function my()
-    {
-        if (Request::isPost()) {
-            $page = input("page") ?: 1;
-            $name = input("name", '', 'trim');
-//            $admin = is_admin();
-            $where = [];
-//            if ($admin) {
-//                $where["c.subject_id"] = $admin;
-//            }
-            if ($name) {
-                $where["c.grade|s.name|su.name"] = $name;
-            }
-
-            if ( $this->quanxian==1){
-                $where["c.creater_id"]=$this->adminid;
-            }
-            if ($this->project){
-                $where["c.major_id"]=$this->project;
-            }
-            $list = Db::name("course")
-                ->alias("c")
-                ->order("c.id desc")
-                ->leftJoin("subject s", "c.major_id=s.id")
-                ->leftJoin("subject su", "c.subject_id=su.id")
-                ->where($where)
-                ->field("c.*,s.name major,su.name subject")
-                ->paginate(['list_rows' => $this->pageSize, 'page' => $page])
-                ->each(function ($item) {
-                    if ($item["create_time"]) {
-                        $item["create_time"] = date('Y-m-d H:i:s', $item["create_time"]);
-                    }
-                    return $item;
-                })
-                ->toArray();
-            return $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data'], 'count' => $list['total']];
-        }
-        return View::fetch();
-    }
-
-// 删除课程
-    public function del_course()
-    {
-        $id = input("id");
-        $course = Db::name("course")->where(["id" => $id])->delete();
-        if ($course) {
-            json_result(1, "操作成功");
-        }
-        json_result(2, "操作失败");
-
-    }
-
-// 添加或者修改课程
-    public function add()
-    {
-        if (Request::isPost()) {
-            $id = input("id");
-            $add["major_id"] = input("major_id") ?: json_result(2, "请选择专业");
-            $add["subject_id"] = input("subject_id") ?: json_result(2, "请选科目");
-//            $add["founder"]=
-            $add["person"] = input("person") ?: json_result(2, "请填写加入学习计划人数");
-            $add["image"] = input("image") ?: json_result(2, "请选封面");
-            $add["teachers"] = input("teachers") ?: json_result(2, "请选任课教师");
-            $add["content"] = input("content") ?: json_result(2, "请选科目简介");
-            $add["grade"] = input("grade") ?: json_result(2, "请选年级");
-//            $add["name"] = input("name") ?: json_result(2, "请选课程名");
-            $add["class_id"] = input("class_id") ?: json_result(2, "请选课程");
-
-
-
-            $add["update_time"] = time();
-
-            $name=Db::name("subject")->where(["id"=>$add["subject_id"]])->find();
-            $add["name"] =$name["name"];
-            if ($id) {
-
-                Db::name("course")->where(["id" => $id])->update($add);
-            } else {
-
-                $add["create_time"] = time();
-                $admin=Session::get("admin");
-                $add["founder"] = $admin["username"];
-
-                    $add["creater_id"]=$this->adminid;
-
-
-                Db::name("course")->insert($add);
-            }
-            json_result(1, "操作成功");
-        }
-
-        $id = input("id");
-        if ($id) {
-            $examination = Db::name("course")->where(["id" => $id])->find();
-            $examination["teachers"]=explode(",",$examination["teachers"]);
-        } else {
-            $examination = [];
-        }
-        $data["examination"] = $examination;
-        $whers["major_id"] = ["!=", 0];
-        $data["major"] = Db::name("subject")->where($whers)->select();
-        $data["laboratory"] = Db::name("laboratory")->where("status", "=", "0")->field("id,name,person")->select();
-        $data["user"] = Db::name("user")->where("type", "=", "2")->field("id,name")->select();
-//            dump($data);
-        View::assign("info", $data);
-        return View::fetch();
-    }
-
-    // 科目
-    public function subject_kemu()
-    {
-        $id = input("id");
-        if ($id) {
-            $where["major_id"] = $id;
-            $major = Db::name("subject")->where($where)->field("id,name")->select();
-            if ($major) {
-                json_result(1, "", $major);
-            } else {
-                json_result(2, "未添加科目");
-            }
-        } else {
-            json_result(2);
-        }
-    }
-
-    //课程材料表
-    public function materiallist()
-    {
-
-        if (Request::isPost()) {
-//            dump($course_id);die();
-            $course_id = input("course_id");
-            $page = input("page") ?: 1;
-            $limit = input("limit") ?: 10;
-            $where["course_id"] = $course_id;
-            $list = Db::name("course_material")->where($where)->paginate(["list_rows" => $limit, "page" => $page])->each(function ($item){
-                $item["create_time"]=date("Y-m-d H:i:s",(int)$item["create_time"]);
-                return $item;
-            })->toArray();
-            return $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data'], 'count' => $list['total']];
-        }
-        $course_id = input("course_id");
-        View::assign("course_id", $course_id);
-        return View::fetch();
-
-    }
-
-
-    public function getini()
-    {
-//        ini_set("upload_max_filesize","1000M");//即允许上传文件大小的最大值
-//        ini_set("post_max_size","1001M");//指通过表单POST给PHP的所能接收的最大值
-//        ini_set("memory_limit","9M");//;每个PHP页面所吃掉的最大内存
-
-       $upload_max_filesize= ini_get("upload_max_filesize");
-       $post_max_size= ini_get("post_max_size");
-       $memory_limit= ini_get("memory_limit");
-
-        d($upload_max_filesize);
-        d($post_max_size);
-        d($memory_limit);
-    }
-    // 上传资料
-    public function addmaterial()
-    {
-
-        if (Request::isPost()) {
-            $course_id = input("course_id");
-            $id = input("id");
-            $add["name"] = input("name") ?: json_result(2, "请设置材料名称");
-            $add["url"] = input("url") ?: json_result(2, "请上传材料");
-            $add["update_time"] = time();
-
-            $filesize=0;
-            $filetype="";
-                if (is_file(Pah.$add["url"])){
-                    $filesizes=filesize(Pah.$add["url"]);
-                    $filesize = round($filesizes/1024/1024,2);
-                    $filetype=pathinfo(Pah.$add["url"])["extension"];
-                }
-            $add["size"]=$filesize;
-            $add["type"]=$filetype;
-
-            if ($id) {
-                Db::name("course_material")->where(["id" => $id])->update($add);
-            } else {
-                $add["create_time"] = time();
-                $add["course_id"] = $course_id;
-
-                Db::name("course_material")->insert($add);
-            }
-            json_result(1, "操作成功");
-        }
-
-        $id = input("id");
-        $course_id = input("course_id");
-        $data = Db::name("course_material")->where(["id" => $id])->find();
-        View::assign("info", $data);
-        View::assign("course_id", $course_id);
-
-        return View::fetch();
-
-
-    }
-
-    // 删除课程材料
-    public function del_material()
-    {
-        $id = input("id");
-        Db::name("course_material")->where(["id" => $id])->delete();
-        json_result(1, "删除成功");
-
-    }
-
-    //课程视频表
-    public function videolist()
-    {
-        if (Request::isPost()) {
-            $course_id = input("course_id");
-            $page = input("page") ?: 1;
-            $limit = input("limit") ?: 10;
-            $where["course_id"] = $course_id;
-            $list = Db::name("course_video")->order("order desc")->where($where)->paginate(["list_rows" => $limit, "page" => $page])->each(function ($item){
-                $item["create_time"]=date("Y-m-d H:i:s",(int)$item["create_time"]);
-                return $item;
-            })->toArray();
-            return $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data'], 'count' => $list['total']];
-        }
-        $course_id = input("course_id");
-        View::assign("course_id", $course_id);
-        return View::fetch();
-    }
-
-    // 上传视频
-    public function addvideo()
-    {
-        if (Request::isPost()) {
-
-            $course_id = input("course_id");
-            $id = input("id");
-            $add["name"] = input("name") ?: json_result(2, "请设置视频名称");
-            $add["url"] = input("url") ?: json_result(2, "请上传视频");
-            $add["order"] = input("order") ?: json_result(2, "第几节课程");
-            $add["backimge"] = input("image") ?: json_result(2, "视频封面");
-            $add["update_time"] = time();
-                    if (!is_numeric($add["order"])||strpos($add["order"],".")!==false){
-                        json_result(2,"课程章节 只能是 整数");
-                    }
-
-            if ($add["url"]){
-                $filesize=0;
-                $filetype="";
-                $videotime=0;
-                if (is_file(Pah.$add["url"])){
-                    $filesizes=filesize(Pah.$add["url"]);
-                    $filesize = round($filesizes/1024/1024,2);
-                    $filetype=pathinfo(Pah.$add["url"])["extension"];
-                }
-                if (!$add["backimge"]){
-                    $video=Video::ffmpeg_getTime(Pah.$add["url"]);
-                    $add["backimge"]=$video["img"];
-                    $add["time"]=$video["seconds"];
-//                    dump($video);
-                }else{
-                    $video=Video::video_time(Pah.$add["url"]);
-                    $add["time"]=$video;
-//                    dump($video);
-                }
-
-
-                $add["size"]=$filesize;
-                $add["type"]=$filetype;
-                $add["time_long"]=$tim= gmdate("H:i:s", $add["time"]);;
-            }
-
-//        dump($add);return ;
-            if ($id) {
-                Db::name("course_video")->where(["id" => $id])->update($add);
-            } else {
-                $add["create_time"] = time();
-                $add["course_id"] = $course_id;
-
-                Db::name("course_video")->insert($add);
-            }
-            json_result(1, "操作成功");
-        }
-
-        $id = input("id");
-        $data = Db::name("course_video")->where(["id" => $id])->find();
-        View::assign("info", $data);
-        $course_id = input("course_id");
-        View::assign("course_id", $course_id);
-
-        return View::fetch();
-    }
-
-    // 删除视频
-    public function del_video()
-    {
-        $id = input("id");
-        Db::name("course_video")->where(["id" => $id])->delete();
-        json_result(1, "删除成功");
-
-    }
-}

+ 56 - 0
php/app/admin/controller/Finance.php

@@ -0,0 +1,56 @@
+<?php
+/**
+ *
+ * User: anyluck
+ * Date: 2020/6/2
+ * Time: 17:43
+ */
+
+namespace app\admin\controller;
+
+
+class Finance
+{
+// 财务管理
+
+    /**
+     * 财务统计
+     */
+    public function tongji()
+    {
+
+}
+
+    /**
+     * 充值审核
+     */
+    public function shenhe()
+    {
+
+}
+
+    /**
+     * 充值记录
+     */
+    public function chongzjl()
+    {
+        
+}
+
+    /**
+     * 代理收入
+     */
+    public function daili()
+    {
+
+}
+
+    /**
+     * 赠送记录
+     */
+    public function zhengshon()
+    {
+
+}
+
+}

+ 0 - 393
php/app/admin/controller/Friendship.php

@@ -1,393 +0,0 @@
-<?php
-/**
- *
- * User: anyluck
- * Date: 2020/5/28
- * Time: 12:13
- */
-
-namespace app\admin\controller;
-
-use app\common\controller\Aliyunoss;
-use think\facade\Db;
-use app\common\controller\Backend;
-use think\facade\Request;
-use think\facade\View;
-
-class Friendship extends Backend
-{
-    // 上传图片
-    public function upimage()
-    {
-//        $file = request()->file('image');
-        $file = $_FILES["file"];
-//        $file = $_FILES;
-
-//        dump($file);
-//        die();
-        if (!$file) json_result(400, '请上传图片', '');
-        $Aliyun = new Aliyunoss();
-
-        $aa = $Aliyun->uploadFile($file);
-        json_result(200, '发送成功', $aa);
-    }
-
-    // 主页
-    public function index()
-    {
-
-        // 查询友情链接数量
-        $links=Db::name("links")->count();
-        $banner=Db::name("banner")->count();
-        $user_count=Db::name("admin")->count();
-        // 查询浏览量
-        $liull=Db::name("browse")->where(["type"=>0])->count();
-        $liull_zt=Db::name("browse")->where(["type"=>0])->whereDay("add_time")->count();
-        $user=0;// 独立用户
-        $zhixing=0;// 最终咨询
-
-
-
-        $view = [
-            'info' => [
-                "liull"=>$liull,
-                "liull_zt"=>$liull_zt/($liull-$liull_zt)*100,
-                "user"=>$user,
-                "zhixing"=>$zhixing,
-                "links"=>$links,
-                "banner"=>$banner,
-                "admin"=>$user_count,
-            ],
-            'title' => lang('add'),
-//            'userLevel'=>$userLevel,
-        ];
-        View::assign($view);
-        return View::fetch();
-    }
-
-    // 友情链接列表
-    public function links()
-    {
-        if (Request::isPost()) {
-            $page = input("page") ?: 1;
-            $limit = input("limit") ?: 10;
-            $name = input("name");
-            $where = [];
-            if ($name) {
-                $where["name"] = ["like", "%" . $name . "%"];
-            }
-            $list = Db::name("links")->where($where)->order("pai desc")->paginate(["list_rows" => $limit, "page" => $page])->toArray();
-            return $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data'], 'count' => $list['total']];
-        } else {
-            return View::fetch();
-        }
-
-    }
-
-//添加或修改友情链接
-    public function add_links()
-    {
-        if (Request::isPost()) {
-            $id = input("id");
-            $name = input("name");
-            $url = input("url");
-
-            $add["name"] = $name;
-            $add["url"] = $url;
-            if ($id) {
-                Db::name("links")->where(["id" => $id])->update($add);
-            } else {
-                Db::name("links")->insert($add);
-            }
-            $this->success(lang('add success'), url('links'));
-            return;
-//            json_result(200,"操作成功");
-        }
-        $id = input("id");
-        $info = "";
-        if ($id) {
-            $info = Db::name("links")->where(["id" => $id])->find();
-        }
-        $view = [
-            'info' => $info,
-            'title' => lang('add'),
-//            'userLevel'=>$userLevel,
-        ];
-        View::assign($view);
-        return View::fetch();
-    }
-
-    // 修改状态
-    public function update_links()
-    {
-        $id = input("id");
-        $status = input("status") ?: 0;
-        Db::name("links")->where(["id" => $id])->update(["status" => $status]);
-        json_result(1, "设置成功");
-    }
-
-    // 修改排序
-    public function update_pai_links()
-    {
-        $id = input("id");
-        $value = input("value");
-        $field = input("field");
-        Db::name("links")->where(["id" => $id])->update([$field => $value]);
-        json_result(1, "设置成功");
-    }
-
-    //删除友情链接
-    public function del_links()
-    {
-        $id = input("id");
-        Db::name("links")->where(["id" => $id])->delete();
-        json_result(1, "删除成功");
-    }
-
-    // 导航管理列表
-    public function dh_list()
-    {
-        if (Request::isPost()) {
-            $page = input("page") ?: 1;
-            $limit = input("limit") ?: 10;
-            $name = input("name");
-            $type = input("type");
-            $where = [];
-            if ($name) {
-                $where["name"] = ["like", "%" . $name . "%"];
-            }
-            if ($type) {
-                $where["type"] = $type;
-            }
-            $list = Db::name("dh")->where($where)->order("pai desc")->paginate(["list_rows" => $limit, "page" => $page])->each(function ($item){
-                if ($item["type"]==1){
-                    $item["type"]="商城系统";
-                }elseif ($item["type"]==2){
-                    $item["type"]="解决方案";
-                }else{
-                    $item["type"]="";
-                }
-
-                return $item;
-            })->toArray();
-            return $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data'], 'count' => $list['total']];
-        } else {
-            return View::fetch();
-        }
-    }
-
-    // 修改数据
-    public function update_pai_dh()
-    {
-        $id = input("id");
-        $value = input("value");
-        $field = input("field");
-        Db::name("dh")->where(["id" => $id])->update([$field => $value]);
-        json_result(1, "设置成功");
-    }
-
-    // 修改导航栏状态
-    public function update_dh_status()
-    {
-        $id = input("id");
-        $status = input("status") ?: 0;
-        Db::name("dh")->where(["id" => $id])->update(["status" => $status]);
-        json_result(1, "设置成功");
-    }
-
-    // 删除导航
-    public function del_dh()
-    {
-        $id = input("id");
-        Db::name("dh")->where(["id" => $id])->delete();
-        json_result(1, "删除成功");
-    }
-
-    // 添加导航
-    public function add_dh()
-    {
-        if (Request::isPost()) {
-            $id = input("id");
-            $name = input("name");
-            $type = input("type");
-            $status = input("status");
-            $add["name"] = $name;
-            $add["type"] = $type;
-            $add["status"] = $status;
-            if ($id) {
-                Db::name("dh")->where(["id" => $id])->update($add);
-            } else {
-                Db::name("dh")->insert($add);
-            }
-            $this->success(lang('add success'), url('dh_list'));
-            return;
-//            json_result(200,"操作成功");
-        }
-        $id = input("id");
-        $info = "";
-        if ($id) {
-            $info = Db::name("dh")->where(["id" => $id])->find();
-        }
-        $view = [
-            'info' => $info,
-            'title' => lang('add'),
-//            'userLevel'=>$userLevel,
-        ];
-        View::assign($view);
-        return View::fetch();
-    }
-
-
-
-    // 轮播图列表
-    public function banner()
-    {
-        if (Request::isPost()) {
-            $page = input("page") ?: 1;
-            $limit = input("limit") ?: 10;
-            $name = input("name");
-            $type = input("type");
-            $where = [];
-            if ($name) {
-                $where["name"] = ["like", "%" . $name . "%"];
-            }
-            if ($type) {
-                $where["type"] = $type;
-            }
-            $list = Db::name("banner")->where($where)->order("pai desc")->paginate(["list_rows" => $limit, "page" => $page])->each(function ($item){
-
-                return $item;
-            })->toArray();
-            return $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data'], 'count' => $list['total']];
-        } else {
-            return View::fetch();
-        }
-    }
-
-
-    // 修改数据轮播图
-    public function update_pai_banner()
-    {
-        $id = input("id");
-        $value = input("value");
-        $field = input("field");
-        Db::name("banner")->where(["id" => $id])->update([$field => $value]);
-        json_result(1, "设置成功");
-    }
-
-    // 修改轮播图栏状态
-    public function update_banner_status()
-    {
-        $id = input("id");
-        $status = input("status") ?: 0;
-        Db::name("banner")->where(["id" => $id])->update(["status" => $status]);
-        json_result(1, "设置成功");
-    }
-    //添加或修改轮播图
-    public function add_banner()
-    {
-        if (Request::isPost()) {
-            $id = input("id");
-            $name = input("name");
-            $image = input("image");
-            $url = input("url");
-            $status = input("status");
-            $add["name"] = $name;
-            $add["image"] =$image;
-            $add["url"] =$url;
-            $add["status"] = $status;
-            if ($id) {
-                Db::name("banner")->where(["id" => $id])->update($add);
-            } else {
-                Db::name("banner")->insert($add);
-            }
-            $this->success(lang('add success'), url('banner'));
-            return;
-//            json_result(200,"操作成功");
-        }
-        $id = input("id");
-        $info = "";
-        if ($id) {
-            $info = Db::name("banner")->where(["id" => $id])->find();
-        }
-        $view = [
-            'info' => $info,
-            'title' => lang('add'),
-//            'userLevel'=>$userLevel,
-        ];
-        View::assign($view);
-        return View::fetch();
-    }
-
-    // 删除轮播图
-    public function del_banner()
-    {
-        $id = input("id");
-        Db::name("banner")->where(["id" => $id])->delete();
-        json_result(1, "删除成功");
-    }
-
-    // 统计数据
-    public function statistics()
-    {
-
-        if (Request::isPost()) {
-
-            $type=input("type")?:0;//0 日指标 1 浏览量 2 独立用户 3 最终咨询
-            $day=input("day");// 选中天数
-            $start_time=input("start_time");// 开始时间
-            $end_time=input("end_time");// 结束时间
-            $where=[];
-            $where[]=["type","=",$type];
-            if ($type==0){// 日指标
-                $list=Db::name("browse")->where($where)->whereDay('add_time')->field("add_time,FROM_UNIXTIME(add_time,'%H') as posttime,sum(num) as zong")->group('posttime')->select();
-               //  处理数据
-                $data=[];
-                foreach ($list as $k=>$v){
-                    $data["day"][$k]=$v["posttime"]."点";
-                    $data["data"][$k]=$v["zong"];
-                }
-                json_result(200,"日指标",$data);
-            }elseif ($type==1){// 浏览量
-
-                if ($day){
-                    $start_time=date("Y-m-d",time()).' 23:59:59';
-                    $end_time=date('Y-m-d',strtotime('-'.($day).' days')).' 23:59:59';;
-                }
-                $start_time=strtotime($start_time);
-                $end_time=strtotime($end_time);
-                $list=Db::name("browse")->where(["type"=>0])->where("add_time",">",$end_time)->where("add_time","<",$start_time)->where(["type"=>0])->field("add_time,FROM_UNIXTIME(add_time,'%Y-%m-%d') as posttime,sum(num) as zong")->group('posttime')->select();
-//                json_result($start_time,$end_time,$list);
-                $data=[];
-                foreach ($list as $k=>$v){
-                    $data["day"][$k]=date("m.d",strtotime($v["posttime"]));
-                    $data["data"][$k]=$v["zong"];
-                }
-                json_result(200,"浏览量",$data);
-            }
-
-            $data["data"]=[];
-            $data["day"]=[];
-            json_result(200,"浏览量22",$data);
-
-        }
-
-        // 查询浏览量
-        $liull=Db::name("browse")->where(["type"=>0])->count();
-        $liull_zt=Db::name("browse")->where(["type"=>0])->whereDay("add_time")->count();
-        $user=0;// 独立用户
-        $zhixing=0;// 最终咨询
-        $view = [
-            'info' => [
-                "liull"=>$liull,
-                "liull_zt"=>$liull_zt/($liull-$liull_zt)*100,
-                "user"=>$user,
-                "zhixing"=>$zhixing,
-            ],
-            'title' => lang('add'),
-//            'userLevel'=>$userLevel,
-        ];
-        View::assign($view);
-        return View::fetch();
-    }
-}

+ 1 - 1
php/app/admin/controller/Index.php

@@ -59,7 +59,7 @@ class Index extends Backend{
      */
     public function main(){
         $version = Db::query('SELECT VERSION() AS ver');
-        var_dump($version);die();
+//        var_dump($version);die();
         $config = Cache::get('main_config');
         if(!$config){
             $config  = [

+ 15 - 0
php/app/admin/controller/Information.php

@@ -0,0 +1,15 @@