唐金木 před 5 roky
rodič
revize
1466fe45dd
64 změnil soubory, kde provedl 3680 přidání a 2218 odebrání
  1. binární
      BTS需求.docx
  2. 381 257
      php/.idea/workspace.xml
  3. 9 5
      php/adddata.sql
  4. 176 1
      php/app/admin/controller/Contents.php
  5. 126 10
      php/app/admin/controller/Finance.php
  6. 23 1
      php/app/admin/controller/Order.php
  7. 0 6
      php/app/admin/controller/Uploads.php
  8. 346 0
      php/app/common/controller/Orde.php
  9. 68 13
      php/app/common/controller/Upfile.php
  10. 115 7
      php/app/web/controller/Index.php
  11. 119 79
      php/app/web/controller/Login.php
  12. 86 20
      php/app/web/controller/My.php
  13. 33 0
      php/app/web/model/Msg.php
  14. 168 25
      php/app/web/model/Orders.php
  15. 89 0
      php/app/web/model/Team.php
  16. 7 2
      php/app/web/model/Tripartite.php
  17. 25 5
      php/app/worker/controller/User.php
  18. 2 5
      php/app/worker/controller/Worker.php
  19. 2 2
      php/config/worker.php
  20. binární
      php/public/storage/uploads/20200604/0b0c8564134f4a92f63dad9192b3b112.png
  21. binární
      php/public/storage/uploads/20200604/85434915092c98dfa7f74f58935106e7.png
  22. binární
      php/public/storage/uploads/20200604/cd0c3c0ebc3556350a599c30ed75728d.png
  23. binární
      php/public/storage/uploads/20200605/1a1f59791758db0a4190bc1397c99a73.png
  24. binární
      php/public/storage/uploads/20200605/b52d2c1668b5981acab2241a718e310a.png
  25. binární
      php/public/storage/uploads/20200605/b5d9bcc4e2946ca11a148e987373a11c.png
  26. binární
      php/public/storage/uploads/20200605/e177173569c8f6a9ce7b3190404acc19.png
  27. binární
      php/public/storage/uploads/20200605/f2726178525e3ee998b0be048110d8e6.png
  28. 0 21
      php/runtime/admin/log/202006/01.log
  29. 0 245
      php/runtime/admin/log/202006/02.log
  30. 65 0
      php/runtime/admin/log/202006/05.log
  31. 0 139
      php/runtime/admin/temp/01e433db5e5517b7a2c4587da42797aa.php
  32. 0 185
      php/runtime/admin/temp/14d50cc59972e0ab82b71f4b5f381353.php
  33. 0 147
      php/runtime/admin/temp/193b3c530962981d3a4dc850749aaa8b.php
  34. 167 0
      php/runtime/admin/temp/39d9de22916a73242cce373af9cf2c36.php
  35. 0 182
      php/runtime/admin/temp/42d182ba955a14984e138f63987ed1b0.php
  36. 183 0
      php/runtime/admin/temp/67d40489a97bd6c8b7b2927ecc1d4082.php
  37. 0 148
      php/runtime/admin/temp/a43dd06f39d809c109c800ec9d9d065a.php
  38. 0 145
      php/runtime/admin/temp/a5b87fd77913dd9b0ad9dd783203b8ce.php
  39. 0 157
      php/runtime/admin/temp/a8ba287c844b92a9904d92bc00486605.php
  40. 0 111
      php/runtime/admin/temp/a8f8b134a87427ac15fa2ed97d90c5b0.php
  41. 0 152
      php/runtime/admin/temp/b04ecd3398bf75dee5dd9dee974fadba.php
  42. 167 0
      php/runtime/admin/temp/ca2a1c6a34a40cc7108b2a51083f5651.php
  43. 0 122
      php/runtime/ap/log/202006/01.log
  44. 0 4
      php/runtime/cache/0b/dc60c1eb9bd2792cd1fa7f85d9c865.php
  45. 0 4
      php/runtime/cache/b5/0db2208db974a3bc060e4d7255aa98.php
  46. 0 4
      php/runtime/cache/ca/361393b5a02e8a62e8dd6d5373a473.php
  47. 0 0
      php/runtime/session/sess_704f72601738fb3cc6160a8139fa9ef3
  48. binární
      php/runtime/session/sess_ab4726e650d984353a6b41b449abf891
  49. 2 0
      php/vendor/workerman/workerman.log
  50. 1 1
      php/view/admin/contents/about.html
  51. 2 3
      php/view/admin/contents/add.html
  52. 87 0
      php/view/admin/contents/addhlep.html
  53. 87 0
      php/view/admin/contents/addmsg.html
  54. 12 4
      php/view/admin/contents/feedback.html
  55. 137 0
      php/view/admin/contents/hlep.html
  56. 5 5
      php/view/admin/contents/index.html
  57. 111 0
      php/view/admin/contents/push.html
  58. 157 0
      php/view/admin/contents/sysmsg.html
  59. 141 0
      php/view/admin/finance/daili.html
  60. 157 0
      php/view/admin/finance/shenhe.html
  61. 141 0
      php/view/admin/finance/tongji.html
  62. 141 0
      php/view/admin/finance/zhengshon.html
  63. 141 0
      php/view/admin/order/buy.html
  64. 1 1
      php/view/admin/system/index.html

binární
BTS需求.docx


+ 381 - 257
php/.idea/workspace.xml

@@ -1,7 +1,47 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="ChangeListManager">
-    <list default="true" id="52cc2ceb-e100-4a5f-a9e2-bb6b61bdbebd" name="Default Changelist" comment="" />
+    <list default="true" id="52cc2ceb-e100-4a5f-a9e2-bb6b61bdbebd" name="Default Changelist" comment="">
+      <change beforePath="$PROJECT_DIR$/../BTS需求.docx" beforeDir="false" afterPath="$PROJECT_DIR$/../BTS需求.docx" 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$/app/admin/controller/Contents.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/controller/Contents.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/controller/Finance.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/controller/Finance.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/controller/Order.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/controller/Order.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/admin/controller/Uploads.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/admin/controller/Uploads.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/common/controller/Upfile.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/common/controller/Upfile.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/web/controller/Index.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/web/controller/Index.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/web/controller/Login.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/web/controller/Login.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/web/controller/My.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/web/controller/My.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/web/model/Orders.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/web/model/Orders.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/app/web/model/Tripartite.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/web/model/Tripartite.php" afterDir="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$/config/worker.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/worker.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/admin/log/202006/01.log" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/admin/log/202006/02.log" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/admin/temp/01e433db5e5517b7a2c4587da42797aa.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/admin/temp/14d50cc59972e0ab82b71f4b5f381353.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/admin/temp/193b3c530962981d3a4dc850749aaa8b.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/admin/temp/42d182ba955a14984e138f63987ed1b0.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/admin/temp/a43dd06f39d809c109c800ec9d9d065a.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/admin/temp/a5b87fd77913dd9b0ad9dd783203b8ce.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/admin/temp/a8ba287c844b92a9904d92bc00486605.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/admin/temp/a8f8b134a87427ac15fa2ed97d90c5b0.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/admin/temp/b04ecd3398bf75dee5dd9dee974fadba.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/ap/log/202006/01.log" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/cache/0b/dc60c1eb9bd2792cd1fa7f85d9c865.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/cache/b5/0db2208db974a3bc060e4d7255aa98.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/cache/ca/361393b5a02e8a62e8dd6d5373a473.php" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/session/sess_3f972420e5bb26ed1e69c519f52d4119" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/runtime/session/sess_ab4726e650d984353a6b41b449abf891" beforeDir="false" />
+      <change beforePath="$PROJECT_DIR$/vendor/workerman/workerman.log" beforeDir="false" afterPath="$PROJECT_DIR$/vendor/workerman/workerman.log" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/contents/about.html" beforeDir="false" afterPath="$PROJECT_DIR$/view/admin/contents/about.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/contents/add.html" beforeDir="false" afterPath="$PROJECT_DIR$/view/admin/contents/add.html" afterDir="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/contents/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/view/admin/contents/index.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/view/admin/system/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/view/admin/system/index.html" afterDir="false" />
+    </list>
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -11,39 +51,50 @@
   <component name="ComposerSettings" doNotAsk="true" synchronizationState="SYNCHRONIZE">
     <pharConfigPath>$PROJECT_DIR$/composer.json</pharConfigPath>
   </component>
-  <component name="DockManager">
-    <window id="1">
-      <content type="file-editors">
-        <state>
-          <leaf>
-            <file pinned="false" current-in-tab="true">
-              <entry file="file://$PROJECT_DIR$/adddata.sql">
-                <provider selected="true" editor-type-id="text-editor">
-                  <state relative-caret-position="976">
-                    <caret line="268" lean-forward="true" selection-start-line="268" selection-end-line="268" />
-                  </state>
-                </provider>
-              </entry>
-            </file>
-          </leaf>
-        </state>
-      </content>
-    </window>
-  </component>
   <component name="FileEditorManager">
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
-      <file pinned="false" current-in-tab="true">
-        <entry file="file://$PROJECT_DIR$/app/web/controller/Login.php">
+      <file pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/app/admin/controller/Finance.php">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="320">
-              <caret line="21" lean-forward="true" selection-start-line="21" selection-end-line="21" />
+            <state relative-caret-position="207">
+              <caret line="145" column="7" lean-forward="true" selection-start-line="145" selection-start-column="7" selection-end-line="167" selection-end-column="29" />
               <folding>
-                <element signature="e#99#132#0#PHP" expanded="true" />
+                <element signature="e#102#133#0#PHP" expanded="true" />
               </folding>
             </state>
           </provider>
         </entry>
       </file>
+      <file pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/app/admin/controller/Order.php">
+          <provider selected="true" editor-type-id="text-editor">
+            <state relative-caret-position="451">
+              <caret line="36" column="72" selection-start-line="36" selection-start-column="72" selection-end-line="36" selection-end-column="72" />
+              <folding>
+                <element signature="e#102#127#0#PHP" expanded="true" />
+              </folding>
+            </state>
+          </provider>
+        </entry>
+      </file>
+      <file pinned="false" current-in-tab="true">
+        <entry file="file://$PROJECT_DIR$/view/admin/order/buy.html">
+          <provider selected="true" editor-type-id="text-editor">
+            <state relative-caret-position="368">
+              <caret line="52" column="9" lean-forward="true" selection-start-line="52" selection-start-column="9" selection-end-line="52" selection-end-column="9" />
+            </state>
+          </provider>
+        </entry>
+      </file>
+      <file pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/view/admin/contents/hlep.html">
+          <provider selected="true" editor-type-id="text-editor">
+            <state relative-caret-position="221">
+              <caret line="49" selection-start-line="49" selection-end-line="52" selection-end-column="9" />
+            </state>
+          </provider>
+        </entry>
+      </file>
     </leaf>
   </component>
   <component name="FileTemplateManagerImpl">
@@ -56,25 +107,6 @@
   </component>
   <component name="FindInProjectRecents">
     <findStrings>
-      <find>outvodeo</find>
-      <find>delAll</find>
-      <find>all_reject</find>
-      <find>switch</find>
-      <find>status</find>
-      <find>reject</find>
-      <find>all_agree</find>
-      <find>cancel_sign</find>
-      <find>$system</find>
-      <find>video</find>
-      <find>submit</find>
-      <find>student_id</find>
-      <find>aliyuncs/oss-sdk-php</find>
-      <find>userLevel</find>
-      <find>lay-skin</find>
-      <find>auth_open</find>
-      <find>lay-filter</find>
-      <find>search</find>
-      <find>UploadedFile</find>
       <find>addBtn</find>
       <find>factory</find>
       <find>init</find>
@@ -84,8 +116,27 @@
       <find>resultset_type</find>
       <find>main</find>
       <find>lm_finance</find>
-      <find>feedback</find>
+      <find>problem</find>
+      <find>DataHelper</find>
+      <find>add_time</find>
       <find>Message</find>
+      <find>可售额度</find>
+      <find>Problem</find>
+      <find>vendibility</find>
+      <find>Order</find>
+      <find>Mining</find>
+      <find>$user</find>
+      <find>breach_money</find>
+      <find>General</find>
+      <find>通证</find>
+      <find>enlarge_quota</find>
+      <find>order_buy</find>
+      <find>264</find>
+      <find>addbanner</find>
+      <find>form-config</find>
+      <find>logoBtn</find>
+      <find>logo</find>
+      <find>feedback</find>
     </findStrings>
     <dirStrings>
       <dir>D:\phpstudy_pro\WWW\small\syyxy\php</dir>
@@ -97,35 +148,8 @@
   <component name="IdeDocumentHistory">
     <option name="CHANGED_PATHS">
       <list>
-        <option value="$PROJECT_DIR$/config/database.php" />
-        <option value="$PROJECT_DIR$/app/common.php" />
-        <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$/app/admin/controller/Contents.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" />
-        <option value="$PROJECT_DIR$/app/admin/controller/Usermanage.php" />
-        <option value="$PROJECT_DIR$/app/common/model/User.php" />
-        <option value="$PROJECT_DIR$/app/common/model/ConfigGroup.php" />
-        <option value="$PROJECT_DIR$/app/common/model/About.php" />
-        <option value="$PROJECT_DIR$/app/common/model/Banner.php" />
-        <option value="$PROJECT_DIR$/app/common/model/Bond.php" />
-        <option value="$PROJECT_DIR$/app/common/model/BondFinance.php" />
-        <option value="$PROJECT_DIR$/app/common/model/CommissionFinance.php" />
-        <option value="$PROJECT_DIR$/app/common/model/Feedback.php" />
-        <option value="$PROJECT_DIR$/app/common/model/Finance.php" />
         <option value="$PROJECT_DIR$/app/common/model/GeneralFinance.php" />
         <option value="$PROJECT_DIR$/app/common/model/GeneralTransfer.php" />
-        <option value="$PROJECT_DIR$/app/common/model/Message.php" />
         <option value="$PROJECT_DIR$/app/common/model/Mining.php" />
         <option value="$PROJECT_DIR$/app/common/model/Notice.php" />
         <option value="$PROJECT_DIR$/app/common/model/Order.php" />
@@ -139,15 +163,42 @@
         <option value="$PROJECT_DIR$/app/common/model/VendibilityFinance.php" />
         <option value="$PROJECT_DIR$/app/web/controller/Base.php" />
         <option value="$PROJECT_DIR$/app/web/model/Code.php" />
-        <option value="$PROJECT_DIR$/app/web/model/Tripartite.php" />
         <option value="$PROJECT_DIR$/app/web/model/Back.php" />
         <option value="$PROJECT_DIR$/app/web/model/Order.php" />
+        <option value="$PROJECT_DIR$/app/web/model/Tripartite.php" />
+        <option value="$PROJECT_DIR$/app/admin/controller/Uploads.php" />
         <option value="$PROJECT_DIR$/app/common/controller/Upfile.php" />
-        <option value="$PROJECT_DIR$/app/web/controller/Login.php" />
+        <option value="$PROJECT_DIR$/app/common/model/Message.php" />
+        <option value="$PROJECT_DIR$/app/web/model/Team.php" />
+        <option value="$PROJECT_DIR$/app/web/model/Msg.php" />
         <option value="$PROJECT_DIR$/adddata.sql" />
+        <option value="$PROJECT_DIR$/app/web/controller/Login.php" />
         <option value="$PROJECT_DIR$/app/web/model/Orders.php" />
         <option value="$PROJECT_DIR$/app/web/controller/Index.php" />
+        <option value="$PROJECT_DIR$/config/worker.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/add.html" />
+        <option value="$PROJECT_DIR$/view/admin/contents/index.html" />
+        <option value="$PROJECT_DIR$/view/admin/contents/feedback.html" />
+        <option value="$PROJECT_DIR$/view/admin/contents/addhlep.html" />
+        <option value="$PROJECT_DIR$/view/admin/contents/hlep.html" />
+        <option value="$PROJECT_DIR$/view/admin/contents/about.html" />
         <option value="$PROJECT_DIR$/app/web/controller/My.php" />
+        <option value="$PROJECT_DIR$/view/admin/system/index.html" />
+        <option value="$PROJECT_DIR$/view/admin/contents/push.html" />
+        <option value="$PROJECT_DIR$/view/admin/contents/sysmsg.html" />
+        <option value="$PROJECT_DIR$/view/admin/contents/addmsg.html" />
+        <option value="$PROJECT_DIR$/app/admin/controller/Contents.php" />
+        <option value="$PROJECT_DIR$/view/admin/finance/tongji.html" />
+        <option value="$PROJECT_DIR$/view/admin/finance/shenhe.html" />
+        <option value="$PROJECT_DIR$/app/common/controller/Orde.php" />
+        <option value="$PROJECT_DIR$/view/admin/finance/daili.html" />
+        <option value="$PROJECT_DIR$/app/admin/controller/Finance.php" />
+        <option value="$PROJECT_DIR$/view/admin/finance/zhengshon.html" />
+        <option value="$PROJECT_DIR$/view/admin/order/daili.html" />
+        <option value="$PROJECT_DIR$/app/admin/controller/Order.php" />
+        <option value="$PROJECT_DIR$/view/admin/order/buy.html" />
       </list>
     </option>
   </component>
@@ -270,15 +321,52 @@
               <item name="php" type="b2602c69:ProjectViewProjectNode" />
               <item name="php" type="462c0819:PsiDirectoryNode" />
               <item name="app" type="462c0819:PsiDirectoryNode" />
-              <item name="web" 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="web" 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="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="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="finance" 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="order" type="462c0819:PsiDirectoryNode" />
+            </path>
           </expand>
           <select />
         </subPane>
@@ -301,19 +389,19 @@
     <property name="settings.editor.selected.configurable" value="Docker" />
   </component>
   <component name="RecentsManager">
+    <key name="CopyFile.RECENT_KEYS">
+      <recent name="D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\order" />
+      <recent name="D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\finance" />
+      <recent name="D:\phpstudy_pro\WWW\cxy\bts\php\app\common\controller" />
+      <recent name="D:\phpstudy_pro\WWW\cxy\bts\php\app\admin\controller" />
+      <recent name="D:\phpstudy_pro\WWW\my\fuye\php\app\ap\config" />
+    </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>
-    <key name="CopyFile.RECENT_KEYS">
-      <recent name="D:\phpstudy_pro\WWW\cxy\bts\php\app\common\controller" />
-      <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" />
-    </key>
   </component>
   <component name="RunDashboard">
     <option name="ruleStates">
@@ -426,18 +514,20 @@
       <workItem from="1590714534675" duration="25886000" />
       <workItem from="1590983110728" duration="16565000" />
       <workItem from="1591065028261" duration="19190000" />
-      <workItem from="1591146974136" duration="25342000" />
+      <workItem from="1591146974136" duration="26205000" />
+      <workItem from="1591232554457" duration="31102000" />
+      <workItem from="1591318731601" duration="30185000" />
     </task>
     <servers />
   </component>
   <component name="TimeTrackingManager">
-    <option name="totallyTimeSpent" value="726537000" />
+    <option name="totallyTimeSpent" value="788687000" />
   </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.22334754" />
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.22547974" />
       <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" />
@@ -450,7 +540,7 @@
       <window_info anchor="bottom" id="Docker" order="7" weight="0.329718" />
       <window_info anchor="bottom" id="Database Changes" order="8" />
       <window_info anchor="bottom" id="Version Control" order="9" weight="0.3290993" />
-      <window_info anchor="bottom" id="Terminal" order="10" weight="0.22342733" />
+      <window_info anchor="bottom" id="Terminal" order="10" weight="0.28199565" />
       <window_info anchor="bottom" id="Event Log" order="11" side_tool="true" />
       <window_info anchor="bottom" id="File Transfer" order="12" visible="true" weight="0.056399133" />
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
@@ -511,384 +601,418 @@
           <line>6</line>
           <option name="timeStamp" value="6" />
         </line-breakpoint>
+        <line-breakpoint enabled="true" type="php">
+          <url>file://$PROJECT_DIR$/app/web/model/Team.php</url>
+          <line>66</line>
+          <option name="timeStamp" value="7" />
+        </line-breakpoint>
       </breakpoints>
     </breakpoint-manager>
   </component>
   <component name="editorHistoryManager">
-    <entry file="file://$PROJECT_DIR$/app/admin/controller/Information.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="207">
-          <caret line="14" column="1" 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/admin/controller/Usermanage.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/Article.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="528">
-          <caret line="50" column="12" selection-start-line="50" selection-start-column="12" selection-end-line="50" selection-end-column="12" />
+        <state relative-caret-position="483">
+          <caret line="37" column="76" selection-start-line="37" selection-start-column="27" selection-end-line="37" selection-end-column="76" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/admin/controller/Agent.php">
+    <entry file="file://$PROJECT_DIR$/vendor/topthink/think-orm/src/Model.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="528">
-          <caret line="54" column="1" selection-start-line="54" selection-start-column="1" selection-end-line="54" selection-end-column="1" />
+        <state relative-caret-position="612">
+          <caret line="861" column="19" selection-start-line="861" selection-start-column="19" selection-end-line="861" selection-end-column="19" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/admin/controller/Certificate.php">
+    <entry file="file://$PROJECT_DIR$/app/common.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="390">
-          <caret line="24" column="12" selection-start-line="24" selection-start-column="12" selection-end-line="24" selection-end-column="12" />
+        <state relative-caret-position="529">
+          <caret line="238" column="49" selection-start-line="238" selection-start-column="38" selection-end-line="238" selection-end-column="49" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/admin/controller/Order.php">
+    <entry file="file://$PROJECT_DIR$/app/web/controller/Base.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="391">
-          <caret line="31" column="7" selection-start-line="31" selection-start-column="7" selection-end-line="31" selection-end-column="7" />
+        <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/admin/controller/Finance.php">
+    <entry file="file://$PROJECT_DIR$/app/common/controller/Backend.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="137">
-          <caret line="34" column="30" lean-forward="true" selection-start-line="34" selection-start-column="30" selection-end-line="34" selection-end-column="30" />
+        <state relative-caret-position="345">
+          <caret line="33" column="32" lean-forward="true" selection-start-line="33" selection-start-column="32" selection-end-line="33" selection-end-column="32" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/FieldType.php">
+    <entry file="file://$PROJECT_DIR$/app/common/controller/Upfile.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="92">
-          <caret line="4" lean-forward="true" selection-start-line="4" selection-end-line="4" />
+        <state relative-caret-position="207">
+          <caret line="50" column="29" selection-start-line="50" selection-start-column="29" selection-end-line="50" selection-end-column="29" />
           <folding>
-            <element signature="e#37#65#0#PHP" expanded="true" />
+            <element signature="e#103#128#0#PHP" expanded="true" />
           </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/ConfigGroup.php">
-      <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="46">
-          <caret line="2" column="15" selection-start-line="2" selection-start-column="15" selection-end-line="2" selection-end-column="15" />
-        </state>
-      </provider>
+    <entry file="file://$PROJECT_DIR$/public/storage/uploads/20200604/0b0c8564134f4a92f63dad9192b3b112.png">
+      <provider selected="true" editor-type-id="images" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/Config.php">
-      <provider selected="true" editor-type-id="text-editor" />
+    <entry file="file://$PROJECT_DIR$/public/storage/uploads/20200604/85434915092c98dfa7f74f58935106e7.png">
+      <provider selected="true" editor-type-id="images" />
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/BaseModel.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/Uploads.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="229">
-          <caret line="13" column="41" lean-forward="true" selection-start-line="13" selection-start-column="41" selection-end-line="13" selection-end-column="41" />
-          <folding>
-            <element signature="e#37#61#0#PHP" expanded="true" />
-          </folding>
+        <state relative-caret-position="207">
+          <caret line="19" selection-start-line="19" selection-end-line="19" selection-end-column="27" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/Common.php">
+    <entry file="file://$PROJECT_DIR$/app/common/model/Problem.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="6" column="26" selection-start-line="6" selection-start-column="26" selection-end-line="6" selection-end-column="26" />
+        <state relative-caret-position="207">
+          <caret line="14" column="1" 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/common/model/User.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="161">
-          <caret line="7" column="26" lean-forward="true" selection-start-line="7" selection-start-column="12" selection-end-line="7" selection-end-column="26" />
+        <state relative-caret-position="207">
+          <caret line="9" selection-start-line="9" selection-end-line="12" selection-end-column="5" />
           <folding>
             <element signature="e#6#47#0#PHP" expanded="true" />
           </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/About.php">
+    <entry file="file://$PROJECT_DIR$/app/common/model/Message.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="184">
-          <caret line="13" lean-forward="true" selection-start-line="13" selection-end-line="13" />
+        <state relative-caret-position="253">
+          <caret line="11" column="9" selection-start-line="11" selection-start-column="9" selection-end-line="11" selection-end-column="9" />
+          <folding>
+            <element signature="e#6#65#0#PHP" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/Banner.php">
+    <entry file="file://$PROJECT_DIR$/vendor/topthink/think-orm/src/db/BaseQuery.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="28" selection-start-line="11" selection-start-column="28" selection-end-line="11" selection-end-column="28" />
+        <state relative-caret-position="368">
+          <caret line="594" selection-start-line="594" selection-end-line="594" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/Bond.php">
+    <entry file="file://$PROJECT_DIR$/app/web/model/Tripartite.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="25" selection-start-line="11" selection-start-column="25" selection-end-line="11" selection-end-column="25" />
+        <state relative-caret-position="437">
+          <caret line="27" column="14" selection-start-line="27" selection-start-column="14" selection-end-line="27" selection-end-column="14" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/BondFinance.php">
+    <entry file="file://$PROJECT_DIR$/app/web/model/Team.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="33" selection-start-line="11" selection-start-column="33" selection-end-line="11" selection-end-column="33" />
+        <state relative-caret-position="598">
+          <caret line="31" column="33" selection-start-line="31" selection-start-column="27" selection-end-line="31" selection-end-column="33" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/CommissionFinance.php">
+    <entry file="file://$PROJECT_DIR$/app/web/model/Back.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="39" selection-start-line="11" selection-start-column="39" selection-end-line="11" selection-end-column="39" />
+        <state relative-caret-position="759">
+          <caret line="40" column="48" selection-start-line="40" selection-start-column="34" selection-end-line="40" selection-end-column="48" />
+          <folding>
+            <element signature="e#95#123#0#PHP" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/Feedback.php">
+    <entry file="file://$PROJECT_DIR$/app/web/model/Msg.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="29" selection-start-line="11" selection-start-column="29" selection-end-line="11" selection-end-column="29" />
+        <state relative-caret-position="483">
+          <caret line="26" column="24" selection-start-line="26" selection-start-column="24" selection-end-line="26" selection-end-column="24" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/Finance.php">
+    <entry file="file://$PROJECT_DIR$/app/common/model/VendibilityFinance.php">
       <provider selected="true" editor-type-id="text-editor">
         <state relative-caret-position="138">
-          <caret line="11" column="29" selection-start-line="11" selection-start-column="29" selection-end-line="11" selection-end-column="29" />
+          <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/common/model/GeneralFinance.php">
+    <entry file="file://$PROJECT_DIR$/app/web/model/Orders.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="36" selection-start-line="11" selection-start-column="36" selection-end-line="11" selection-end-column="36" />
+        <state relative-caret-position="314">
+          <caret line="104" column="13" selection-start-line="104" selection-start-column="13" selection-end-line="104" selection-end-column="13" />
+          <folding>
+            <element signature="e#95#126#0#PHP" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/GeneralTransfer.php">
+    <entry file="file://$PROJECT_DIR$/app/web/controller/Login.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="37" selection-start-line="11" selection-start-column="37" selection-end-line="11" selection-end-column="37" />
+        <state relative-caret-position="23">
+          <caret line="35" selection-start-line="35" selection-end-line="36" />
+          <folding>
+            <element signature="e#99#132#0#PHP" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/Message.php">
+    <entry file="file://$PROJECT_DIR$/app/web/controller/Index.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="29" selection-start-line="11" selection-start-column="29" selection-end-line="11" selection-end-column="29" />
+        <state relative-caret-position="275">
+          <caret line="95" selection-start-line="95" selection-end-line="95" />
+          <folding>
+            <element signature="e#100#131#0#PHP" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/Mining.php">
+    <entry file="file://$PROJECT_DIR$/config/worker_server.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="28" selection-start-line="11" selection-start-column="28" selection-end-line="11" selection-end-column="28" />
+        <state relative-caret-position="276">
+          <caret line="23" column="44" lean-forward="true" selection-start-line="23" selection-start-column="8" selection-end-line="23" selection-end-column="44" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/Notice.php">
+    <entry file="file://$PROJECT_DIR$/config/worker.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="28" selection-start-line="11" selection-start-column="28" selection-end-line="11" selection-end-column="28" />
+        <state relative-caret-position="359">
+          <caret line="28" column="42" selection-start-line="28" selection-start-column="42" selection-end-line="28" selection-end-column="42" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/Order.php">
+    <entry file="file://$PROJECT_DIR$/composer.json">
       <provider selected="true" editor-type-id="text-editor">
         <state relative-caret-position="138">
-          <caret line="11" column="26" selection-start-line="11" selection-start-column="26" selection-end-line="11" selection-end-column="26" />
+          <caret line="18" column="6" selection-start-line="18" selection-start-column="6" selection-end-line="18" selection-end-column="6" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/OrderFrequency.php">
+    <entry file="file://$PROJECT_DIR$/app/worker/controller/User.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="36" selection-start-line="11" selection-start-column="36" selection-end-line="11" selection-end-column="36" />
+        <state relative-caret-position="457">
+          <caret line="43" column="24" lean-forward="true" selection-start-line="43" selection-start-column="24" selection-end-line="43" selection-end-column="24" />
+          <folding>
+            <element signature="e#132#163#0#PHP" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/PhoneCode.php">
+    <entry file="file://$PROJECT_DIR$/app/worker/controller/Worker.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="30" selection-start-line="11" selection-start-column="30" selection-end-line="11" selection-end-column="30" />
+        <state relative-caret-position="414">
+          <caret line="23" column="14" lean-forward="true" selection-start-line="23" selection-start-column="14" selection-end-line="23" selection-end-column="14" />
+          <folding>
+            <element signature="e#132#162#0#PHP" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/Problem.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/user/index.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="29" selection-start-line="11" selection-start-column="29" selection-end-line="11" selection-end-column="29" />
+        <state relative-caret-position="414">
+          <caret line="45" column="57" selection-start-line="45" selection-start-column="21" selection-end-line="45" selection-end-column="57" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/State.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/user/add.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="27" selection-start-line="11" selection-start-column="27" selection-end-line="11" selection-end-column="27" />
+        <state relative-caret-position="230">
+          <caret line="19" column="12" selection-start-line="19" selection-start-column="12" selection-end-line="27" selection-end-column="18" />
+          <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/System.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/User.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="27" selection-start-line="11" selection-start-column="27" selection-end-line="11" selection-end-column="27" />
+        <state relative-caret-position="299">
+          <caret line="67" column="8" selection-start-line="67" selection-start-column="8" selection-end-line="72" selection-end-column="28" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/UserLevel.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/contents/add.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="31" selection-start-line="11" selection-start-column="31" selection-end-line="11" selection-end-column="31" />
+        <state relative-caret-position="230">
+          <caret line="22" column="18" selection-start-line="22" selection-start-column="18" selection-end-line="22" selection-end-column="18" />
+          <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/UserMessage.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/contents/about.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="138">
-          <caret line="11" column="32" selection-start-line="11" selection-start-column="32" selection-end-line="11" selection-end-column="32" />
+        <state relative-caret-position="345">
+          <caret line="15" column="41" selection-start-line="15" selection-start-column="41" selection-end-line="15" selection-end-column="41" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/model/VendibilityFinance.php">
+    <entry file="file://$PROJECT_DIR$/app/web/controller/My.php">
       <provider selected="true" editor-type-id="text-editor">
-        <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 relative-caret-position="60">
+          <caret line="426" column="34" lean-forward="true" selection-start-line="426" selection-start-column="34" selection-end-line="426" selection-end-column="34" />
+          <folding>
+            <element signature="e#100#131#0#PHP" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/controller/Backend.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/system/index.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="69">
-          <caret line="33" column="32" lean-forward="true" selection-start-line="33" selection-start-column="32" selection-end-line="33" selection-end-column="32" />
+        <state relative-caret-position="285">
+          <caret line="248" column="53" selection-start-line="248" selection-start-column="8" selection-end-line="248" selection-end-column="53" />
+          <folding>
+            <element signature="n#style#0;n#span#0;n#!!top" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/controller/Base.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/contents/push.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="276">
-          <caret line="24" column="51" selection-start-line="24" selection-start-column="51" selection-end-line="24" selection-end-column="51" />
+        <state relative-caret-position="115">
+          <caret line="56" selection-start-line="56" selection-end-line="56" />
+          <folding>
+            <element signature="n#style#0;n#span#0;n#!!top" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/web/model/Code.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/System.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="207">
-          <caret line="14" column="4" selection-start-line="14" selection-start-column="4" selection-end-line="14" selection-end-column="4" />
+        <state relative-caret-position="276">
+          <caret line="55" column="12" selection-start-line="55" selection-start-column="12" selection-end-line="57" selection-end-column="13" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/config/database.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/contents/sysmsg.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="183">
-          <caret line="29" column="31" lean-forward="true" selection-start-line="29" selection-start-column="31" selection-end-line="29" selection-end-column="31" />
+        <state relative-caret-position="658">
+          <caret line="103" column="47" lean-forward="true" selection-start-line="103" selection-start-column="47" selection-end-line="103" selection-end-column="47" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/web/model/Back.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/contents/addhlep.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="575">
-          <caret line="30" column="5" lean-forward="true" selection-start-line="30" selection-start-column="5" selection-end-line="30" selection-end-column="5" />
+        <state relative-caret-position="382">
+          <caret line="26" column="48" lean-forward="true" selection-end-line="86" selection-end-column="9" />
           <folding>
-            <element signature="e#95#123#0#PHP" expanded="true" />
+            <element signature="n#style#0;n#textarea#0;n#div#2;n#form#0;n#div#0;n#div#0;n#!!top" expanded="true" />
           </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/admin/controller/Article.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/contents/addmsg.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="483">
-          <caret line="37" column="76" selection-start-line="37" selection-start-column="27" selection-end-line="37" selection-end-column="76" />
+        <state relative-caret-position="152">
+          <caret line="30" column="18" lean-forward="true" selection-start-line="30" selection-start-column="18" selection-end-line="30" selection-end-column="18" />
+          <folding>
+            <element signature="n#style#0;n#textarea#0;n#div#2;n#form#0;n#div#0;n#div#0;n#!!top" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/admin/controller/Uploads.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/Contents.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="-324">
-          <caret line="62" column="16" selection-start-line="62" selection-start-column="8" selection-end-line="62" selection-end-column="16" />
+        <state relative-caret-position="138">
+          <caret line="133" column="27" selection-start-line="133" selection-start-column="27" selection-end-line="133" selection-end-column="27" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common/controller/Upfile.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/finance/tongji.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="552">
-          <caret line="29" column="9" lean-forward="true" selection-start-line="29" selection-start-column="9" selection-end-line="29" selection-end-column="9" />
+        <state relative-caret-position="152">
+          <caret line="75" column="43" selection-end-line="140" selection-end-column="9" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/web/model/Tripartite.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/contents/index.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="451">
-          <caret line="25" column="32" selection-start-line="25" selection-start-column="28" selection-end-line="25" selection-end-column="32" />
+        <state relative-caret-position="382">
+          <caret line="99" column="84" selection-start-line="99" selection-start-column="18" selection-end-line="99" selection-end-column="84" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/vendor/topthink/think-orm/src/Model.php">
+    <entry file="file://$PROJECT_DIR$/adddata.sql">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="612">
-          <caret line="861" column="19" selection-start-line="861" selection-start-column="19" selection-end-line="861" selection-end-column="19" />
+        <state relative-caret-position="197">
+          <caret line="225" column="40" selection-start-line="225" selection-start-column="25" selection-end-line="225" selection-end-column="40" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/vendor/topthink/think-orm/src/db/BaseQuery.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/finance/shenhe.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="666">
-          <caret line="604" column="49" selection-start-line="604" selection-start-column="40" selection-end-line="604" selection-end-column="49" />
+        <state relative-caret-position="290">
+          <caret line="77" column="20" lean-forward="true" selection-start-line="77" selection-start-column="20" selection-end-line="77" selection-end-column="20" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/common.php">
+    <entry file="file://$PROJECT_DIR$/app/common/controller/Orde.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="529">
-          <caret line="238" column="49" selection-start-line="238" selection-start-column="38" selection-end-line="238" selection-end-column="49" />
+        <state relative-caret-position="350">
+          <caret line="260" column="32" lean-forward="true" selection-start-line="260" selection-start-column="32" selection-end-line="260" selection-end-column="32" />
+          <folding>
+            <element signature="e#103#136#0#PHP" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/web/model/Orders.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/finance/daili.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="389">
-          <caret line="88" column="9" lean-forward="true" selection-start-line="88" selection-start-column="9" selection-end-line="88" selection-end-column="9" />
-          <folding>
-            <element signature="e#95#123#0#PHP" expanded="true" />
-          </folding>
+        <state relative-caret-position="138">
+          <caret line="60" column="46" lean-forward="true" selection-start-line="60" selection-start-column="46" selection-end-line="60" selection-end-column="46" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/adddata.sql">
+    <entry file="file://$PROJECT_DIR$/view/admin/finance/zhengshon.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="976">
-          <caret line="268" lean-forward="true" selection-start-line="268" selection-end-line="268" />
+        <state relative-caret-position="322">
+          <caret line="29" lean-forward="true" selection-start-line="29" selection-end-line="29" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/web/controller/Base.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/Finance.php">
       <provider selected="true" editor-type-id="text-editor">
         <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" />
+          <caret line="145" column="7" lean-forward="true" selection-start-line="145" selection-start-column="7" selection-end-line="167" selection-end-column="29" />
+          <folding>
+            <element signature="e#102#133#0#PHP" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/web/controller/Index.php">
+    <entry file="file://$PROJECT_DIR$/app/admin/controller/Order.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="184">
-          <caret line="22" lean-forward="true" selection-start-line="22" selection-end-line="22" />
+        <state relative-caret-position="451">
+          <caret line="36" column="72" selection-start-line="36" selection-start-column="72" selection-end-line="36" selection-end-column="72" />
           <folding>
-            <element signature="e#100#128#0#PHP" expanded="true" />
+            <element signature="e#102#127#0#PHP" expanded="true" />
           </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/web/controller/My.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/contents/feedback.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="210">
-          <caret line="29" lean-forward="true" selection-start-line="29" selection-end-line="29" />
-          <folding>
-            <element signature="e#100#127#0#PHP" expanded="true" />
-          </folding>
+        <state relative-caret-position="345">
+          <caret line="54" column="6" selection-end-line="140" selection-end-column="9" />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/app/web/controller/Login.php">
+    <entry file="file://$PROJECT_DIR$/view/admin/contents/hlep.html">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="320">
-          <caret line="21" lean-forward="true" selection-start-line="21" selection-end-line="21" />
-          <folding>
-            <element signature="e#99#132#0#PHP" expanded="true" />
-          </folding>
+        <state relative-caret-position="221">
+          <caret line="49" selection-start-line="49" selection-end-line="52" selection-end-column="9" />
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/view/admin/order/buy.html">
+      <provider selected="true" editor-type-id="text-editor">
+        <state relative-caret-position="368">
+          <caret line="52" column="9" lean-forward="true" selection-start-line="52" selection-start-column="9" selection-end-line="52" selection-end-column="9" />
         </state>
       </provider>
     </entry>

+ 9 - 5
php/adddata.sql

@@ -128,15 +128,17 @@ CREATE TABLE `lm_mining`  (
   `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 '出局手续费',
+   `ensure_money` decimal (20,2)  DEFAULT '0' COMMENT '保证金 买入人缴费',
+   `breach_money` decimal (20,2)  DEFAULT '0' COMMENT '违约金 买入人缴费',
+   `tong_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_order`;
 CREATE TABLE `lm_order`  (
   `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
@@ -153,8 +155,9 @@ CREATE TABLE `lm_order`  (
   `end_time` varchar (20)  DEFAULT '' COMMENT '完成时间',
   `msg` varchar (255)  DEFAULT '' COMMENT '失败原因',
   `image`text  DEFAULT '' COMMENT '上传图片,拼接',
-  `breach_money` decimal (20,2)  DEFAULT '0' COMMENT '违约金',
+    `ensure_money` decimal (20,2)  DEFAULT '0' COMMENT '保证金 买入人缴费',
    `out_game` decimal (20,2)  DEFAULT '0' COMMENT '出局手续费',
+     `tong_money` 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;
 
@@ -173,6 +176,7 @@ 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',
+  `order_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 '可售额度',
@@ -249,7 +253,7 @@ 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 '金额',
+  `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 '添加时间',

+ 176 - 1
php/app/admin/controller/Contents.php

@@ -5,6 +5,8 @@ namespace app\admin\controller;
 
 
 use app\common\controller\Backend;
+use app\common\model\Notice;
+use app\common\model\Problem;
 use think\facade\Db;
 use think\facade\Request;
 use think\facade\View;
@@ -39,10 +41,12 @@ class Contents extends Backend
     {
         $name=input("text");
         $img=input("img")?:"";
+        $text=input("text")?:"";
         $id=input("id");
 
         $add["text"]=$name;
-        $add["img"]=$img;
+        $add["image"]=$img;
+        $add["text"]=$text;
 //        $add["centos"]=$centos;
 
         if ($id){
@@ -125,6 +129,15 @@ class Contents extends Backend
 //                $where["name"]=["like","% $name %"];
 //            }
             $list=Db::name("feedback")->order("id desc")->where($where)->paginate(["list_row"=>$limit,"page"=>$page])->each(function ($item){
+
+                $user=\app\common\model\User::where(["id"=>$item["user_id"]])->field("name")->find();
+                $item["name"]=$user->name;
+                if ($item["image"]){
+                    $item["image"]=explode(",",$item["image"]);
+                }else{
+                    $item["image"]="";
+                }
+
                 return $item;
 
             })->toArray();
@@ -137,4 +150,166 @@ class Contents extends Backend
 
 
     }
+
+    //
+    public function hlep()
+    {
+
+        if (Request::isPost()){
+            $name=input("name");
+            $page=input("page")?:1;
+            $limit=input("limit")?:10;
+            $where=[];
+            $list=Db::name("problem")->order("id desc")->where($where)->paginate(["list_row"=>$limit,"page"=>$page])->each(function ($item){
+                return $item;
+
+            })->toArray();
+            return  $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data']?:[], 'count' => $list['total']?:0];
+
+        }
+        return View::fetch();
+    }
+
+    // 删除常见问题
+    public function del_hlep()
+    {
+     $id=input("id");
+     Problem::where(["id"=>$id])->delete();
+     json_result(200,"删除成功");
+    }
+
+// 添加修改
+    public function addhlep()
+    {
+        if (Request::isPost()){
+            $id=input("id");
+            $add["name"]=input("name");
+            $add["text"]=input("text");
+            if ($id){
+                Problem::update($add,["id"=>$id]);
+            }else{
+                Problem::create($add);
+            }
+            json_result(200,"操作成功");
+        }else{
+            $id=input("id");
+            if ($id){
+                $da=Problem::where(["id"=>$id])->find();
+                $info["name"]=$da->name;
+                $info["text"]=$da->text;
+                $info["id"]=$id;
+            }else{
+                $info["name"]="";
+                $info["text"]="";
+                $info["id"]=0;
+            }
+
+            $view = [
+                'info' => $info,
+                'title' => lang('add'),
+            ];
+            View::assign($view);
+            return View::fetch();
+        }
+
+    }
+
+
+    // 收款信息
+
+    public function push()
+    {
+        if (Request::isPost()){
+            $data = Request::post();
+            foreach ($data as $k=>$v){
+                $res =  Db::name('system')->where('name',$k)->update(['value'=>$v]);
+            }
+            json_result(200,"修改成功",$data);
+        }
+
+        $list = Db::name('system')
+            ->where(["type"=>"shouk"])
+            ->field('name,value')
+            ->column('value','name');
+        View::assign('config',json_encode($list));
+        $view = [
+            'info' => $list,
+            'title' => lang('add'),
+        ];
+        View::assign($view);
+        return View::fetch();
+    }
+
+
+    //系统消息管理
+    public function sysmsg()
+    {
+
+        if (Request::isPost()){
+            $name=input("name");
+            $page=input("page")?:1;
+            $limit=input("limit")?:10;
+            $where=[];
+            $list=Db::name("notice")->order("id desc")->where($where)->paginate(["list_row"=>$limit,"page"=>$page])->each(function ($item){
+                return $item;
+
+            })->toArray();
+            return  $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data']?:[], 'count' => $list['total']?:0];
+
+        }
+        return View::fetch();
+    }
+
+    // 更新是否显示消息
+    public function update_nocice_status()
+    {
+        $id=input("id");
+        $status=input("status")?:0;
+        Notice::update(["status"=>$status],["id"=>$id]);
+        json_result(200,"操作成功");
+    }
+
+    public function del_msg()
+    {
+        $id=input("id");
+        Notice::where(["id"=>$id])->delete();
+        json_result(200,"删除成功");
+    }
+
+    // 添加消息
+    public function addmsg()
+    {
+
+        if (Request::isPost()){
+            $id=input("id");
+            $add["name"]=input("name");
+            $add["text"]=input("text");
+            if ($id){
+                Notice::update($add,["id"=>$id]);
+            }else{
+                Notice::create($add);
+            }
+            json_result(200,"操作成功");
+        }else{
+            $id=input("id");
+            if ($id){
+                $da=Problem::where(["id"=>$id])->find();
+                $info["name"]=$da->name;
+                $info["text"]=$da->text;
+                $info["id"]=$id;
+            }else{
+                $info["name"]="";
+                $info["text"]="";
+                $info["id"]=0;
+            }
+
+            $view = [
+                'info' => $info,
+                'title' => lang('add'),
+            ];
+            View::assign($view);
+            return View::fetch();
+        }
+
+    }
 }

+ 126 - 10
php/app/admin/controller/Finance.php

@@ -9,6 +9,12 @@
 namespace app\admin\controller;
 
 
+use app\common\controller\Orde;
+use app\common\model\Bond;
+use app\common\model\GeneralFinance;
+use think\facade\Request;
+use think\facade\View;
+
 class Finance
 {
 // 财务管理
@@ -18,39 +24,149 @@ class Finance
      */
     public function tongji()
     {
+        if (Request::isPost()) {
+            $name = input("name");
+            $page = input("page") ?: 1;
+            $limit = input("limit") ?: 10;
+            $where = [];
+//            if ($name){
+//                $where["name"]=["like","% $name %"];
+//            }
+
+            $where["daili"]=0;
+            $list = \app\common\model\Finance::where($where)->order("id desc")->paginate(["list_row" => $limit, "page" => $page])->each(function ($item) {
+
+                $user = \app\common\model\User::where(["id" => $item["user_id"]])->field("name")->find();
+                $item["user_name"] = $user->name;
+
+                return $item;
+
+            })->toArray();
+            return $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data'] ?: [], 'count' => $list['total'] ?: 0];
+
+        }
 
-}
+        return View::fetch();
+    }
 
     /**
      * 充值审核
      */
     public function shenhe()
     {
+        if (Request::isPost()) {
+            $name = input("name");
+            $page = input("page") ?: 1;
+            $limit = input("limit") ?: 10;
+            $where = [];
+//            if ($name){
+//                $where["name"]=["like","% $name %"];
+//            }
+//            $where["type"]=0;
+            $list = GeneralFinance::where($where)->order("status asc,id desc")->paginate(["list_row" => $limit, "page" => $page])->each(function ($item) {
+                $user = \app\common\model\User::where(["id" => $item["user_id"]])->field("name")->find();
+                $item["user_name"] = $user->name;
+                $item["add_time"]=date("Y-m-d H:i:s",$item["add_time"]);
+                if ($item["status"]==0){
+                    $item["status"]="审核中";
+                }elseif($item["status"]==1){
+                    $item["status"]="已通过";
+                }else{
+                    $item["status"]="已拒绝";
+                }
+                return $item;
 
-}
+            })->toArray();
+            return $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data'] ?: [], 'count' => $list['total'] ?: 0];
 
-    /**
-     * 充值记录
-     */
-    public function chongzjl()
+        }
+
+        return View::fetch();
+    }
+
+    // 审核拒绝general_finance
+    public function jujue()
+    {
+        $id=input("id");
+        GeneralFinance::update(["status"=>2],["id"=>$id]);
+        json_result(200,"设置成功");
+    }
+// 充值成功
+    public function czcg()
     {
-        
-}
+        $id=input("id");
+        $bond=GeneralFinance::where(["id"=>$id])->find();
+        // 给用户加钱
+        $user=\app\common\model\User::where(["id"=>$bond->user_id])->find();
+        $money=$user->money+$bond->actual_money;
+        \app\common\model\User::update(["money"=>$money],["id"=>$bond->user_id]);
+        GeneralFinance::update(["status"=>1],["id"=>$id]);
+
+        // 添加财务日记
+        Orde::Finance($bond->user_id,"您的充值申请审核通过",$bond->actual_money,0);
+        json_result(200,"设置成功");
+
+    }
+
 
     /**
      * 代理收入
      */
     public function daili()
     {
+        if (Request::isPost()) {
+            $name = input("name");
+            $page = input("page") ?: 1;
+            $limit = input("limit") ?: 10;
+            $where = [];
+//            if ($name){
+//                $where["name"]=["like","% $name %"];
+//            }
+            $where["daili"]=1;
+            $list = \app\common\model\Finance::where($where)->order("id desc")->paginate(["list_row" => $limit, "page" => $page])->each(function ($item) {
+
+                $user = \app\common\model\User::where(["id" => $item["user_id"]])->field("name")->find();
+                $item["user_name"] = $user->name;
+
+                return $item;
+
+            })->toArray();
+            return $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data'] ?: [], 'count' => $list['total'] ?: 0];
+
+        }
 
-}
+        return View::fetch();
+    }
 
     /**
      * 赠送记录
      */
     public function zhengshon()
     {
+        if (Request::isPost()) {
+            $name = input("name");
+            $page = input("page") ?: 1;
+            $limit = input("limit") ?: 10;
+            $where = [];
+//            if ($name){
+//                $where["name"]=["like","% $name %"];
+//            }
+
+            $where["daili"]=2;
+            $list = \app\common\model\Finance::where($where)->order("id desc")->paginate(["list_row" => $limit, "page" => $page])->each(function ($item) {
+
+                $user = \app\common\model\User::where(["id" => $item["user_id"]])->field("name")->find();
+                $item["user_name"] = $user->name;
+
+                return $item;
+
+            })->toArray();
+            return $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data'] ?: [], 'count' => $list['total'] ?: 0];
+
+        }
+
+        return View::fetch();
+    }
 
-}
 
 }

+ 23 - 1
php/app/admin/controller/Order.php

@@ -9,6 +9,9 @@
 namespace app\admin\controller;
 
 
+use think\facade\Request;
+use think\facade\View;
+
 class Order
 {
  // 订单管理
@@ -18,7 +21,26 @@ class Order
      */
     public function buy()
     {
-        
+        if (Request::isPost()) {
+            $name = input("name");
+            $page = input("page") ?: 1;
+            $limit = input("limit") ?: 10;
+            $where = [];
+//            if ($name){
+//                $where["name"]=["like","% $name %"];
+//            }
+            $where["status"]=0;
+            $list = \app\common\model\Order::where($where)->order("id desc")->paginate(["list_row" => $limit, "page" => $page])->each(function ($item) {
+
+                $user = \app\common\model\User::where(["id" => $item["buy_user"]])->field("name")->find();
+                $item["user_name"] = $user->name;
+                $item["add_time"]=date("Y-m-d H:i:s",$item["add_time"]);
+                return $item;
+
+            })->toArray();
+            return $result = ['code' => 0, 'msg' => lang('get info success'), 'data' => $list['data'] ?: [], 'count' => $list['total'] ?: 0];
+        }
+        return View::fetch();
     }
 
     /**

+ 0 - 6
php/app/admin/controller/Uploads.php

@@ -53,12 +53,6 @@ class Uploads extends Backend{
      * @return false|string
      */
     public function Uploads(){
-//        ini_set("upload_max_filesize","9M");//即允许上传文件大小的最大值
-//        ini_set("post_max_size","9M");//指通过表单POST给PHP的所能接收的最大值
-//        ini_set("memory_limit","9M");//;每个PHP页面所吃掉的最大内存
-//        ini_set("max_execution_time","3600");//每个PHP页面运行的最大时间值(秒)
-//        ini_set("max_input_time","3600");//每个PHP页面接收数据所需的最大时间(秒)
-
         //获取上传文件表单字段名
         $fileKey = array_keys(request()->file());
 

+ 346 - 0
php/app/common/controller/Orde.php

@@ -0,0 +1,346 @@
+<?php
+/**
+ *
+ * User: anyluck
+ * Date: 2020/6/4
+ * Time: 13:29
+ */
+
+namespace app\common\controller;
+
+
+use app\common\model\BondFinance;
+use app\common\model\Finance;
+use app\common\model\Mining;
+use app\common\model\Order;
+use app\common\model\OrderFrequency;
+use app\common\model\User;
+use app\common\model\VendibilityFinance;
+use app\web\model\Msg;
+
+class Orde
+{
+    // 订单处理 前后台通用
+    /**卖出处理
+     * @param $order_id 订单id
+     * @param $push_user_id 购买用户
+     * @param $order 交易订单
+     * @param $count_order 已购买次数
+     */
+    public static function push_order($user, $order_id, $push_user_id, $order, $count_order, $sxf_money = 0)
+    {
+        // 修改订单信息
+
+//减去账号通证 和可售额度
+        if ($count_order + 1 == 5) {
+            $money = $user->money - $order->out_game;// 通行证
+        } else {
+            $money = $user->money - $order->tong_money;// 通行证
+        }
+
+        $push_money = $user->push_money - $order->number;// 可售额度
+        User::update(["money" => $money, "push_money" => $push_money], ["id" => $push_user_id]);
+
+        $where["id"] = $order_id;
+        $update["push_user"] = $push_user_id;
+        $update["sxf_money"] = $money;//卖出已交手续费
+        $update["status"] = 1;
+        $update["stat_time"] = time() + 4 * 3600;
+        Order::where($where)->update($update);
+        // 添加财务记录
+        self::Finance($push_user_id, "卖出BTS", $money, 1);
+
+        // 给买家发短信或邮件
+        $buy_user_id = $order->buy_user;// 买入人
+        $buy_user = User::where(["id" => $buy_user_id])->field("id,phone,mail")->find();
+        // 发送通知用户 短信和邮件
+        $content = "其他对您卖出BTS,请登录前去查看";
+        if ($buy_user->phone) {
+            Msg::phone($content, $user->phone);
+        } else {
+            Msg::mail($content, $user->mail);
+        }
+    }
+
+//    /**买入 减去对应的保证金
+//     * @param $buy_user_id 用户id
+//     * @param $money // 剩余多少钱
+//     * @param $jmoney // 减去多少钱
+//     * @param $ensure_money // 减去保证金
+//     */
+//    public static function buy_order($buy_user_id, $ensure_money, $jensure_money)
+//    {
+//        User::update(["ensure_money" => $ensure_money], ["id" => $buy_user_id]);// 更新用户金额
+//        // 添加保证金记录
+//        self::bond_finance($buy_user_id, "发起购买BTS交易", $jensure_money, 1);
+//    }
+
+
+    // 转账处理
+    public static function transfer($user_id, $puser_id, $money, $jmoney, $name)
+    {
+        // 给转账人减钱
+        User::update(["money" => $jmoney], ["id" => $user_id]);
+        // 给接受人加钱
+        $where["id"] = $puser_id;
+        $user = User::where($where)->field("money,name,phone,mail")->find();
+        $zong_money = $user->money + $money;
+        User::update(["money" => $zong_money], ["id" => $puser_id]);
+        self::Finance($user_id, "您给用户" . $user->name . "转账", $money, 1);// 转账人减钱
+        self::Finance($puser_id, "用户" . $name . "给您转账", $money, 0);// 收账人加钱
+
+        // 发送通知用户 短信和邮件
+        $content = "用户" . $name . "给你转账" . $money . "BTS";
+        if ($user->phone) {
+            Msg::phone($content, $user->phone);
+        } else {
+            Msg::mail($content, $user->mail);
+        }
+    }
+
+
+    // 保证金操作
+    public static function bond_transfer($user, $user_id, $money, $ensure_money, $type)
+    {
+
+        if ($type == 0) {//0 充值 1 提现
+            $money = $user->money - $money;// 通证
+            $ensure_moneys = $user->ensure_money + $ensure_money;// 加保证金
+            User::update(["money" => $money, "ensure_money" => $ensure_moneys], ["id" => $user_id]);
+            // 添加财务记录
+            self::Finance($user_id, "保证金充值", $money, 1);
+            self::bond_finance($user_id, "保证金充值", $money, 0);
+        } else {
+            $money = $user->money + $money;// 通证
+            $ensure_moneys = $user->ensure_money - $ensure_money;// 加保证金
+            User::update(["money" => $money, "ensure_money" => $ensure_moneys], ["id" => $user_id]);
+            // 添加财务记录
+            self::Finance($user_id, "保证金提现", $money, 0);
+            self::bond_finance($user_id, "保证金提现", $money, 1);
+
+        }
+
+    }
+
+// 后台充值
+    public static function admin_Recharge($user_id, $money)
+    {
+        $where["id"] = $user_id;
+        $user = User::where($where)->field("money,name,phone,mail")->find();
+        $zong_money = $user->money + $money;
+        User::update(["money" => $zong_money], ["id" => $user_id]);// 更新账号金额
+        self::Finance($user_id, "充值成功", $money, 0);
+        // 发送通知用户 短信和邮件
+        $content = "充值" . $money . "BTS已处理";
+        if ($user->phone) {
+            Msg::phone($content, $user->phone);
+        } else {
+            Msg::mail($content, $user->mail);
+        }
+    }
+
+
+    // 订单失败处理,全局使用
+    public static function order_fail($msg, $order)
+    {
+        // 查找交易区块
+        $mining = Mining::where(["id" => $order->mining_id])->find();
+        // 扣除买入人的违约金
+        $ensure_money = $mining->breach_money;
+        $where["id"] = $order->buy_user;
+        $user = User::where($where)->find();
+        $update["ensure_money"] = $user->ensure_money - $ensure_money;
+        // 添加违约金记录
+        self::bond_finance($order->buy_user, "交易失败扣除保证金", $ensure_money, 1);
+        User::update($update, $where);
+        // 给卖出人加钱
+        $push_user = User::where(["id" => $order->push_user])->find();
+        $push_money = $push_user->push_money + $order->number;// 加回可售额度
+        // 加上违约金 加入通证 和手续费
+        $add_money = $ensure_money + $order->sxf_money;// 总获得多少钱
+        $money = $push_user->money + $add_money;// 账号变动
+        User::update(["money" => $money, "push_money" => $push_money], ["id" => $order->push_user]);
+        // 添加记录
+        self::Finance($order->push_user, "交易失败退回手续费", $order->sxf_money, 0);
+        self::Finance($order->push_user, "交易失败获得违约金", $ensure_money, 0);
+
+        // 更新订单状态
+        $where_order["id"] = $order->id;
+        $update_order["msg"] = $msg;
+        $update_order["status"] = 5;
+        Order::update($update_order, $where_order);
+
+        return 1;
+    }
+
+
+    /** 交易成功全局使用
+     * @param $order 订单数据
+     */
+    public static function order_success($order)
+    {
+
+        // 更新订单状态
+        $update_order["status"]=3;
+        Order::update($update_order,["id"=>$order->id]);
+
+        $buy_user = $order->buy_user;// 买入人
+        $push_user = $order->push_user;// 卖出人
+        $mining_id = $order->mining_id;// 交易区
+        $mining = Mining::where(["id" => $mining_id])->find();// 交易区
+        if (!$mining){
+            json_result(400,"价格区已经不存在了,无法计算");
+        }
+
+        // 统计交易次数
+        // todo   买入人处理
+        $buy_order_frequency = OrderFrequency::where(["user_id" => $buy_user, "mining_id" => $mining_id])->find();
+        if (!$buy_order_frequency) {//不存在
+            $buy_count = 1;
+            $buy_number = 1;
+            $push_number = 0;
+            $add_buy["user_id"] = $buy_user;
+            $add_buy["mining_id"] = $mining_id;
+            $add_buy["buy"] = 1;
+            $add_buy["push"] = 0;
+            OrderFrequency::create($add_buy);
+        } else {
+            $buy_count = $buy_order_frequency->buy + 1;
+            $buy_number = $buy_count;
+            $push_number = $buy_order_frequency->push;
+            OrderFrequency::update(["buy" => $buy_count], ["id" => $buy_order_frequency->id]);// 更新次数
+        }
+
+
+        $buy_user_data = User::where(["id" => $buy_user])->find();
+
+        $keshou_money = $mining->enlarge_quota;// 可售额度
+        // 第一次交易给用户加矿池金
+        if ($buy_count == 1) {
+            $pool_money = $mining->mining;
+            $update_buy["pool_money"] = $buy_user_data->pool_money + $pool_money;// 加矿池金
+            self::VendonolotyFinance($buy_user, $mining_id, $order->id, $order->number, $mining->mining, $keshou_money, $buy_number, $push_number, 1);
+        }
+        $enlarge_quota = $keshou_money + $buy_user_data->push_money;//可售额度
+        // 给账号加相应数据
+        $update_buy["push_money"] = $enlarge_quota;
+        User::update($update_buy, ["id" => $buy_user]);
+
+
+        // TODO 卖出处理
+
+
+        $push_order_frequency = OrderFrequency::where(["user_id" => $push_user, "mining_id" => $mining_id])->find();
+
+        if (!$push_order_frequency) {
+            $push_count = 1;
+            $add_push["user_id"] = $push_user;
+            $add_push["mining_id"] = $mining_id;
+            $add_push["buy"] = 0;
+            $add_push["push"] = 1;
+            OrderFrequency::create($add_push);
+        } else {
+            $push_count = $push_order_frequency->push + 1;
+
+            OrderFrequency::update(["push" => $push_count], ["id" => $push_order_frequency->id]);// 更新次数
+        }
+
+        // 减少账号的矿金
+        $push_user_data = User::where(["id" => $push_user])->find();
+        $kuangjine = $push_user_data->pool_money - $mining->num;
+        User::update(["pool_money" => $kuangjine], ["id" => $push_user]);
+        if ($push_count == 5) {// 第五次 代理结算
+            $direct_push = $mining->direct_push;//直推获得
+            $second_push = $mining->second_push;//次推获得
+            // 查找直接上级
+            if ($push_user_data->pid) {// 是否存在直接上级
+                $zhitui_push_user = User::where(["id" => $push_user_data->pid])->find();
+                if ($zhitui_push_user) {
+                    // 直推奖励
+                    if ($direct_push) {// 直推奖励设置不小于0
+                        // 查看活跃度
+                        $zhitui_time =strtotime($zhitui_push_user->update_time)  + (24 * 3600);
+                        if ($zhitui_time >= time()) {// 在活跃度里面就计算奖励
+                            $update_zhitui["money"] = $zhitui_push_user->money + $direct_push;
+                            User::update($update_zhitui, ["id" => $push_user_data->pid]);
+                            // 添加财务记录
+                            self::Finance($push_user_data->pid, "获得直推奖励", $direct_push, 0,1);
+                        }
+                    }
+                    if ($zhitui_push_user->pid) {// 是否存在次级上级
+                        // 次级上级
+                        if ($second_push) {// 次级奖励不小于0
+                            // 查询次级用户
+                            $ciji_push_user = User::where(["id" => $zhitui_push_user->pid])->find();
+                            if ($ciji_push_user) {
+                                $ciji_time = (int)strtotime($ciji_push_user->update_time) + 24 * 3600;
+                                if ($ciji_time >= time()) {// 给次级上级发奖励
+                                    $update_ciji["money"] = $ciji_push_user->money - $second_push;
+                                    User::update($update_ciji, ["id" => $zhitui_push_user->pid]);
+                                    // 添加财务记录
+                                    self::Finance($zhitui_push_user->pid, "获得次推奖励", $second_push, 0,1);
+                                }
+                            }
+                        }
+                    }
+
+
+                }
+
+
+            }
+        }
+
+    }
+
+    //资产明细
+    public static function Finance($user_id, $name, $money, $status,$daili=0)
+    {
+        $add["user_id"] = $user_id;
+        $add["name"] = $name;
+        $add["money"] = $money;
+        $add["status"] = $status;
+        $add["daili"] = $daili;
+        $add["add_time"] = time();
+        Finance::create($add);
+    }
+
+
+    // 保证金处理
+    public static function bond_finance($user_id, $name, $money, $status)
+    {
+        $add["user_id"] = $user_id;
+        $add["name"] = $name;
+        $add["money"] = $money;
+        $add["status"] = $status;
+        $add["add_time"] = time();
+        BondFinance::create($add);
+
+    }
+
+    /**可售余额 记录
+     * @param $user_id 用户id
+     * @param $mining_id 区块id
+     * @param $order_id 订单id
+     * @param $money  获得交易区块
+     * @param $pool  矿池数量
+     * @param $push_money  可售额度
+     * @param $buy 当前买入次数
+     * @param $push  当前卖出次数
+     * @param $status 0 增加 1 减少
+     */
+    public static function VendonolotyFinance($user_id, $mining_id, $order_id, $money, $pool, $push_money, $buy, $push, $status)
+    {
+        $add["user_id"] = $user_id;
+        $add["mining_id"] = $mining_id;
+        $add["order_id"] = $order_id;
+        $add["money"] = $money;
+        $add["pool"] = $pool;
+        $add["push_money"] = $push_money;
+        $add["buy"] = $buy;
+        $add["push"] = $push;
+        $add["status"] = $status;
+        $add["add_time"] = time();
+        VendibilityFinance::create($add);
+    }
+}

+ 68 - 13
php/app/common/controller/Upfile.php

@@ -9,25 +9,80 @@
 namespace app\common\controller;
 
 
+use think\facade\Request;
+use lemo\helper\DataHelper;
 class Upfile
 {
 
+    //上传验证规则
+    protected $uploadValidate = [
+        'image' => 'filesize:102400|fileExt:jpg,png,gif,jpeg,rar,zip,avi,mp4,rmvb,3gp,flv,mp3,txt,doc,xls,ppt,pdf,xls,docx,xlsx,doc,wmv'
+    ];
+    protected $imageValidate = [
+        'image' => 'filesize:10240|fileExt:jpg,png,gif,jpeg,bmp,svg,wmv'
+
+    ];
+    protected $videoValidate = [
+        'file' => 'filesize:10240|avi,rmvb,3gp,flv,mp4,wmv'
+
+    ];
+    protected $voiceValidate = [
+        'file' => 'filesize:2048|mp3,wma,wav,amr,wmv'
+
+    ];
+
+    public function initialize()
+
+    {
+        $fileExt = getConfigByCode('upload_file_type');
+        $filemax = getConfigByCode('upload_file_max') * 1024;
+        $this->uploadValidate = ['image' =>
+            'filesize' . $filemax . '|' . $fileExt,
+        ];
+        parent::initialize(); // TODO: Change the autogenerated stub
+    }
 
     // TODO 文件类处理
 
-    //上传服务器文件
-    public  static function uploadone($files){
-        $wheatpic = '';
-        // 移动到框架应用根目录/public/uploads/ 目录下
-        $info = $files->validate(['size'=>1567800,'ext'=>'jpg,png,gif,jpeg,pdf,word,excel,xls,ppt,zip,rar,doc,docx'])->move(ROOT_PATH . 'public' . DS . 'uploads');
-        if($info){
-            // 成功上传后 获取上传信息
-            // 输出 jpg
-            $wheatpic = '/uploads/' . str_replace('\\', '/', $info->getsaveName ());
-        }else{
-            // 上传失败获取错误信息
-            self::error($files->getError());
+    /**
+     * 文件上传
+     * @return false|string
+     */
+    public function Uploads()
+    {
+        //获取上传文件表单字段名
+        $fileKey = array_keys(request()->file());
+
+        for ($i = 0; $i < count($fileKey); $i++) {
+            //获取表单上传文件
+            $file = request()->file($fileKey[$i]);
+            try {
+                validate($this->uploadValidate)->check(DataHelper::objToArray($file));
+                $savename = \think\facade\Filesystem::disk('public')->putFile('uploads', $file);
+                $savename = str_replace('\\', "/", $savename);
+                $path[] = '/storage/' . $savename;
+            } catch (\think\exception\ValidateException $e) {
+                $path = '';
+                $error = $e->getMessage();
+            }
+        }
+
+        if (!empty($path)) {
+            $result['code'] = 1;
+            //分辨是否截图上传,截图上传只能上传一个,非截图上传可以上传多个
+            if (Request::param('responseType') == 'json') {
+                $result["url"] = $path[0];
+            } else {
+                $result["url"] = $path;
+            }
+            $result['msg'] = lang('upload success');
+            return $result;
+        } else {
+            //上传失败获取错误信息
+            $result['url'] = '';
+            $result['msg'] = $error;
+            $result['code'] = 0;
+            return $result;
         }
-        return $wheatpic;
     }
 }

+ 115 - 7
php/app/web/controller/Index.php

@@ -9,11 +9,16 @@
 namespace app\web\controller;
 
 
+use app\common\controller\Orde;
 use app\common\model\Banner;
+use app\common\model\Message;
 use app\common\model\Mining;
 use app\common\model\Notice;
+use app\common\model\Order;
 use app\common\model\State;
+use app\common\model\User;
 use app\web\model\Back;
+use app\web\model\Msg;
 use app\web\model\Orders;
 
 class Index extends Base
@@ -25,18 +30,28 @@ class Index extends Base
     public function index()
     {
         $data=[];
-        $banner=Banner::where(["status"=>0])->select();
+        $message_count=Message::where(["status"=>0,"user_id"=>$this->user_id])->count();
+        $data["message_count"]=$message_count;// 未读消息
+        $banner=Banner::where(["status"=>0])->field("id,image")->select();
         $data["banner"]=$banner;// 轮播图
+        // 公告
+        $notice=Notice::where(["status"=>0])->field("id,name")->select();
+        $data["notice"]=$notice;
         // 交易区块
         $back=Back::back();
         $data["back"]=$back;
-        // 公告
-        $notice=Notice::where(["status"=>0])->select();
-        $data["notice"]=$notice;
         json_result(200,"",$data);
 
+    }
 
 
+    // 轮播图详情
+    public function banner_show()
+    {
+        $id=input("id");
+        $where["id"]=$id;
+        $data=Banner::where($where)->find();
+        json_result(200,"",$data);
 
     }
 
@@ -60,10 +75,12 @@ class Index extends Base
     {
         $page=input("page")?:1;
         $limit=input("limit")?:10;
-        $type=input("type")?:0;//0买入数据 1卖出数据 2我的购买数据 3我的卖出数据
-        $status=input("status");//0 未匹配 1 已匹配或待支付 2已上传数据 3 已完成 4 已撤销 5 交易失败
+
+        $type=input("type")?:0;// 0是查看交易中心求购数据 1我的购买数据 2我的卖出数据
+        $status=input("status");//0 不根据状态查询 1 查找进行中的 2 已完成的  配合上面的type 一起使用
+        $num=input("num")?:0;// 查看交易中心是传的区块数量 0 是全部
         $user_id=$this->user_id;
-        $res=Orders::order_list($type,$user_id,$status,$page,$limit);
+        $res=Orders::order_list($type,$user_id,$status,$page,$limit,$num);
         json_result(200,"",$res);
     }
 
@@ -75,7 +92,98 @@ class Index extends Base
         $mining_id=input("mining_id")?:0;
         $order_id=input("order_id");
         Orders::push_order($this->user,$this->user_id,$type,$order_id,$mining_id);
+    }
+
+    // 订单详情
+    public function order_show()
+    {
+        $id=input("id");if (!$id)json_result(400,"请上传订单id");
+        $order=Order::where(["id"=>$id])->find();
+        if (!$order){
+            json_result(400,"订单不存在");
+        }
+        if ($order->buy_user&&$order->push_user){
+            Orders::order_show($order,$this->user_id);
+        }else{
+            json_result(400,"当前订单未卖出无法查询卖出人信息");
+        }
+
+    }
+
+    //上传凭证
+    public function order_voucher()
+    {
+        $id=input("id");if (!$id)json_result(400,"订单id 没有上传");
+        $image=input("image");if ($image)json_result(400,"请上传凭证");
+        $where["id"]=$id;
+        $order=Order::where($where)->find();
+        if (!$order){
+            json_result(400,"订单id错误");
+        }
+        if ($order->status!=1){
+            json_result(400,"当前状态无法上传凭证");
+        }
+
+        // 给用户短信或者邮件通知
+        $where_user["id"]=$order->push_user;
+        $user=User::where($where_user)->find();
+        $content="您的订单买家已经打款请前去查看";
+//dump($user);die();
+        Order::update(["image"=>$image,"status"=>2],$where);
+        if ($user->phone){
+            Msg::phone($content,$user->phone);
+        }else{
+            Msg::mail($content,$user->mail);
+        }
+        json_result(200,"操作成功");
+
+    }
+
 
+    // 审核成功
+    public function order_success()
+    {
+        $id=input("id");
+
+        $where["id"]=$id;
+        $order=Order::where($where)->find();
+        if (!$order){
+            json_result(400,"订单id错误");
+        }
+        if ($order->status==3){
+            json_result(400,"订单已经完成");
+        }
+        if ($order->status!=2){
+            json_result(400,"还没有上传证明");
+        }
+
+        Orde::order_success($order);
+        json_result(200,"处理成功");
+    }
+    
+    // 审核失败
+    public function order_fail()
+    {
+        $id=input("id");if (!$id)json_result(400,"请上传订单id");
+        $msg=input("msg");if (!$msg)json_result(400,"请添加失败原因");
+        Orders::order_fail($msg,$id);
+    }
+
+    // 取消交易
+    public function Order_Cancel ()
+    {
+        $id=input("id");
+        $where["id"]=$id;
+        $order=Order::where(["id"=>$id])->find();
+        if ($order->status==0){
+            // 修改订单状态
+            $update["status"]=4;
+            Order::update($update,["id"=>$id]);
+            json_result(200,"取消成功");
+        }else{
+            json_result(400,"不能取消");
+        }
+        
     }
 
     // 申述

+ 119 - 79
php/app/web/controller/Login.php

@@ -12,143 +12,183 @@ namespace app\web\controller;
 use app\common\controller\Upfile;
 use app\common\model\PhoneCode;
 
+use app\common\model\System;
 use app\common\model\User;
+use app\web\model\Team;
 use app\web\model\Tripartite;
 use Ramsey\Uuid\Uuid;
 
 class Login
 {
- // todo 登录注册
+    // todo 登录注册
 
     // 登录
     public function in_login()
     {
-        $phone=input("phone");if (!$phone)json_result(400,"请输入手机号码或者邮箱账号");
-        $pwd=input("pwd");if (!$pwd)json_result(400,"请输入登录密码");
-        $where["phone|mail"]=$phone;
-        $user=User::where($where)->find();
-        if (!$user){
-            json_result(400,"账号不存在");
+        $phone = input("phone");
+        if (!$phone) json_result(400, "请输入手机号码或者邮箱账号");
+        $pwd = input("pwd");
+        if (!$pwd) json_result(400, "请输入登录密码");
+        $where["phone|mail"] = $phone;
+        $user = User::where($where)->find();
+        if (!$user) {
+            json_result(400, "账号不存在");
         }
-        if (!password_verify($pwd,$user->pwd)){
-            json_result(400,"密码错误");
+        if (!password_verify($pwd, $user->pwd)) {
+            json_result(400, "密码错误");
         }
-        json_result(200,"登录成功",$user);
+        if ($user->status == 1) {// 禁止登录
+            if ($user->status_time > time()) {
+                json_result(400, "该账号已经封号");
+            } else {// 解除禁止登陸
+                User::update(["status" => 0, "status_time" => ""], ["id" => $user->id]);
+            }
+        }
+        // 给账号加活跃度
+        $update["update_time"]=time();
+        User::update($update,["id"=>$user->id]);
+        json_result(200, "登录成功", $user);
     }
 
 
     // 获取验证码
     public function code()
     {
-        $phone=input("phone");if (!$phone)json_result(400,"请输入手机号或者邮箱");
-        $type=input("type")?:0;
-        
+        $phone = input("phone");
+        if (!$phone) json_result(400, "请输入手机号或者邮箱");
+        $type = input("type") ?: 0;
+
         // 查询是否重复发送
-        $where["phone"]=$phone;
-        $where["add_time"]=["<",time()-(1*60)];
-        $phone_code=PhoneCode::where($where)->find();
-        if ($phone_code){
-            json_result(400,"验证码已发送请稍后再发送");
+        $where["phone"] = $phone;
+        $where["add_time"] = ["<", time() - (1 * 60)];
+        $phone_code = PhoneCode::where($where)->find();
+        if ($phone_code) {
+            json_result(400, "验证码已发送请稍后再发送");
         }
-        $res=Tripartite::send_code($phone,$type);
-        json_result(200,"验证码发送成功",$res);
-        
+        $res = Tripartite::send_code($phone, $type);
+        json_result(200, "验证码发送成功", $res);
+
     }
 
     // 注册
     public function register()
     {
-        $phone=input("phone");if (!$phone)json_result(400,"请输入手机号或者邮箱");
-        $code=input("code");if (!$code)json_result(400,"请输入验证码");
-        $name=input("name");if (!$name)json_result(400,"请输入账户呢称");
-        $type=input("type")?:0;
-        $pwd=input("pwd");if (!$pwd)json_result(400,"请输入密码");
-        $pid=input("pid");
+        $phone = input("phone");
+        if (!$phone) json_result(400, "请输入手机号或者邮箱");
+        $code = input("code");
+        if (!$code) json_result(400, "请输入验证码");
+        $name = input("name");
+        if (!$name) json_result(400, "请输入账户呢称");
+        $type = input("type") ?: 0;
+        $pwd = input("pwd");
+        if (!$pwd) json_result(400, "请输入密码");
+        $pid = input("pid");
 
         // 查看账号是存在
-        $where["phone|mail"]=$phone;
-        $user=User::where($where)->find();
-        if ($user){
-            json_result(400,"账号已注册,请前去登录");
+        $where["phone|mail"] = $phone;
+        $user = User::where($where)->find();
+        if ($user) {
+            json_result(400, "账号已注册,请前去登录");
         }
 
         // 验证码
-        $phone_code=Tripartite::push_code($phone);
-        if ($phone_code!=$code){
-            json_result(400,"验证码错误");
+        $phone_code = Tripartite::push_code($phone);
+        if ($phone_code != $code) {
+            json_result(400, "验证码错误");
         }
 
-        if ($pid){
-            $where["code"]=$pid;
-            $pid_user=User::where($where)->find();
-            if (!$pid_user){
-                json_result(400,"上级账号不存在");
+        if ($pid) {
+            $where["code"] = $pid;
+            $pid_user = User::where($where)->find();
+            if (!$pid_user) {
+                json_result(400, "上级账号不存在");
             }
-            $add["pid"]=$pid_user->id;
+            $add["pid"] = $pid_user->id;
+//            Team::all_tem($pid_user->id);
         }
-        $add["code"]=uniqid();
-        if ($type==0){
-            $add["phone"]=$phone;
-        }else{
-            $add["mail"]=$phone;
+        $add["code"] = uniqid();
+        if ($type == 0) {
+            $add["phone"] = $phone;
+        } else {
+            $add["mail"] = $phone;
         }
-        $add["name"]=$name;
-        $uuid=Uuid::uuid1();
-        $add["token"]=$uuid->getHex();;
-        $add["add_time"]=time();
-        $add["pwd"]= password_hash($pwd, PASSWORD_DEFAULT);;
+
+        $add["name"] = $name;
+        $add["uuid"] = uniqid();// 收款ID
+        $uuid = Uuid::uuid1();
+        $add["token"] = $uuid->getHex();;
+        $add["add_time"] = time();
+        $add["pwd"] = password_hash($pwd, PASSWORD_DEFAULT);;
+
+//        dump($add);die();
         User::create($add);
-        json_result(200,"测试成功");
+        json_result(200, "注册成功");
 
     }
 
     // 忘记密码 第一部
     public function forget_password()
     {
-        $phone=input("phone");if(!$phone)json_result(400,"请输入手机号码或者邮箱");
-        $type=input("type")?:0;
-        $code=input("code");if (!$code)json_result(400,"请输入验证码");
-        $name=input("name");
+        $phone = input("phone");
+        if (!$phone) json_result(400, "请输入手机号码或者邮箱");
+        $type = input("type") ?: 0;
+        $code = input("code");
+        if (!$code) json_result(400, "请输入验证码");
+        $name = input("name");
         // 查看账号是存在
-        $where["phone|mail"]=$phone;
-        $user=User::where($where)->find();
-        if (!$user){
-            json_result(400,"账号不存在");
+        $where["phone|mail"] = $phone;
+        $user = User::where($where)->find();
+        if (!$user) {
+            json_result(400, "账号不存在");
         }
         // 验证码
-        $phone_code=Tripartite::push_code($phone,$type);
-        if ($phone_code!=$code){
-            json_result(400,"验证码错误");
+        $phone_code = Tripartite::push_code($phone, $type);
+        if ($phone_code != $code) {
+            json_result(400, "验证码错误");
         }
-        json_result(200,"验证码成功");
+        json_result(200, "验证码成功");
     }
 
     // 修改密码--第二步
     public function update_password()
     {
-        $pwd=input("pwd");if (!$pwd)json_result(400,"请输入密码");
-        $phone=input("phone");if(!$phone)json_result(400,"请输入手机号码或者邮箱");
+        $pwd = input("pwd");
+        if (!$pwd) json_result(400, "请输入密码");
+        $phone = input("phone");
+        if (!$phone) json_result(400, "请输入手机号码或者邮箱");
         // 查看账号是存在
-        $where["phone|mail"]=$phone;
-        $user=User::where($where)->find();
-        if (!$user){
-            json_result(400,"账号不存在");
+        $where["phone|mail"] = $phone;
+        $user = User::where($where)->find();
+        if (!$user) {
+            json_result(400, "账号不存在");
         }
-        $add["pwd"]= password_hash($pwd, PASSWORD_DEFAULT);;
-        User::where(["id"=>$user->id])->update($add);
-        json_result(200,"设置密码成功");
+        $add["pwd"] = password_hash($pwd, PASSWORD_DEFAULT);;
+        User::where(["id" => $user->id])->update($add);
+        json_result(200, "设置密码成功");
     }
 
     // 上传图片
     public function up_image()
     {
-          $img = request()->file('image');
-        if ($img){
-            $up['image']=Upfile::uploadone($img);
-            json_result(1,"成功",$up['image']);
-        }else{
-            json_result(2,"请上传图片");
-        }
+        $upfile = new Upfile();
+        $ret = $upfile->Uploads();
+        json_result(200, "", $ret["url"]);
+    }
+
+    // 会员协议
+    public function Membership()
+    {
+        $where["name"]="Membership";
+        $data=System::where($where)->field("value")->find();
+        json_result(200,"",$data->value?:"");
+
+    }
+
+    // 测试接口
+    public function test()
+    {
+        Team::father(2,8);
+
     }
 
 }

+ 86 - 20
php/app/web/controller/My.php

@@ -9,6 +9,7 @@
 namespace app\web\controller;
 
 
+use app\common\controller\Orde;
 use app\common\model\About;
 use app\common\model\Bond;
 use app\common\model\BondFinance;
@@ -19,10 +20,15 @@ use app\common\model\GeneralTransfer;
 use app\common\model\Message;
 use app\common\model\Notice;
 use app\common\model\Problem;
+use app\common\model\System;
 use app\common\model\User;
+use app\common\model\UserLevel;
 use app\common\model\UserMessage;
+use app\common\model\VendibilityFinance;
+use app\web\model\Team;
 use app\web\model\Tripartite;
-use think\Db;
+use think\facade\Db;
+
 
 class My extends Base
 {
@@ -108,7 +114,7 @@ class My extends Base
             UserMessage::create($add);
             $user_message = UserMessage::where($where)->find();
         }
-        json_result(200, $user_message);
+        json_result(200,"",$user_message);
 
     }
 
@@ -135,12 +141,14 @@ class My extends Base
     // 消息 获取最新的三条数据
     public function notice()
     {
-        $notice = Message::where(["type" => 0])->order("id desc")->find(); // 公告
-        $message_jiaoyi = Message::where(["type" => 2])->order("id desc")->find();// 交易
-        $message_zijin = Message::where(["type" => 1])->order("id desc")->find();// 资金
-        $data["notice"] = $notice;
-        $data["message_jiaoyi"] = $message_jiaoyi;
-        $data["message_zijin"] = $message_zijin;
+
+        $notice = Message::where(["type" => 0,"user_id"=>$this->user_id])->order("id desc")->find(); // 公告
+
+        $message_jiaoyi = Message::where(["type" => 2,"user_id"=>$this->user_id])->order("id desc")->find();// 交易
+        $message_zijin = Message::where(["type" => 1,"user_id"=>$this->user_id])->order("id desc")->find();// 资金
+        $data["notice"] = $notice?:new \ArrayObject();
+        $data["message_jiaoyi"] = $message_jiaoyi?:new \ArrayObject();
+        $data["message_zijin"] = $message_zijin?:new \ArrayObject();
         json_result(200, "", $data);
     }
 
@@ -192,7 +200,7 @@ class My extends Base
         $page = input("page") ?: 1;
         $limit = input("limit") ?: 10;
 
-        $list = Problem::order("id desc")->paginate(['list_rows' => $limit, 'page' => $page]);
+        $list = Problem::order("id desc")->field("id,name")->paginate(['list_rows' => $limit, 'page' => $page]);
 
         json_result(200, "", $list);
     }
@@ -218,9 +226,17 @@ class My extends Base
         $where["id"] = $this->user_id;
         $update["pwd"] = password_hash($pwd, PASSWORD_DEFAULT);;
         $user = User::where($where)->find();
-        if ($user->pwd == $update["pwd"]) {
-            json_result(400, "原密码不能和新密码一样");
+
+        // 查看原密码是否错误
+        if (!password_verify($yuan, $user->pwd)) {
+            json_result(400, "原密码错误");
         }
+
+
+//        if ($user->pwd == $update["pwd"]) {
+//            json_result(400, "原密码不能和新密码一样");
+//        }
+
         User::update($update, $where);
         json_result(200, "设置成功");
     }
@@ -238,9 +254,8 @@ class My extends Base
     {
         $where["pid"] = $this->user_id;
         $count = User::where($where)->count();
-
         $data["push"] = $count;
-        $data["team"] = $this->user["team"];
+        $data["team"] = Team::all_tem($this->user_id);
         json_result(200, "", $data);
 
     }
@@ -257,7 +272,7 @@ class My extends Base
         } else {
             $where["pid"] = $this->user_id;
         }
-        $list = Problem::where($where)->order("id desc")->field("id,image,phone,name,mail,add_time")->paginate(['list_rows' => $limit, 'page' => $page])->each(function ($item) {
+        $list = User::where($where)->order("id desc")->field("id,image,phone,name,mail,add_time")->paginate(['list_rows' => $limit, 'page' => $page])->each(function ($item) {
             // 统计人数
             $where["pid"] = $item["id"];
             $count = User::where($where)->count();
@@ -272,11 +287,11 @@ class My extends Base
 
     // 可售额度
     public function vendibility_list()
-    {
+    {//lm_vendibility_finance
         $page = input("page") ?: 1;
         $limit = input("limit") ?: 10;
         $where["user_id"]=$this->user_id;
-        $list = Problem::where($where)->order("id desc")->paginate(['list_rows' => $limit, 'page' => $page])->each(function ($item) {
+        $list = VendibilityFinance::where($where)->order("id desc")->paginate(['list_rows' => $limit, 'page' => $page])->each(function ($item) {
             if ($item["add_time"]) {
                 $item["add_time"] = date("Y-m-d H:i", $item["add_time"]);
             }
@@ -321,10 +336,20 @@ class My extends Base
         $money=input("money");if (!$money)json_result(400,"请输入提现金额");
         $type=input("type")?:0;//0 充值 1 提现
 
-        // 查看账号余额
-        if ($this->user->ensure_money<$money){
-            json_result(400,"账号保证金不足");
+        // 直接处理转账成功
+        if ($type==0){
+            if ($this->user->money<$money){
+                json_result(400,"当前账号通证余额不足");
+            }
+        }else{
+            // 查看账号余额
+            if ($this->user->ensure_money<$money){
+                json_result(400,"账号保证金不足");
+            }
         }
+        // 直接转账操作
+        Orde::bond_transfer($this->user,$this->user_id,$money,$this->user->ensure_money,$type);
+        // 添加记录
         $add["money"]=$money;
         $add["type"]=$type;
         $add["status"]=0;
@@ -348,6 +373,8 @@ class My extends Base
         $add["status"]=0;
         $add["add_time"]=time();
         GeneralFinance::create($add);
+        // 添加转账操作
+
         json_result(200,"申请成功");
     }
 
@@ -364,6 +391,11 @@ class My extends Base
         if (!$user){
             json_result(200,"账号不存在");
         }
+        // 查找无限级
+        $team=Team::father($this->user_id,$user->id);
+        if (!$team){
+            json_result(400,"非同一个直推链不能转账");
+        }
         $add["user_id"]=$this->user_id;
         $add["puser_id"]=$user->id;
         $add["account"]=$account;
@@ -371,10 +403,44 @@ class My extends Base
         $add["status"]=0;
         $add["add_time"]=time();
         GeneralTransfer::create($add);
-        json_result(200,"申请成功");
+        $jmoney=$this->user["money"]-$money;
+        $name=$this->user["name"];
+        Orde::transfer($this->user_id,$user->id,$money,$jmoney,$name);
+        json_result(200,"转账成功");
+    }
+
+
+    // 转账验证密码
+    public function transfer_pwd()
+    {
+        $pwd=input("pwd");if (!$pwd)json_result(400,"请输入密码");
+
+        if (!password_verify($pwd,$this->user->pwd)){
+            json_result(400,"密码错误");
+        }
+        json_result(200,"密码正确");
 
     }
 
 
+    // 购买通证显示页面
+    public function general_show()
+    {
+        $where["level"]=$this->user["vip_level"];
+        $level=UserLevel::where($where)->find();
+
+        $data["vip_level"]=$this->user["vip_level"];
+        $data["vip_bili"]=$level->bili;
+        $data["tong_money"]=$this->user->money;
+        $system=System::where(["type"=>"shouk"])->field("name,value")->select();
+        foreach ($system as $v){
+            if ($v->name=="usdt"){
+                $data["usdt"]=$v->value?:"";
+            }else{
+                $data["code"]=$v->value?:"";
+            }
+        }
+        json_result(200,"",$data);
+    }
 
 }

+ 33 - 0
php/app/web/model/Msg.php

@@ -0,0 +1,33 @@
+<?php
+/**
+ *
+ * User: anyluck
+ * Date: 2020/6/4
+ * Time: 15:28
+ */
+
+namespace app\web\model;
+
+
+class Msg
+{
+ // 第三方通知
+
+    /** 短信通知
+     * @param $content 内容
+     * @param $phone 手机号码
+     */
+    public static function phone($content,$phone)
+    {
+
+    }
+
+    /** 邮件通知
+     * @param $content 内容
+     * @param $mail 邮件地址
+     */
+    public static function mail($content,$mail)
+    {
+
+    }
+}

+ 168 - 25
php/app/web/model/Orders.php

@@ -9,10 +9,13 @@
 namespace app\web\model;
 
 
+use app\common\controller\Orde;
 use app\common\model\Mining;
 use app\common\model\Order;
 use app\common\model\OrderFrequency;
+use app\common\model\User;
 use app\common\model\UserMessage;
+use app\common\model\VendibilityFinance;
 use Ramsey\Uuid\Uuid;
 
 class Orders
@@ -25,29 +28,36 @@ class Orders
      * @param int $status 0 未匹配 1 已匹配或待支付 2已上传数据 3 已完成 4 已撤销 5 交易失败
      * @param int $page
      * @param int $limit
+     * @param int $num 交易区块
      * @throws \think\db\exception\DbException
      */
-    public static function order_list($type, $user_id = 0, $status = 0, $page = 1, $limit = 10)
+    public static function order_list($type, $user_id = 0, $status = 0, $page = 1, $limit = 10,$num=0)
     {
         $where = [];
         switch ($type) {
-            case 0:// 买入数据
-                $where[] = ["type", "=", 0];
+            case 0 :// 求购数据
+                $where[]=["push_user","=","0"];
                 break;
-            case 1: // 卖出数据
-                $where[] = ["type", "=", 1];
-                break;
-            case 2:// 我的购买数据
+            case 1:// 我的购买数据
                 $where[] = ["buy_user", "=", $user_id];
                 break;
-            case 3:// 我的卖出数据
-                $where[] = ["push", "=", $user_id];
+            case 2:// 我的卖出数据
+                $where[] = ["push_user", "=", $user_id];
                 break;
         }
-        if ($status != "") {
-            $where[] = ["status", "=", $status];
+
+        if ($num){//交易区块 大小
+            $where[]=["num","=",$num];
+        }
+        switch ($status){
+            case 1:// 进行中的
+                $where[]=["status","in",[0,1]];
+                break;
+            case 2:// 已完成
+                $where[]=["status","in",[2,3,4,5]];
+                break;
         }
-        $order = Order::where($where)->order("status asc,id asc")->paginate(['list_rows' => $limit, 'page' => $page])->each(function ($item) {
+        $order = Order::where($where)->order("status asc,id asc")->paginate(['list_rows' => $limit, 'page' => $page])->each(function ($item) use ($type) {
             if ($item["status"] == 0) {// 未支付结算时间计算
                 if (time() > $item["add_time"]) {
                     $item["stat_time"] = time() - $item["add_time"];
@@ -57,6 +67,8 @@ class Orders
             } else {
                 $item["stat_time"] = 0;
             }
+
+            $item["image"]=$item["image"]?:"";
             // 添加时间
             $item["add_times"] = date("Y-m-d H:i", $item["add_time"]);
             if ($item["end_time"]) {
@@ -80,28 +92,38 @@ class Orders
     public static function push_order($user,$user_id,$type=0,$qit_id=0,$ming_id=0)
     {
         // todo 未完成卖出订单时间控制,
-
-
         // 查看用户是否添加收账信息
         $userMeesage=UserMessage::where(["user_id"=>$user_id])->find();
         if (!$userMeesage){
             json_result(400,"请完善收账信息");
         }
-
         if ($type==0){// 直接卖出 更新原有数据
             $where["id"]=$qit_id;
             $order=Order::where($where)->find();
             if (!$order){
                 json_result(400,"买入订单id错误");
             }
+            // 查看订单是否已经被买入
+            if ($order->status!=0){// 这个可以加入redis 控制并发问题
+                json_result(400,"该交易订单已经被卖出,或者取消");
+            }
+
+            // 查看交易是否是自己的
+            if ($order->buy_user==$user_id){
+                json_result(400,"自己买入的订单不能卖出");
+            }
             // 查看矿区
             $mining=Mining::where(["id"=>$order->mining_id])->find();
-            if ($user->ensure_money<$mining->ensure_money){
-                json_result(400,"保证金不足");
+
+            if ($user->money<$mining->tong_money){
+
+                json_result(400,"通证余额不足");
             }
+
             if ($user->push_money<$order->number){
                 json_result(400,"可售额度不足");
             }
+
             // 查看未完成订单
             $where_status[]=["status","in",[0,1,2]];
             $where_status[]=["push_user","=",$user_id];
@@ -113,11 +135,25 @@ class Orders
                 if ($count_order==5){
                     json_result(400,"每个区块只能卖出5次");
                 }
+            }else{
+                if ($count_order==5){
+                    json_result(400,"每个区块只能卖出5次");
+                }
+            }
+
+
+            if ($count_order+1==5){
+                $sxf_money=$order->out_game;
+                if ($user->money<$order->out_game){
+                    json_result(400,"通证余额不足");
+                }
+            }else{
+                $sxf_money=$mining->tong_money;
             }
-            $update["push_user"]=$user_id;
-            $update["status"]=1;
-            $update["stat_time"]=time()+4*3600;
-            Order::where($where)->update($update);
+
+            // 订单处理
+            Orde::push_order($user,$qit_id,$user_id,$order,$count_order,$sxf_money);
+
 
         }else{// 下单买入
             $where_ming["id"]=$ming_id;
@@ -125,6 +161,11 @@ class Orders
             if (!$mining){
                 json_result(400,"交易区块id错误");
             }
+            // 查看矿区
+            $mining=Mining::where(["id"=>$ming_id])->find();
+            if ($user->ensure_money<$mining->ensure_money){
+                json_result(400,"保证金不足");
+            }
             // 查看未完成订单
             $where_status[]=["status","in",[0,1,2]];
             $where_status[]=["buy_user","=",$user_id];
@@ -136,26 +177,128 @@ class Orders
                 if ($count_order==4){
                     json_result(400,"每个区块只能买入4次");
                 }
+            }else{
+                if ($count_order==4){
+                    json_result(400,"每个区块只能买入4次");
+                }
             }
+
+//            // 查看当前账号的通证是否满足
+//            if ($user->money<$mining["num"]){
+//                json_result(400,"当前账号通证不足");
+//            }
+
             $uuid = Uuid::uuid4(time());
             $order =  $uuid->getHex();
             $add["type"]=0;
-            $add["buy_user"]='';
-            $add["push_user"]=$user_id;
+            $add["buy_user"]=$user_id;
+            $add["push_user"]="";
             $add["number"]=$mining["num"];
             $add["enlarge_quota"]=$mining["enlarge_quota"];
             $add["order"]=$order;
             $add["mining_id"]=$ming_id;
             $add["status"]=0;
             $add["add_time"]=time();
-            $add["breach_money"]=$mining["breach_money"];
             $add["out_game"]=$mining["out_game"];
+            $add["tong_money"]=$mining["tong_money"];
+            $add["ensure_money"]=$mining["ensure_money"];
             Order::create($add);
-
+//            // 账号操作 去除保证金
+//            $ensure_money=$user->ensure_money-$mining->ensure_money;
+//            Orde::buy_order($user_id,$ensure_money,$mining->ensure_money);
         }
         json_result(200,"操作成功");
     }
 
+    // 订单详情
+    public static function order_show($order,$user_id)
+    {
+        $data=[];
+        if ($order->buy_user==$user_id){// 买入人是自己
+            $data["type"]=0;// 查看卖出人信息
+            $where_user["id"]=$order->buy_user;
+        }else{// 卖出人
+            $data["type"]=1;// 查看买入人信息
+            $where_user["id"]=$order->push_user;
+        }
+        $user=User::where($where_user)->find();
+        $user_message=UserMessage::where(["user_id"=>$where_user["id"]])->find();
+        $data["number"]=$order->number;// bts数量
+        $data["id"]=$order->id;// 订单id
+        $data["msg"]=$order->msg?:"";// 失败原因
+        $data["status"]=$order->status?:"";// 失败原因
+        $data["order"]=$order->order;// 订单编号
+            $data["add_time"]=date("Y-m-d H:i:s",$order->add_time);// 下单时间
+            $data["adds_time"]=$order->add_time;// 下单时间戳
+            $data["stat_time"]=$order->stat_time;// 下单结束时间戳
+            if ($order->stat_time>$order->add_time){
+                $data["time"]=$order->stat_time-$order->add_time;// 下单剩余多少秒
+            }else{
+                $data["time"]="";
+            }
+            if ($order->end_time){
+                $data["end_time"]=date("Y-m-d H:i",$order->end_time);// 订单结束时间
+            }else{
+                $data["end_time"]="";
+            }
 
+            $data["image"]=$order->image?:"";// 支付凭据 图片 ,拼接
+        if ( $data["type"]==0){//卖出人信息
+            $data["user_name"]=$user->name;// 账号
+            $data["user_phone"]=$user_message->phone;// 手机号
+            $data["name"]=$user_message->name;//银行卡持卡人
+            $data["bank_name"]=$user_message->bank_name;//银行卡名称
+            $data["bank_number"]=$user_message->bank_number;//银行卡号
+            $data["bank_branch"]=$user_message->bank_branch;//开户支行
+            $data["ali_pay"]=$user_message->ali_pay;//支付宝账号
+            $data["wx_pay"]=$user_message->wx_pay;//微信账号
+            $data["ali_pay_image"]=$user_message->ali_pay_image;//支付宝收款码
+            $data["wx_pay_image"]=$user_message->wx_pay_image;//微信收款码
+        }else{// 买入人信息
+            $data["user_name"]=$user->name;// 账号
+            $data["user_phone"]=$user_message->phone;// 手机号
+            $data["name"]="";//银行卡持卡人
+            $data["bank_name"]="";//银行卡名称
+            $data["bank_number"]="";//银行卡号
+            $data["bank_branch"]="";//开户支行
+            $data["ali_pay"]="";//支付宝账号
+            $data["wx_pay"]="";//微信账号
+            $data["ali_pay_image"]="";//支付宝收款码
+            $data["wx_pay_image"]="";//微信收款码
+        }
+    json_result(200,"",$data);
+
+    }
+
+
+    /**处理订单失败
+     * @param $user_id 用户id
+     * @param $msg 失败原因
+     */
+    public static function order_fail($msg,$order_id)
+    {
+        $order=Order::where(["id"=>$order_id])->find();
+        if (!$order){
+            json_result(400,"订单不存在");
+        }
+        if ($order->status!=2){
+            json_result(400,"还没有上传证明");
+        }
+        Orde::order_fail($msg,$order);
+        json_result(200,"处理成功");
+    }
+
+    /** 减去账号余额 或添加 并加加记录
+     * @param $user_id 用户
+     * @param $jian 0 加 1减
+     * @param $zi 哪个字段
+     * @param $money 金额
+     * @param $content 说明
+     */
+    public static function user_find($user_id,$jian,$zi,$money,$content)
+    {
+
+
+    }
 
 }

+ 89 - 0
php/app/web/model/Team.php

@@ -0,0 +1,89 @@
+<?php
+/**
+ *
+ * User: anyluck
+ * Date: 2020/6/4
+ * Time: 10:43
+ */
+
+namespace app\web\model;
+
+
+use app\common\model\User;
+
+class Team
+{
+    // 团队
+
+    // 给团队加人数
+    public static function all_tem($user_id)
+    {
+        $user = User::cache(true, 60)->field("id,pid")->select()->toArray();
+        $GetTeamMember = self::get_downline($user, $user_id);
+        $count = 0;
+        if ($GetTeamMember) {
+            foreach ($GetTeamMember as $k => $v) {
+                $count += 1;
+            }
+        }
+        return $count;
+    }
+
+    public static function father($pid, $id)
+    {
+        $get_fu= self::get_fu($id);
+        if ($get_fu){
+           $get_id=array_column($get_fu,"id");
+           $in_array=in_array($pid,$get_id);
+           if ($in_array){
+               return true;
+           }else{// 没有不存在查看一下下级
+               $user=User::field("id,pid")->cache(true,600)->select();
+               $get_xia=self::get_downline($user->toArray(),$id);
+               $get_xia_id=array_column($get_xia,"id");
+               $in_arrays=in_array($pid,$get_xia_id);
+               if ($in_arrays){
+                   return true;
+               }else{
+                   return false;
+               }
+           }
+        }
+    }
+
+
+    // 查找无限上级
+    public static function get_fu($id)
+    {
+        static $data=[];
+        if ($id){
+            $where["id"]=$id;
+            $user=User::where($where)->field("id,pid")->cache(true,600)->find();
+            if ($user){
+                $data[]=$user->toArray();
+                if ($user->pid){
+                    self::get_fu($user->pid);
+                }
+            }
+        }
+        return $data;
+    }
+
+
+
+    //获取用户的所有下级ID
+    public static function get_downline($data, $mid, $level = 0)
+    {
+        $arr = array();
+        foreach ($data as $key => $v) {
+            if ($v['pid'] == $mid) {  //pid为0的是顶级分类
+                $v['level'] = $level + 1;
+                $arr[] = $v;
+                $arr = array_merge($arr, self::get_downline($data, $v['id'], $level + 1));
+            }
+        }
+        return $arr;
+    }
+
+
+}

+ 7 - 2
php/app/web/model/Tripartite.php

@@ -20,10 +20,15 @@ class Tripartite
     {
         $where["phone"]=$phone;
         $phone_code=PhoneCode::where($where)->order("id desc")->find();
-        if ($phone_code->add_time+10*60<time()){
+        if ($phone_code){
+            if ($phone_code->add_time+10*60<time()){
+                json_result(400,"验证码已失效,请重新获取");
+            }
+            return $phone_code->code;
+        }else{
             json_result(400,"验证码已失效,请重新获取");
         }
-        return $phone_code->code;
+
     }
 
     // 发送验证码

+ 25 - 5
php/app/worker/controller/User.php

@@ -10,6 +10,8 @@ namespace app\worker\controller;
 
 
 
+use app\common\controller\Orde;
+use app\common\model\Order;
 use think\facade\Db;
 use Workerman\Lib\Timer;
 
@@ -18,15 +20,33 @@ class User
     // 实验室预约 未上课处理  解除爽约时间限制
     public function index()
     {
-        Timer::add(2, function () {
-//            var_dump(1212);
-            $this->laboratory_appointment(); // 实验室预约 未上课处理
-            $this->laboratory_appointment_status();// 解除爽约时间限制
-            var_dump("index");
+        Timer::add(5, function () {
+            $this->order_cal();
+
         }, true);
 
     }
 
 
+    // 处理过期的订单
+    public function order_cal()
+    {
+        $where[]=["stat_time","<",time()];
+        $where[]=["status","=",1];
+        $order=Order::where($where)->limit(5)->order("id asc")->select();
+        if ($order){
+//            $order=$order->toArray();
+        foreach ($order as $v){
+            Orde::order_fail("系统处理交易失败",$v);
+
+        }
+//            dump(111);
+//            dump($order->toArray());
+        }else{
+//            dump(111);
+        }
+
+    }
+
 
 }

+ 2 - 5
php/app/worker/controller/Worker.php

@@ -18,15 +18,12 @@ class Worker extends Server
 {
 //    protected $socket = 'websocket://0.0.0.0:2347';
 
-
+        // todo 运行方法  php think worker:server
     public function onWorkerStart()
     {
         // 定时器
         $user=new User();
-        $user->index();
-//        $user->student_status();
-//        $user->getteacher();
-//        dump(1212);
+        $user->index();// 处理失效订单
 
     }
     // 连接的时候

+ 2 - 2
php/config/worker.php

@@ -15,14 +15,14 @@
 return [
     // 扩展自身需要的配置
     'host'                  => '0.0.0.0', // 监听地址
-    'port'                  => 2346, // 监听端口
+    'port'                  => 2349, // 监听端口
     'root'                  => '', // WEB 根目录 默认会定位public目录
     'app_path'              =>"", // 应用目录 守护进程模式必须设置(绝对路径)
 //    'app_path'              =>__DIR__."/../".env("worker","app".DIRECTORY_SEPARATOR."worker".DIRECTORY_SEPARATOR."worker"), // 应用目录 守护进程模式必须设置(绝对路径)
     'file_monitor'          => false, // 是否开启PHP文件更改监控(调试模式下自动开启)
     'file_monitor_interval' => 2, // 文件监控检测时间间隔(秒)
     'file_monitor_path'     => [
-
+        \app\worker\controller\Worker::class
     ], // 文件监控目录 默认监控application和config目录
 
     // 支持workerman的所有配置参数

binární
php/public/storage/uploads/20200604/0b0c8564134f4a92f63dad9192b3b112.png


binární
php/public/storage/uploads/20200604/85434915092c98dfa7f74f58935106e7.png


binární
php/public/storage/uploads/20200604/cd0c3c0ebc3556350a599c30ed75728d.png


binární
php/public/storage/uploads/20200605/1a1f59791758db0a4190bc1397c99a73.png


binární
php/public/storage/uploads/20200605/b52d2c1668b5981acab2241a718e310a.png


binární
php/public/storage/uploads/20200605/b5d9bcc4e2946ca11a148e987373a11c.png


binární
php/public/storage/uploads/20200605/e177173569c8f6a9ce7b3190404acc19.png


binární
php/public/storage/uploads/20200605/f2726178525e3ee998b0be048110d8e6.png


+ 0 - 21
php/runtime/admin/log/202006/01.log

@@ -1,21 +0,0 @@
-[2020-06-01T14:43:14+08:00][sql] CONNECT:[ UseTime:0.082290s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T14:43:14+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.055869s ]
-[2020-06-01T14:43:14+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.055143s ]
-[2020-06-01T14:46:08+08:00][sql] CONNECT:[ UseTime:0.084427s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T14:46:08+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.055499s ]
-[2020-06-01T14:46:08+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.055163s ]
-[2020-06-01T14:47:07+08:00][sql] CONNECT:[ UseTime:0.088009s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T14:47:07+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.056916s ]
-[2020-06-01T14:47:07+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.056872s ]
-[2020-06-01T14:47:37+08:00][sql] CONNECT:[ UseTime:2.884051s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T14:47:37+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.815186s ]
-[2020-06-01T14:47:37+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.560427s ]
-[2020-06-01T14:48:12+08:00][sql] CONNECT:[ UseTime:0.083075s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T14:48:12+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.053014s ]
-[2020-06-01T14:48:12+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.053805s ]
-[2020-06-01T15:18:55+08:00][sql] CONNECT:[ UseTime:0.202858s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:18:55+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.055640s ]
-[2020-06-01T15:18:55+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.053790s ]
-[2020-06-01T15:18:55+08:00][sql] SELECT * FROM `lm_auth_rule` WHERE  `href` = 'Adminlog/index' LIMIT 1 [ RunTime:0.054191s ]
-[2020-06-01T15:18:55+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin_log` [ RunTime:0.055516s ]
-[2020-06-01T15:18:55+08:00][sql] INSERT INTO `lm_admin_log` SET `log_title` = '日志管理' , `log_content` = '点击菜单' , `log_url` = '/admin/adminlog/index.html' , `admin_id` = 1 , `username` = 'admin' , `log_agent` = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36' , `log_ip` = '127.0.0.1' , `create_time` = 1590995934 , `update_time` = 1590995934 [ RunTime:0.054304s ]

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 245
php/runtime/admin/log/202006/02.log


+ 65 - 0
php/runtime/admin/log/202006/05.log

@@ -0,0 +1,65 @@
+[2020-06-05T17:39:47+08:00][sql] CONNECT:[ UseTime:0.184740s ] mysql:host=120.78.128.100;port=3306;dbname=test;charset=utf8
+[2020-06-05T17:39:47+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.125146s ]
+[2020-06-05T17:39:47+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.138997s ]
+[2020-06-05T17:39:49+08:00][sql] CONNECT:[ UseTime:0.190636s ] mysql:host=120.78.128.100;port=3306;dbname=test;charset=utf8
+[2020-06-05T17:39:49+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.128260s ]
+[2020-06-05T17:39:49+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.127169s ]
+[2020-06-05T17:39:49+08:00][sql] SELECT * FROM `lm_auth_rule` WHERE  `href` = 'Finance/shenhe' LIMIT 1 [ RunTime:0.126621s ]
+[2020-06-05T17:39:49+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin_log` [ RunTime:0.127109s ]
+[2020-06-05T17:39:49+08:00][sql] INSERT INTO `lm_admin_log` SET `log_title` = '充值审核和记录' , `log_content` = '点击菜单' , `log_url` = '/admin/finance/shenhe.html' , `admin_id` = 1 , `username` = 'admin' , `log_agent` = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36' , `log_ip` = '127.0.0.1' , `create_time` = 1591349988 , `update_time` = 1591349988 [ RunTime:0.127164s ]
+[2020-06-05T17:39:50+08:00][sql] CONNECT:[ UseTime:0.188089s ] mysql:host=120.78.128.100;port=3306;dbname=test;charset=utf8
+[2020-06-05T17:39:50+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.126655s ]
+[2020-06-05T17:39:50+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.126484s ]
+[2020-06-05T17:39:50+08:00][sql] SHOW FULL COLUMNS FROM `lm_general_finance` [ RunTime:0.125643s ]
+[2020-06-05T17:39:50+08:00][sql] SELECT COUNT(*) AS think_count FROM `lm_general_finance` [ RunTime:0.124657s ]
+[2020-06-05T17:39:50+08:00][sql] SELECT * FROM `lm_general_finance` ORDER BY `status` ASC,`id` DESC LIMIT 0,15 [ RunTime:0.124517s ]
+[2020-06-05T17:39:50+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.126290s ]
+[2020-06-05T17:39:50+08:00][sql] SELECT `name` FROM `lm_user` WHERE  `id` = 2 LIMIT 1 [ RunTime:0.124696s ]
+[2020-06-05T17:51:26+08:00][sql] CONNECT:[ UseTime:0.193574s ] mysql:host=120.78.128.100;port=3306;dbname=test;charset=utf8
+[2020-06-05T17:51:26+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.128217s ]
+[2020-06-05T17:51:26+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.157608s ]
+[2020-06-05T17:51:26+08:00][sql] SELECT * FROM `lm_auth_rule` WHERE  `href` = 'Finance/daili' LIMIT 1 [ RunTime:0.128088s ]
+[2020-06-05T17:51:26+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin_log` [ RunTime:0.147446s ]
+[2020-06-05T17:51:26+08:00][sql] INSERT INTO `lm_admin_log` SET `log_title` = '代理收入' , `log_content` = '点击菜单' , `log_url` = '/admin/finance/daili.html' , `admin_id` = 1 , `username` = 'admin' , `log_agent` = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36' , `log_ip` = '127.0.0.1' , `create_time` = 1591350686 , `update_time` = 1591350686 [ RunTime:0.209971s ]
+[2020-06-05T17:51:27+08:00][sql] CONNECT:[ UseTime:0.185770s ] mysql:host=120.78.128.100;port=3306;dbname=test;charset=utf8
+[2020-06-05T17:51:27+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.126246s ]
+[2020-06-05T17:51:27+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.119795s ]
+[2020-06-05T17:51:27+08:00][sql] SELECT * FROM `lm_auth_rule` WHERE  `href` = 'Finance/daili' LIMIT 1 [ RunTime:0.120692s ]
+[2020-06-05T17:51:27+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin_log` [ RunTime:0.119752s ]
+[2020-06-05T17:51:27+08:00][sql] INSERT INTO `lm_admin_log` SET `log_title` = '代理收入' , `log_content` = '点击菜单' , `log_url` = '/admin/finance/daili.html' , `admin_id` = 1 , `username` = 'admin' , `log_agent` = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36' , `log_ip` = '127.0.0.1' , `create_time` = 1591350687 , `update_time` = 1591350687 [ RunTime:0.120599s ]
+[2020-06-05T17:51:28+08:00][sql] CONNECT:[ UseTime:0.182777s ] mysql:host=120.78.128.100;port=3306;dbname=test;charset=utf8
+[2020-06-05T17:51:28+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.125480s ]
+[2020-06-05T17:51:28+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.124135s ]
+[2020-06-05T17:51:28+08:00][sql] SHOW FULL COLUMNS FROM `lm_finance` [ RunTime:0.124162s ]
+[2020-06-05T17:51:28+08:00][sql] SELECT COUNT(*) AS think_count FROM `lm_finance` WHERE  `daili` = 1 [ RunTime:0.126038s ]
+[2020-06-05T17:51:28+08:00][sql] SELECT * FROM `lm_finance` WHERE  `daili` = 1 ORDER BY `id` DESC LIMIT 0,15 [ RunTime:0.127750s ]
+[2020-06-05T17:54:02+08:00][sql] CONNECT:[ UseTime:0.184171s ] mysql:host=120.78.128.100;port=3306;dbname=test;charset=utf8
+[2020-06-05T17:54:02+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.127208s ]
+[2020-06-05T17:54:02+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.125158s ]
+[2020-06-05T17:54:02+08:00][sql] SELECT * FROM `lm_auth_rule` WHERE  `href` = 'Finance/zhengshon' LIMIT 1 [ RunTime:0.123540s ]
+[2020-06-05T17:54:02+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin_log` [ RunTime:0.124001s ]
+[2020-06-05T17:54:02+08:00][sql] INSERT INTO `lm_admin_log` SET `log_title` = '赠送记录' , `log_content` = '点击菜单' , `log_url` = '/admin/finance/zhengshon.html' , `admin_id` = 1 , `username` = 'admin' , `log_agent` = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36' , `log_ip` = '127.0.0.1' , `create_time` = 1591350842 , `update_time` = 1591350842 [ RunTime:0.126929s ]
+[2020-06-05T17:54:03+08:00][sql] CONNECT:[ UseTime:0.183617s ] mysql:host=120.78.128.100;port=3306;dbname=test;charset=utf8
+[2020-06-05T17:54:03+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.124379s ]
+[2020-06-05T17:54:03+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.124192s ]
+[2020-06-05T17:54:03+08:00][sql] SELECT * FROM `lm_auth_rule` WHERE  `href` = 'Finance/zhengshon' LIMIT 1 [ RunTime:0.123427s ]
+[2020-06-05T17:54:03+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin_log` [ RunTime:0.123033s ]
+[2020-06-05T17:54:03+08:00][sql] INSERT INTO `lm_admin_log` SET `log_title` = '赠送记录' , `log_content` = '点击菜单' , `log_url` = '/admin/finance/zhengshon.html' , `admin_id` = 1 , `username` = 'admin' , `log_agent` = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36' , `log_ip` = '127.0.0.1' , `create_time` = 1591350843 , `update_time` = 1591350843 [ RunTime:0.141727s ]
+[2020-06-05T17:54:05+08:00][sql] CONNECT:[ UseTime:0.250231s ] mysql:host=120.78.128.100;port=3306;dbname=test;charset=utf8
+[2020-06-05T17:54:05+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.128063s ]
+[2020-06-05T17:54:05+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.127519s ]
+[2020-06-05T17:54:05+08:00][sql] SHOW FULL COLUMNS FROM `lm_finance` [ RunTime:0.127478s ]
+[2020-06-05T17:54:05+08:00][sql] SELECT COUNT(*) AS think_count FROM `lm_finance` WHERE  `daili` = 2 [ RunTime:0.124725s ]
+[2020-06-05T17:54:05+08:00][sql] SELECT * FROM `lm_finance` WHERE  `daili` = 2 ORDER BY `id` DESC LIMIT 0,15 [ RunTime:0.127512s ]
+[2020-06-05T17:54:13+08:00][sql] CONNECT:[ UseTime:0.187337s ] mysql:host=120.78.128.100;port=3306;dbname=test;charset=utf8
+[2020-06-05T17:54:13+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.126230s ]
+[2020-06-05T17:54:13+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.128670s ]
+[2020-06-05T17:54:13+08:00][sql] SELECT * FROM `lm_auth_rule` WHERE  `href` = 'Order/buy' LIMIT 1 [ RunTime:0.128265s ]
+[2020-06-05T17:54:13+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin_log` [ RunTime:0.125882s ]
+[2020-06-05T17:54:13+08:00][sql] INSERT INTO `lm_admin_log` SET `log_title` = '求购订单列表' , `log_content` = '点击菜单' , `log_url` = '/admin/order/buy.html' , `admin_id` = 1 , `username` = 'admin' , `log_agent` = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36' , `log_ip` = '127.0.0.1' , `create_time` = 1591350853 , `update_time` = 1591350853 [ RunTime:0.124052s ]
+[2020-06-05T17:54:14+08:00][sql] CONNECT:[ UseTime:0.182551s ] mysql:host=120.78.128.100;port=3306;dbname=test;charset=utf8
+[2020-06-05T17:54:14+08:00][sql] SHOW FULL COLUMNS FROM `lm_auth_rule` [ RunTime:0.123258s ]
+[2020-06-05T17:54:14+08:00][sql] SELECT `href`,`href` FROM `lm_auth_rule` [ RunTime:0.122121s ]
+[2020-06-05T17:54:14+08:00][sql] SELECT * FROM `lm_auth_rule` WHERE  `href` = 'Order/buy' LIMIT 1 [ RunTime:0.121962s ]
+[2020-06-05T17:54:14+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin_log` [ RunTime:0.123023s ]
+[2020-06-05T17:54:14+08:00][sql] INSERT INTO `lm_admin_log` SET `log_title` = '求购订单列表' , `log_content` = '点击菜单' , `log_url` = '/admin/order/buy.html' , `admin_id` = 1 , `username` = 'admin' , `log_agent` = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36' , `log_ip` = '127.0.0.1' , `create_time` = 1591350854 , `update_time` = 1591350854 [ RunTime:0.123424s ]

+ 0 - 139
php/runtime/admin/temp/01e433db5e5517b7a2c4587da42797aa.php

@@ -1,139 +0,0 @@
-<?php /*a:3:{s:63:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\auth\admin_list.html";i:1590638532;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\header.html";i:1582014448;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\footer.html";i:1581911356;}*/ ?>
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8">
-    <title><?php echo config('admin.sys_name'); ?>后台管理</title>
-    <meta name="renderer" content="webkit">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-    <meta name="apple-mobile-web-app-status-bar-style" content="black">
-    <meta name="apple-mobile-web-app-capable" content="yes">
-    <meta name="format-detection" content="telephone=no">
-    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap.css" media="all" />-->
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap-theme.css" media="all" />-->
-    <link rel="stylesheet" href="/static/admin/css/main.css?v=<?php echo time(); ?>" media="all">
-    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-select/less/bootstrap-select.less">-->
-    <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">-->
-    <!--[if lt IE 9]>
-    <!--<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>-->
-    <!--<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>-->
-    <!--<![endif]&ndash;&gt;-->
-    <style id="LM-bg-color">
-    </style>
-</head>
-<div class="LM-container">
-    <div class="LM-main">
-        <fieldset class="layui-elem-field layui-field-title">
-            <legend><?php echo lang('admin'); ?><?php echo lang('list'); ?></legend>
-
-            <blockquote class="layui-elem-quote">
-                <div class="LM-table">
-                    <div class="layui-inline">
-                        <input type="text" name="keys" id="keys" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
-
-                    </div>
-                    <button class="layui-btn data-add-btn layui-btn-sm" lay-submit="" lay-filter="add" id="search">搜索</button>
-                    <a href="<?php echo url('adminAdd'); ?>" class="layui-btn layui-btn-sm layui-btn-warm"><?php echo lang('add'); ?><?php echo lang('admin'); ?></a>
-
-                </div>
-
-            </blockquote>
-
-        </fieldset>
-
-        <table class="layui-table" id="list" lay-filter="list"></table>
-    </div>
-</div>
-<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
-<!--<script src="/static/plugins/bootstrap-3.3.7/js/bootstrap.js" charset="utf-8"></script>-->
-<script type="text/html" id="action">
-    <a href="<?php echo url('adminEdit'); ?>?id={{d.id}}" class="layui-btn layui-btn-xs"><?php echo lang('edit'); ?></a>
-    {{# if(d.id==1){ }}
-    <a href="#" class="layui-btn layui-btn-xs layui-btn-disabled"><?php echo lang('del'); ?></a>
-    {{# }else{  }}
-    <a href="#" class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><?php echo lang('del'); ?></a>
-    {{# } }}
-</script>
-<script type="text/html" id="status">
-    {{# if(d.id==1){ }}
-    <input type="checkbox" disabled name="status" value="{{d.id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="status" checked>
-    {{# }else{  }}
-    <input type="checkbox" name="status" value="{{d.id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="status" {{ d.status == 1 ? 'checked' : '' }}>
-    {{# } }}
-</script>
-
-<script>
-    layui.use(['table','form','layer'], function() {
-        var table = layui.table,form = layui.form,$ = layui.jquery;
-        var tableIn = table.render({
-            elem: '#list',
-            url: '<?php echo url("adminList"); ?>',
-            method:'post',
-            title:'<?php echo lang("admin"); ?><?php echo lang("list"); ?>',
-            cols: [[
-                {field:'id', title: 'ID', width:100,fixed: true}
-                ,{field:'username', title: '用户名', width:180}
-                ,{field:'title', title: '<?php echo lang("adminGroup"); ?>', width:100}
-                // ,{field:'email', title: '<?php echo lang("email"); ?>', width:200}
-                ,{field:'mobile', title: '<?php echo lang("mobile"); ?>', width:150}
-                ,{field:'ip', title: '<?php echo lang("ip"); ?>',width:150,hide:true}
-                ,{field:'status', title: '<?php echo lang("status"); ?>',width:150,toolbar: '#status'}
-                ,{title:'操作',width:150, toolbar: '#action',align:"center"}
-            ]],
-            limits: [10, 15, 20, 25, 50, 100],
-            limit: 10,
-            page: true
-        });
-        form.on('switch(status)', function(obj){
-            loading =layer.load(1, {shade: [0.1,'#fff']});
-            var id = this.value;
-            var is_open = obj.elem.checked===true?1:0;
-            $.post('<?php echo url("adminState"); ?>',{'id':id,'is_open':is_open},function (res) {
-                layer.close(loading);
-                if (res.code>0) {
-                    tableIn.reload();
-                }else{
-                    layer.msg(res.msg,{time:1000,icon:2});
-                    return false;
-                }
-            })
-        });
-        table.on('tool(list)', function(obj){
-            var data = obj.data;
-            if(obj.event === 'del'){
-                layer.confirm('<?php echo lang("Are you sure you want to delete it"); ?>', function(index){
-                    $.post("<?php echo url('adminDel'); ?>",{id:data.id},function(res){
-                        if (res.code>0) {
-                            layer.msg(res.msg,{time:1000,icon:1});
-                            obj.del();
-                        }else{
-                            layer.msg(res.msg,{time:1000,icon:2});
-                        }
-                    });
-                    layer.close(index);
-                });
-            }
-        });
-        $('#LM-add').click(function () {
-            var index = layer.open({
-                type: 2,
-                content: '<?php echo url("adminAdd"); ?>',
-                area: ['800px', '600px'],
-                maxmin: true
-            });
-            layer.full(index);
-        })
-        $('#search').click(function () {
-            var $keys = $('#keys').val();
-            if(!$keys){
-                return layer.msg('请输入关键词');
-            }
-
-            tableIn.reload({ page: {page: 1},where: {keys: $keys}});
-
-        })
-    });
-</script>

+ 0 - 185
php/runtime/admin/temp/14d50cc59972e0ab82b71f4b5f381353.php

@@ -1,185 +0,0 @@
-<?php /*a:1:{s:58:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\index\main.html";i:1590993415;}*/ ?>
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8">
-    <title>主页面</title>
-    <meta name="renderer" content="webkit">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
-    <link rel="stylesheet" href="/static/admin/css/main.css" media="all">
-    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all">
-    <!--<style>-->
-        <!--.layui-card {border:1px solid #f2f2f2;border-radius:5px;}-->
-        <!--.icon {margin-right:10px;color:#1aa094;}-->
-        <!--.icon-cray {color:#ffb800!important;}-->
-        <!--.icon-blue {color:#1e9fff!important;}-->
-        <!--.icon-tip {color:#ff5722!important;}-->
-        <!--.LM-qiuck-module {text-align:center;margin-top: 10px}-->
-        <!--.LM-qiuck-module a i {display:inline-block;width:100%;height:60px;line-height:60px;text-align:center;border-radius:2px;font-size:30px;background-color:#F8F8F8;color:#333;transition:all .3s;-webkit-transition:all .3s;}-->
-        <!--.LM-qiuck-module a cite {position:relative;top:2px;display:block;color:#666;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:14px;}-->
-        <!--.welcome-module {width:100%;height:210px;}-->
-        <!--.panel {background-color:#fff;border:1px solid transparent;border-radius:3px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}-->
-        <!--.panel-body {padding:10px}-->
-        <!--.panel-title {margin-top:0;margin-bottom:0;font-size:12px;color:inherit}-->
-        <!--.label {display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;margin-top: .3em;}-->
-        <!--.layui-red {color:red}-->
-        <!--.main_btn > p {height:40px;}-->
-        <!--.layui-bg-number {background-color:#F8F8F8;}-->
-        <!--.LM-notice:hover {background:#f6f6f6;}-->
-        <!--.LM-notice {padding:7px 16px;clear:both;font-size:12px !important;cursor:pointer;position:relative;transition:background 0.2s ease-in-out;}-->
-        <!--.LM-notice-title,.LM-notice-label {-->
-            <!--padding-right: 70px !important;text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;}-->
-        <!--.LM-notice-title {line-height:28px;font-size:14px;}-->
-        <!--.LM-notice-extra {position:absolute;top:50%;margin-top:-8px;right:16px;display:inline-block;height:16px;color:#999;}-->
-    <!--</style>-->
-
-    <style>
-        .center {
-            text-align: center;
-            background-color: #F9F9F9 !important;
-        }
-
-        .boder {
-            border: 1px solid #D2D2D2 !important;
-        }
-
-        .p-size {
-            font-weight: 700;
-            font-size: 20px;
-        }
-        .border-left{
-            border-left-width: 5px;
-            border-left-style: solid;
-        }
-    </style>
-</head>
-<body>
-<div class="LM-container">
-    <div class="LM-main">
-        <div class="layui-row layui-col-space15">
-
-首页
-
-        </div>
-    </div>
-</div>
-<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
-<script src="/static/plugins/echarts/echarts.min.js" charset="utf-8"></script>
-<script src="/static/plugins/echarts/echarts-theme.js" charset="utf-8"></script>
-<script>
-    // layui.config({
-    //     base: "/static/admin/js/"
-    // }).extend({
-    //     "LM": "LM"
-    // });
-    // layui.use(['layer', 'LM'], function () {
-    //     var $ = layui.jquery,
-    //         layer = layui.layer;
-    //
-    //     /**
-    //      * 查看公告信息
-    //      **/
-    //     $('body').on('click', '.LM-notice', function () {
-    //         var title = $(this).children('.LM-notice-title').text(),
-    //             noticeTime = $(this).children('.LM-notice-extra').text(),
-    //             content = $(this).children('.LM-notice-content').html();
-    //         var html = '<div style="padding:15px 20px; text-align:justify; line-height: 22px;border-bottom:1px solid #e2e2e2;background-color: #2f4056;color: #ffffff">\n' +
-    //             '<div style="text-align: center;margin-bottom: 20px;font-weight: bold;border-bottom:1px solid #718fb5;padding-bottom: 5px"><h4 class="text-danger">' + title + '</h4></div>\n' +
-    //             '<div style="font-size: 12px">' + content + '</div>\n' +
-    //             '</div>\n';
-    //         parent.layer.open({
-    //             type: 1,
-    //             title: '系统公告'+'<span style="float: right;right: 1px;font-size: 12px;color: #b1b3b9;margin-top: 1px">'+noticeTime+'</span>',
-    //             area: '300px;',
-    //             shade: 0.8,
-    //             id: 'LM-notice',
-    //             btn: ['查看', '取消'],
-    //             btnAlign: 'c',
-    //             moveType: 1,
-    //             content:html,
-    //             success: function (layero) {
-    //                 var btn = layero.find('.layui-layer-btn');
-    //                 btn.find('.layui-layer-btn0').attr({
-    //                     href: 'https://github.com/yue909/LEMOCMS',
-    //                     target: '_blank'
-    //                 });
-    //             }
-    //         });
-    //     });
-    //
-    //     /**
-    //      * 报表功能
-    //      */
-    //     var echartsRecords = echarts.init(document.getElementById('echarts-records'), 'walden');
-    //     var optionRecords = {
-    //         tooltip: {
-    //             trigger: 'axis'
-    //         },
-    //         legend: {
-    //             data:['邮件营销','联盟广告','视频广告','直接访问','搜索引擎']
-    //         },
-    //         grid: {
-    //             left: '3%',
-    //             right: '4%',
-    //             bottom: '3%',
-    //             containLabel: true
-    //         },
-    //         toolbox: {
-    //             feature: {
-    //                 saveAsImage: {}
-    //             }
-    //         },
-    //         xAxis: {
-    //             type: 'category',
-    //             boundaryGap: false,
-    //             data: ['周一','周二','周三','周四','周五','周六','周日']
-    //         },
-    //         yAxis: {
-    //             type: 'value'
-    //         },
-    //         series: [
-    //             {
-    //                 name:'邮件营销',
-    //                 type:'line',
-    //                 stack: '总量',
-    //                 data:[120, 132, 101, 134, 90, 230, 210]
-    //             },
-    //             {
-    //                 name:'联盟广告',
-    //                 type:'line',
-    //                 stack: '总量',
-    //                 data:[220, 182, 191, 234, 290, 330, 310]
-    //             },
-    //             {
-    //                 name:'视频广告',
-    //                 type:'line',
-    //                 stack: '总量',
-    //                 data:[150, 232, 201, 154, 190, 330, 410]
-    //             },
-    //             {
-    //                 name:'直接访问',
-    //                 type:'line',
-    //                 stack: '总量',
-    //                 data:[320, 332, 301, 334, 390, 330, 320]
-    //             },
-    //             {
-    //                 name:'搜索引擎',
-    //                 type:'line',
-    //                 stack: '总量',
-    //                 data:[820, 932, 901, 934, 1290, 1330, 1320]
-    //             }
-    //         ]
-    //     };
-    //     echartsRecords.setOption(optionRecords);
-    //
-    //     // echarts 窗口缩放自适应
-    //     window.onresize = function(){
-    //         echartsRecords.resize();
-    //     }
-    //
-    // });
-</script>
-</body>
-</html>

+ 0 - 147
php/runtime/admin/temp/193b3c530962981d3a4dc850749aaa8b.php

@@ -1,147 +0,0 @@
-<?php /*a:1:{s:59:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\login\index.html";i:1583924071;}*/ ?>
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="UTF-8">
-    <title><?php echo site_name(); ?>后台管理-登陆</title>
-    <meta name="keywords" content="lemocms 基于thinkphp6,thinkphp,layui,easywechat框架,框架,组件">
-    <meta name="description" content="lemocms 是一款采用 layui开发的极简后台管理框架 基于thinkphp6 ,easywechat,开发的cms后台管理系统,thinkphp,yii2,cms,php后台管理系统,cms,cms系统,restful api,thinkphp后台管理系统">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta http-equiv="Access-Control-Allow-Origin" content="*">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-    <meta name="apple-mobile-web-app-status-bar-style" content="black">
-    <meta name="apple-mobile-web-app-capable" content="yes">
-    <meta name="format-detection" content="telephone=no">
-    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all">
-    <!--[if lt IE 9]>
-    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
-    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
-    <![endif]-->
-    <style>
-        html, body {width: 100%;height: 100%;overflow: hidden}
-        body {background: #000;}
-        body:after {content:'';background-repeat:no-repeat;background-size:cover;-webkit-filter:blur(3px);-moz-filter:blur(3px);-o-filter:blur(3px);-ms-filter:blur(3px);filter:blur(3px);position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;}
-        .layui-container {width: 100%;height: 100%;overflow: hidden;}
-        .admin-login-background {width:360px;height:300px;position:absolute;left:50%;top:40%;margin-left:-180px;margin-top:-100px;}
-        .logo-title {text-align:center;letter-spacing:2px;padding:14px 0;}
-        .logo-title h1 {color:#009688;font-size:25px;font-weight:bold;}
-        .login-form {background-color:#fff;border:1px solid #fff;border-radius:3px;padding:14px 20px;box-shadow:0 0 8px #eeeeee;}
-        .login-form .layui-form-item {position:relative;}
-        .login-form .layui-form-item label {position:absolute;left:1px;top:1px;width:38px;line-height:36px;text-align:center;color:#d2d2d2;}
-        .login-form .layui-form-item input {padding-left:36px;}
-        .captcha {width:60%;display:inline-block;}
-        .captcha-img {display:inline-block;width:34%;float:right;}
-        .captcha-img img {height:34px;border:1px solid #e6e6e6;height:36px;width:100%;}
-        .copyright{font-size:12px;color: #ccc; text-align: center;}
-        @media screen  and (max-width: 320px) {
-            .admin-login-background {
-                width:300px;
-                left: 59%;
-            }
-        }
-
-    </style>
-</head>
-<body>
-<div id="canvas"></div>
-<div class="layui-container">
-    <div class="admin-login-background">
-        <div class="layui-form login-form">
-            <form class="layui-form" action="">
-                <div class="layui-form-item logo-title">
-                    <h1><?php echo site_name(); ?>管理后台</h1>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-icon layui-icon-username" for="username"></label>
-                    <input type="text" name="username" lay-verify="required|account" placeholder="用户名或者邮箱" autocomplete="off" class="layui-input" value="">
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-icon layui-icon-password" for="password"></label>
-                    <input type="password" name="password" lay-verify="required|password" placeholder="密码" autocomplete="off" class="layui-input" value="">
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-icon layui-icon-vercode" for="captcha"></label>
-                    <input type="text" name="captcha" lay-verify="required|captcha" placeholder="图形验证码" autocomplete="off" class="layui-input verification captcha" value="">
-                    <div class="captcha-img">
-                        <img  id="captchaPic" src="<?php echo url('verify'); ?>?<?php echo time(); ?>" alt="captcha" onclick="this.src='<?php echo url("verify"); ?>?'+'id='+Math.random()"/>
-                    </div>
-                </div>
-                <div class="layui-form-item">
-                    <input type="checkbox" name="rememberMe" checked value="true" lay-skin="primary" title="记住密码">
-                </div>
-                <div class="layui-form-item">
-                    <button class="layui-btn layui-btn-fluid" lay-submit="" lay-filter="login">登 入</button>
-                </div>
-                <div class="copyright">
-                    © 2009-<?php echo date("Y");?> <a href="http://quyum.com" target="_blank">千翼科技</a> All Rights Reserved.
-                </div>
-            </form>
-        </div>
-    </div>
-</div>
-<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js" charset="utf-8"></script>
-<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
-<script src="/static/plugins/firework/firework.js" charset="utf-8"></script>
-<script>
-    layui.use(['form'], function () {
-        var form = layui.form,
-            layer = layui.layer;
-        // 登录过期的时候,跳出ifram框架
-        if (top.location != self.location) top.location = self.location;
-
-        // 粒子线条背景
-        $(document).ready(function(){
-
-                $("#canvas").fireworks({
-                    width: "100%",
-                    height: "100%"
-                });
-
-        });
-
-        // 进行登录操作
-        form.on('submit(login)', function (data) {
-            data = data.field;
-
-            if (data.username == '') {
-                layer.msg('用户名不能为空');
-                return false;
-            }
-            if (data.password == '') {
-                layer.msg('密码不能为空');
-                return false;
-            }
-            if (data.captcha == '') {
-                layer.msg('验证码不能为空');
-                return false;
-            }
-
-            $.ajax({
-
-                method:'post',
-                data:data,
-                success:function (res) {
-                    if(res.code>0){
-                        layer.msg(res.msg, function () {
-                            window.location = "<?php echo url('index/index'); ?>";
-                        });
-                    }else{
-                        layer.msg(res.msg);
-                        $('#captchaPic').attr('src','<?php echo url("verify"); ?>?id='+Math.random());
-                        return false;
-                    }
-
-                },fail:function (res) {
-                    layer.msg(res.msg, function () {
-                        $('#captchaPic').attr('src','<?php echo url("verify"); ?>?id='+Math.random());
-                        return false;
-                    });
-                }
-            });
-
-            return false;
-        });
-    });
-</script>
-</body>
-</html>

+ 167 - 0
php/runtime/admin/temp/39d9de22916a73242cce373af9cf2c36.php

@@ -0,0 +1,167 @@
+<?php /*a:3:{s:65:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\finance\zhengshon.html";i:1591350840;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\header.html";i:1582014448;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\footer.html";i:1581911356;}*/ ?>
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title><?php echo config('admin.sys_name'); ?>后台管理</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black">
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="format-detection" content="telephone=no">
+    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
+    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap.css" media="all" />-->
+    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap-theme.css" media="all" />-->
+    <link rel="stylesheet" href="/static/admin/css/main.css?v=<?php echo time(); ?>" media="all">
+    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
+    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-select/less/bootstrap-select.less">-->
+    <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">-->
+    <!--[if lt IE 9]>
+    <!--<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>-->
+    <!--<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>-->
+    <!--<![endif]&ndash;&gt;-->
+    <style id="LM-bg-color">
+    </style>
+</head>
+<style>
+    .upload-wrap {
+        position: relative;
+        display: inline-block;
+        overflow: hidden;
+        border: 1px solid #2d78f4;
+        border-radius: 3px;
+    }
+
+    .upload-wrap .file-ele {
+        position: absolute;
+        top: 0;
+        right: 0;
+        opacity: 0;
+        height: 100%;
+        width: 100%;
+        cursor: pointer;
+
+    }
+
+    .upload-wrap .file-open {
+        width: 90px;
+        height: 30px;
+        line-height: 30px;
+        text-align: center;
+        color: #fff;
+        background: #3385ff;
+    }
+
+</style>
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+            <legend>后台赠送</legend>
+            <blockquote class="layui-elem-quote">
+                <div class="LM-table">
+
+                </div>
+
+            </blockquote>
+
+        </fieldset>
+
+        <table class="layui-table" id="list" lay-filter="list">
+
+        </table>
+    </div>
+</div>
+<script type="text/html" id="image">
+
+    {{# layui.each(d.image, function(index, item){ }}
+    <img src="/static/admin/images/image.gif"   onmouseover="layer.tips('<img src={{item}}>',this,{tips: [1, '#fff']});" onmouseout="layer.closeAll();">
+    {{# });
+    }}
+</script>
+<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
+<!--<script src="/static/plugins/bootstrap-3.3.7/js/bootstrap.js" charset="utf-8"></script>-->
+<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
+<script>
+
+    layui.use(['form', 'table'], function () {
+        var $ = layui.jquery,
+            form = layui.form,
+            table = layui.table;
+
+        var tableIn = table.render({
+            elem: '#list',
+            url: '<?php echo url("zhengshon"); ?>',
+            method: 'post',
+            title: '反馈意见',
+            loading: true,
+            toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
+
+            defaultToolbar: ['filter', 'exports', 'print', "excel", { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
+                title: '提示'
+                , layEvent: 'LAYTABLE_TIPS'
+                , icon: 'layui-icon-tips'
+            }],
+            cols: [[
+                // {checkbox: true, fixed: true},
+                {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
+                {field: 'user_id', title: '用户id', width: 120, sort: true},
+                {field: 'user_name', title: '用户', width: 120, sort: true},
+                {field: 'name', title: '说明', width: 300, sort: true},
+                {field: 'money', title: '金额', width: 120, sort: true},
+                {field: 'status', title: '0 增加1 减少', width:200, sort: true},
+            ]],
+            limits: [10, 15, 20, 25, 50, 100],
+            limit: 10,
+            page: true
+        });
+
+
+        table.on('tool(list)', function (obj) {
+            var data = obj.data;
+            let event = obj.event;
+            switch (event) {
+                case "check":
+                    layer.confirm('确定要进行这样的操作码', function (index) {
+                        loading = layer.load(1, {shade: [0.1, '#fff']});
+                        $.post("<?php echo url('status'); ?>", {id: data.id}, function (res) {
+                            layer.close(loading);
+                            layer.close(index);
+                            if (res.code == 1) {
+                                layer.msg(res.msg, {time: 1000, icon: 1});
+                                tableIn.reload();
+                            } else {
+                                layer.msg(res.msg, {time: 1000, icon: 2});
+                            }
+                        }, "json")
+                    })
+                    break;
+            }
+
+
+        });
+
+        form.on('switch(status)', function (data) {
+
+        });
+
+        $('#search').click(function () {
+            var $keys = $('#name').val();
+            if (!$keys) {
+                return layer.msg('请输入关键词');
+            }
+
+            tableIn.reload({page: {page: 1}, where: {name: $keys}});
+
+        })
+        // setInterval(function () {
+        //     tableIn.reload();
+        // }, 50000)
+
+
+
+
+
+    });
+
+</script>

+ 0 - 182
php/runtime/admin/temp/42d182ba955a14984e138f63987ed1b0.php

@@ -1,182 +0,0 @@
-<?php /*a:3:{s:63:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\auth\admin_rule.html";i:1581911356;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\header.html";i:1582014448;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\footer.html";i:1581911356;}*/ ?>
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8">
-    <title><?php echo config('admin.sys_name'); ?>后台管理</title>
-    <meta name="renderer" content="webkit">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-    <meta name="apple-mobile-web-app-status-bar-style" content="black">
-    <meta name="apple-mobile-web-app-capable" content="yes">
-    <meta name="format-detection" content="telephone=no">
-    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap.css" media="all" />-->
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap-theme.css" media="all" />-->
-    <link rel="stylesheet" href="/static/admin/css/main.css?v=<?php echo time(); ?>" media="all">
-    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-select/less/bootstrap-select.less">-->
-    <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">-->
-    <!--[if lt IE 9]>
-    <!--<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>-->
-    <!--<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>-->
-    <!--<![endif]&ndash;&gt;-->
-    <style id="LM-bg-color">
-    </style>
-</head>
-<div class="LM-container">
-    <div class="LM-main">
-        <div class="admin-main layui-anim layui-anim-upbit">
-            <fieldset class="layui-elem-field layui-field-title">
-                <legend>权限<?php echo lang('list'); ?></legend>
-            </fieldset>
-            <blockquote class="layui-elem-quote">
-                <a href="<?php echo url('ruleAdd'); ?>" class="layui-btn layui-btn-sm LM-add"><?php echo lang('add'); ?>路由</a>
-                <a class="layui-btn layui-btn-normal layui-btn-sm" onclick="openAll();">展开或折叠全部</a>
-            </blockquote>
-            <table class="layui-table" id="treeGrid" lay-filter="treeGrid"></table>
-        </div>
-    </div>
-</div>
-
-<script type="text/html" id="auth">
-    <input type="checkbox" name="auth_open" value="{{d.id}}" lay-skin="switch" lay-text="是|否" lay-filter="auth_open" {{ d.auth_open == 0 ? 'checked' : '' }}>
-</script>
-<script type="text/html" id="status">
-    <input type="checkbox" name="menu_status" value="{{d.id}}" lay-skin="switch" lay-text="显示|隐藏" lay-filter="menu_status" {{ d.menu_status == 1 ? 'checked' : '' }}>
-</script>
-<script type="text/html" id="order">
-    <input name="{{d.id}}" data-id="{{d.id}}" class="list_order layui-input" value=" {{d.sort}}" size="10"/>
-</script>
-<script type="text/html" id="icon">
-    <span class="icon {{d.icon}}"></span>
-</script>
-<script type="text/html" id="action">
-    <a href="<?php echo url('ruleEdit'); ?>?id={{d.id}}" class="layui-btn layui-btn-xs"><?php echo lang('edit'); ?></a>
-    <a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="add"><?php echo lang('add'); ?><?php echo lang('child'); ?></a>
-    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><?php echo lang('del'); ?></a>
-</script>
-<script type="text/html" id="topBtn">
-    <a href="<?php echo url('ruleAdd'); ?>" class="layui-btn layui-btn-sm"><?php echo lang('add'); ?>权限</a>
-</script>
-<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
-<!--<script src="/static/plugins/bootstrap-3.3.7/js/bootstrap.js" charset="utf-8"></script>-->
-<script>
-    var editObj=null,ptable=null,treeGrid=null,tableId='treeGrid',layer=null;
-    layui.config({
-        base: '/static/plugins/layui/extend/'
-    }).extend({
-        treeGrid: 'treeGrid/treeGrid'
-    }).use(['jquery','treeGrid','layer','form'], function(){
-        var $=layui.jquery ,form = layui.form;
-        treeGrid = layui.treeGrid;
-        layer=layui.layer;
-
-        ptable=treeGrid.render({
-            id:tableId
-            ,elem: '#'+tableId
-            ,idField:'id'
-            ,url:'<?php echo url("adminRule"); ?>'
-            ,cellMinWidth: 100
-            ,treeId:'id'//树形id字段名称
-            ,treeUpId:'pid'//树形父id字段名称
-            ,treeShowName:'title'//以树形式显示的字段
-            ,height:'full-140'
-            ,isFilter:false
-            ,iconOpen:true//是否显示图标【默认显示】
-            ,isOpenDefault:true//节点默认是展开还是折叠【默认展开】
-            ,cols: [[
-                {field: 'id', title: '<?php echo lang("id"); ?>', width: 70, fixed: true},
-                {field: 'icon', align: 'center',title: '<?php echo lang("icon"); ?>', width: 60,templet: '#icon'},
-                {field: 'title', title: '权限名称', width: 200},
-                {field: 'href', title: '控制器/方法', width: 200},
-                {field: 'auth_open',align: 'center', title: '是否验证权限', width: 150,toolbar: '#auth'},
-                {field: 'menu_status',align: 'center',title: '菜单<?php echo lang("status"); ?>', width: 150,toolbar: '#status'},
-                {field: 'sort',align: 'center', title: '<?php echo lang("order"); ?>', width: 80, templet: '#order'},
-                {title:'操作',width:200, toolbar: '#action',align:"center"},
-            ]]
-            ,page:false
-        });
-        treeGrid.on('tool('+tableId+')',function (obj) {
-            var data = obj.data;
-            if(obj.event === 'del'){
-                layer.confirm('<?php echo lang("Are you sure you want to delete it"); ?>', function(index){
-                    var loading = layer.load(1, {shade: [0.1, '#fff']});
-                    $.post("<?php echo url('ruleDel'); ?>",{id:data.id},function(res){
-                        layer.close(loading);
-                        if(res.code==1){
-                            layer.msg(res.msg,{time:1000,icon:1});
-                            obj.del();
-                        }else{
-                            layer.msg(res.msg,{time:1000,icon:2});
-                        }
-                    });
-                    layer.close(index);
-                });
-            }else if(obj.event === 'add'){
-
-                var index = layer.open({
-                    type: 2,
-                    content: '<?php echo url("ruleAdd"); ?>'+'?rule_id='+data.id,
-                    area: ['800px', '600px'],
-                    maxmin: true
-                });
-                layer.full(index);
-
-            }
-        });
-        form.on('switch(auth_open)', function(obj){
-            loading =layer.load(1, {shade: [0.1,'#fff']});
-            var id = this.value;
-            var auth_open = obj.elem.checked===true?0:1;
-            $.post('<?php echo url("ruleOpen"); ?>',{'id':id,'auth_open':auth_open},function (res) {
-                layer.close(loading);
-                if (res.code==1) {
-                    treeGrid.render;
-                }else{
-                    layer.msg(res.msg,{time:1000,icon:2});
-                    treeGrid.render;
-                    return false;
-                }
-            })
-        });
-        form.on('switch(menu_status)', function(obj){
-            loading =layer.load(1, {shade: [0.1,'#fff']});
-            var id = this.value;
-            var menu_status = obj.elem.checked===true?1:0;
-            $.post('<?php echo url("ruleState"); ?>',{'id':id,'menu_status':menu_status},function (res) {
-                layer.close(loading);
-                if (res.code==1) {
-                    treeGrid.render;
-                }else{
-                    layer.msg(res.msg,{time:1000,icon:2});
-                    treeGrid.render;
-                    return false;
-                }
-            })
-        });
-        $('body').on('blur','.list_order',function() {
-            var id = $(this).attr('data-id');
-            var sort = $(this).val();
-            $.post('<?php echo url("ruleSort"); ?>',{id:id,sort:sort},function(res){
-                if(res.code > 0){
-                    layer.msg(res.msg,{time:1000,icon:1},function(){
-                        location.href = res.url;
-                    });
-                }else{
-                    layer.msg(res.msg,{time:1000,icon:2});
-                    treeGrid.render;
-                }
-            })
-        })
-
-
-
-    });
-
-    function openAll() {
-        var treedata=treeGrid.getDataTreeList(tableId);
-        treeGrid.treeOpenAll(tableId,!treedata[0][treeGrid.config.cols.isOpen]);
-    }
-
-</script>

+ 183 - 0
php/runtime/admin/temp/67d40489a97bd6c8b7b2927ecc1d4082.php

@@ -0,0 +1,183 @@
+<?php /*a:3:{s:62:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\finance\shenhe.html";i:1591349985;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\header.html";i:1582014448;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\footer.html";i:1581911356;}*/ ?>
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title><?php echo config('admin.sys_name'); ?>后台管理</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black">
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="format-detection" content="telephone=no">
+    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
+    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap.css" media="all" />-->
+    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap-theme.css" media="all" />-->
+    <link rel="stylesheet" href="/static/admin/css/main.css?v=<?php echo time(); ?>" media="all">
+    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
+    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-select/less/bootstrap-select.less">-->
+    <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">-->
+    <!--[if lt IE 9]>
+    <!--<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>-->
+    <!--<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>-->
+    <!--<![endif]&ndash;&gt;-->
+    <style id="LM-bg-color">
+    </style>
+</head>
+<style>
+    .upload-wrap {
+        position: relative;
+        display: inline-block;
+        overflow: hidden;
+        border: 1px solid #2d78f4;
+        border-radius: 3px;
+    }
+
+    .upload-wrap .file-ele {
+        position: absolute;
+        top: 0;
+        right: 0;
+        opacity: 0;
+        height: 100%;
+        width: 100%;
+        cursor: pointer;
+
+    }
+
+    .upload-wrap .file-open {
+        width: 90px;
+        height: 30px;
+        line-height: 30px;
+        text-align: center;
+        color: #fff;
+        background: #3385ff;
+    }
+
+</style>
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+            <legend>财务统计</legend>
+            <blockquote class="layui-elem-quote">
+                <div class="LM-table">
+
+                </div>
+
+            </blockquote>
+
+        </fieldset>
+
+        <table class="layui-table" id="list" lay-filter="list">
+
+        </table>
+    </div>
+</div>
+
+
+<script type="text/html" id="barDemo">
+    <input type="button" class="layui-btn layui-btn-xs" lay-event="tongguo" value="审核通过">
+    <input type="button" class="layui-btn layui-btn-danger" lay-event="jujue" value="拒绝">
+</script>
+<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
+<!--<script src="/static/plugins/bootstrap-3.3.7/js/bootstrap.js" charset="utf-8"></script>-->
+<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
+<script>
+
+    layui.use(['form', 'table'], function () {
+        var $ = layui.jquery,
+            form = layui.form,
+            table = layui.table;
+
+        var tableIn = table.render({
+            elem: '#list',
+            url: '<?php echo url("shenhe"); ?>',
+            method: 'post',
+            title: '反馈意见',
+            loading: true,
+            toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
+
+            defaultToolbar: ['filter', 'exports', 'print', "excel", { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
+                title: '提示'
+                , layEvent: 'LAYTABLE_TIPS'
+                , icon: 'layui-icon-tips'
+            }],
+            cols: [[
+                // {checkbox: true, fixed: true},
+                {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
+                {field: 'user_id', title: '用户id', width: 120, sort: true},
+                {field: 'user_name', title: '用户', width: 120, sort: true},
+                {field: 'money', title: '充值金额', width: 120, sort: true},
+                {field: 'actual_money', title: '实际到账金额', width: 200, sort: true},
+                {field: 'charge_money', title: '手续费', width: 120, sort: true},
+                {field: 'status', title: '状态', width:200, sort: true},
+                {title: '操作', width: 150, align: "center", toolbar: "#barDemo"},
+            ]],
+            limits: [10, 15, 20, 25, 50, 100],
+            limit: 10,
+            page: true
+        });
+
+
+        table.on('tool(list)', function (obj) {
+            var data = obj.data;
+            let event = obj.event;
+            switch (event) {
+                case "jujue":
+                    layer.confirm('您确定要拒绝吗', function (index) {
+                        loading = layer.load(1, {shade: [0.1, '#fff']});
+                        $.post("<?php echo url('jujue'); ?>", {id: data.id}, function (res) {
+                            layer.close(loading);
+                            layer.close(index);
+                            if (res.code == 200) {
+                                layer.msg(res.msg, {time: 1000, icon: 1});
+                                tableIn.reload();
+                            } else {
+                                layer.msg(res.msg, {time: 1000, icon: 2});
+                            }
+                        }, "json")
+                    })
+                    break;
+                case "tongguo":
+                    // layer.confirm('确定要进行这样的操作码', function (index) {
+                        loading = layer.load(1, {shade: [0.1, '#fff']});
+                        $.post("<?php echo url('czcg'); ?>", {id: data.id}, function (res) {
+                            layer.close(loading);
+                            // layer.close(index);
+                            if (res.code == 200) {
+                                layer.msg(res.msg, {time: 1000, icon: 1});
+                                tableIn.reload();
+                            } else {
+                                layer.msg(res.msg, {time: 1000, icon: 2});
+                            }
+                        }, "json")
+                    // })
+                    break;
+            }
+
+
+        });
+
+        form.on('switch(status)', function (data) {
+
+        });
+
+        $('#search').click(function () {
+            var $keys = $('#name').val();
+            if (!$keys) {
+                return layer.msg('请输入关键词');
+            }
+
+            tableIn.reload({page: {page: 1}, where: {name: $keys}});
+
+        })
+        // setInterval(function () {
+        //     tableIn.reload();
+        // }, 50000)
+
+
+
+
+
+    });
+
+</script>

+ 0 - 148
php/runtime/admin/temp/a43dd06f39d809c109c800ec9d9d065a.php

@@ -1,148 +0,0 @@
-<?php /*a:3:{s:62:"D:\phpstudy_pro\WWW\my\fuye\php\view\admin\adminlog\index.html";i:1581911356;s:61:"D:\phpstudy_pro\WWW\my\fuye\php\view\admin\common\header.html";i:1582014448;s:61:"D:\phpstudy_pro\WWW\my\fuye\php\view\admin\common\footer.html";i:1581911356;}*/ ?>
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8">
-    <title><?php echo config('admin.sys_name'); ?>后台管理</title>
-    <meta name="renderer" content="webkit">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-    <meta name="apple-mobile-web-app-status-bar-style" content="black">
-    <meta name="apple-mobile-web-app-capable" content="yes">
-    <meta name="format-detection" content="telephone=no">
-    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap.css" media="all" />-->
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap-theme.css" media="all" />-->
-    <link rel="stylesheet" href="/static/admin/css/main.css?v=<?php echo time(); ?>" media="all">
-    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-select/less/bootstrap-select.less">-->
-    <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">-->
-    <!--[if lt IE 9]>
-    <!--<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>-->
-    <!--<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>-->
-    <!--<![endif]&ndash;&gt;-->
-    <style id="LM-bg-color">
-    </style>
-</head>
-<div class="LM-container">
-    <div class="LM-main">
-        <fieldset class="layui-elem-field layui-field-title">
-            <legend>日志<?php echo lang('list'); ?></legend>
-            <blockquote class="layui-elem-quote">
-                <div class="tabletop">
-                    <div class="layui-inline">
-                        <!--                        <label class="layui-form-label">搜索<?php echo lang('username'); ?></label>-->
-                        <div class="layui-input-inline">
-                            <input type="text" name="keys" id="keys" lay-verify="required" autocomplete="off"
-                                   class="layui-input">
-                        </div>
-                        <button type="submit" class="layui-btn layui-btn-sm" lay-submit lay-filter="submit" id="search">
-                            <?php echo lang('search'); ?>
-                        </button>
-                        <a href="javascript:;"  class="layui-btn layui-btn-sm layui-btn-danger" id="delAll"><?php echo lang('delete checked'); ?></a>
-
-                    </div>
-
-                </div>
-
-            </blockquote>
-        </fieldset>
-        <table class="layui-tab" id="list" lay-filter="list"></table>
-    </div>
-</div>
-
-
-<script type="text/html" id="action">
-    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><?php echo lang('del'); ?></a>
-</script>
-<script type="text/html" id="time">
-
-    {{layui.util.toDateString(d.create_time*1000, 'yyyy-MM-dd HH:mm:ss')}}
-</script>
-
-<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
-<!--<script src="/static/plugins/bootstrap-3.3.7/js/bootstrap.js" charset="utf-8"></script>-->
-<script>
-    layui.use(['form', 'table'], function () {
-        var $ = layui.jquery,
-            form = layui.form,
-            table = layui.table;
-
-       var tableIn = table.render({
-            elem: '#list',
-            url: '<?php echo url("index"); ?>',
-            method: 'post',
-            cols: [[
-                {checkbox: true, fixed: 'left'},
-                {field: 'id', title: 'ID', width: 80, sort: true},
-                {field: 'admin_id', title: 'admin_id', width: 80, sort: true},
-                {field: 'username', title: '账号', width: 150, sort: true},
-                {field: 'log_url', title: '地址', width: 150, templet: '#size', sort: true,},
-                {field: 'log_content', title: '内容', width: 150, sort: true,},
-                {field: 'log_title', title: '标题', width: 150, sort: true,},
-                {field: 'log_agent', title: '浏览器', width: 120, sort: true,},
-                {field: 'log_ip', title: 'ip', width: 80},
-                {field: 'create_time', title: '时间', width: 180,templet:'#time'},
-                {title:'操作',width:100, toolbar: '#action',align:"center"}
-            ]],
-            limits: [10, 15, 20, 25, 50, 100],
-            limit: 15,
-            page: true,
-       });
-       table.on('tool(list)', function(obj) {
-            var data = obj.data;
-            if(obj.event === 'del'){
-                layer.confirm('<?php echo lang("Are you sure you want to delete it"); ?>', function(index){
-                    var loading = layer.load(1, {shade: [0.1, '#fff']});
-                    $.post("<?php echo url('delete'); ?>",{id:data.id},function(res){
-                        layer.close(loading);
-                        if(res.code===1){
-                            layer.msg(res.msg,{time:1000,icon:1});
-                            tableIn.reload({where:{catid:'<?php echo input("catid"); ?>'}});
-                        }else{
-                            layer.msg(res.msg,{time:1000,icon:2});
-                        }
-                    });
-                    layer.close(index);
-                });
-            }
-        });
-       $('#search').click(function () {
-            var $keys = $('#keys').val();
-            if(!$keys){
-                return layer.msg('请输入关键词');
-            }
-            tableIn.reload({ page: {page: 1},where: {keys: $keys}});
-
-       });
-       $('#delAll').click(function(){
-            layer.confirm("<?php echo lang('Are you sure you want to delete it'); ?>", {icon: 3}, function(index) {
-                layer.close(index);
-                var checkStatus = table.checkStatus('list'); //test即为参数id设定的值
-                var ids = [];
-                console.log(checkStatus.data)
-                $(checkStatus.data).each(function (index, item) {
-                    ids.push(item.id);
-                });
-                if(ids==''){
-                    layer.msg("<?php echo lang('please choose data'); ?>", {time: 1000, icon: 2});
-                    return false;
-                }
-                var loading = layer.load(1, {shade: [0.1, '#fff']});
-                $.post("<?php echo url('delete'); ?>", {id: ids}, function (res) {
-                    layer.close(loading);
-                    if (res.code > 0) {
-                        layer.msg(res.msg, {time: 1000, icon: 1});
-                        tableIn.reload();
-                    } else {
-                        layer.msg(res.msg, {time: 1000, icon: 2});
-                    }
-                });
-            });
-       })
-
-
-    });
-
-
-</script>

+ 0 - 145
php/runtime/admin/temp/a5b87fd77913dd9b0ad9dd783203b8ce.php

@@ -1,145 +0,0 @@
-<?php /*a:3:{s:59:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\index\index.html";i:1581911356;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\header.html";i:1582014448;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\footer.html";i:1581911356;}*/ ?>
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8">
-    <title><?php echo config('admin.sys_name'); ?>后台管理</title>
-    <meta name="renderer" content="webkit">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-    <meta name="apple-mobile-web-app-status-bar-style" content="black">
-    <meta name="apple-mobile-web-app-capable" content="yes">
-    <meta name="format-detection" content="telephone=no">
-    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap.css" media="all" />-->
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap-theme.css" media="all" />-->
-    <link rel="stylesheet" href="/static/admin/css/main.css?v=<?php echo time(); ?>" media="all">
-    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-select/less/bootstrap-select.less">-->
-    <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">-->
-    <!--[if lt IE 9]>
-    <!--<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>-->
-    <!--<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>-->
-    <!--<![endif]&ndash;&gt;-->
-    <style id="LM-bg-color">
-    </style>
-</head>
-<link rel="stylesheet" href="/static/admin/css/common.css" media="all">
-
-<body class="layui-layout-body LM-all">
-<div class="layui-layout layui-layout-admin">
-
-    <div class="layui-header header">
-        <div class="layui-logo"><a href="">
-            <img src="<?php echo site_logo(); ?>" alt="lemocms">
-            <h1><?php echo site_name(); ?></h1>
-        </a>
-        </div>
-        <a>
-            <div class="LM-tool"><i title="展开" class="fa fa-outdent" data-side-fold="1"></i></div>
-        </a>
-
-        <!--pc 端-->
-        <ul class="layui-nav layui-layout-left layui-header-menu layui-header-pc-menu mobile layui-hide-xs">
-        </ul>
-            <!--手机端-->
-        <ul class="layui-nav layui-layout-left layui-header-menu mobile layui-hide-sm">
-            <li class="layui-nav-item">
-                <a href="javascript:;"><i class="fa fa-list-ul"></i> 选择模块</a>
-                <dl class="layui-nav-child layui-header-mini-menu">
-                </dl>
-            </li>
-        </ul>
-
-
-        <ul class="layui-nav layui-layout-right">
-            <li class="layui-nav-item">
-                <a href="javascript:;" data-refresh="刷新"><i class="fa fa-refresh"></i></a>
-            </li>
-            <li class="layui-nav-item">
-                <a href="javascript:;" data-clear="清理" data-href="<?php echo url('cleardata'); ?>" class="LM-clear"><i class="fa fa-trash-o"></i></a>
-            </li>
-            <li class="layui-nav-item LM-setting">
-                <a href="javascript:;"><?php echo session('admin.username'); ?></a>
-                <dl class="layui-nav-child">
-                    <dd>
-                        <a href="javascript:;" data-iframe-tab="<?php echo url('auth/adminEdit'); ?>" data-title="基本资料" data-icon="fa fa-gears">基本资料</a>
-                    </dd>
-                    <dd>
-                        <a href="javascript:;" data-iframe-tab="<?php echo url('password'); ?>" data-title="修改密码" data-icon="fa fa-gears">修改密码</a>
-                    </dd>
-                    <dd>
-                        <a href="javascript:;" class="login-out">退出登录</a>
-                    </dd>
-                </dl>
-            </li>
-            <li class="layui-nav-item LM-select-bgcolor mobile layui-hide-xs">
-                <a href="javascript:;" data-bgcolor="配色方案"><i class="fa fa-ellipsis-v"></i></a>
-            </li>
-        </ul>
-    </div>
-
-    <div class="layui-side layui-bg-black">
-        <div class="layui-side-scroll layui-left-menu">
-        </div>
-    </div>
-
-    <div class="layui-body">
-        <div class="layui-tab" lay-filter="LMTab" id="top_tabs_box">
-            <ul class="layui-tab-title" id="top_tabs">
-                <li class="layui-this" id="LMHomeTabId" lay-id=""></li>
-            </ul>
-<!--            关闭按钮-->
-            <ul class="layui-nav closeBox">
-                <li class="layui-nav-item">
-                    <a href="javascript:;"> <i class="fa fa-dot-circle-o"></i> 页面操作</a>
-                    <dl class="layui-nav-child">
-                        <dd><a href="javascript:;" data-page-close="other"><i class="fa fa-window-close"></i> 关闭其他</a></dd>
-                        <dd><a href="javascript:;" data-page-close="all"><i class="fa fa-window-close-o"></i> 关闭全部</a></dd>
-                    </dl>
-                </li>
-            </ul>
-            <div class="layui-tab-content clildFrame">
-                <!--           加载iframe          /-->
-                <div id="LMHomeTabIframe" class="layui-tab-item layui-show"
-                </div>
-
-            </div>
-        </div>
-
-        <div class="layui-footer footer footer-demo" id="admin-footer">
-            <div class="layui-main">
-                <p><?php  echo( date("Y",time())); ?> ©
-                    <a href="http://www.quyum.com/">千翼科技</a> Apache Licence 2.0
-                </p>
-            </div>
-        </div>
-    </div>
-
-
-<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
-<!--<script src="/static/plugins/bootstrap-3.3.7/js/bootstrap.js" charset="utf-8"></script>-->
-<script>
-    var menus ='<?php echo $menus; ?>';
-    layui.config({
-        base: "/static/admin/js/",
-        version: true
-    }).extend({
-        LM: "LM"
-    }).use(['element', 'layer', 'LM'], function () {
-        var $ = layui.jquery,
-            element = layui.element,
-            layer = layui.layer;
-        if(layui.cache.menus){
-            menus = layui.cache.menus;
-        }else{
-            layui.cache.menus = menus;
-        }
-        // console.log("menus",menus)
-
-        LM.init(menus);
-
-    });
-</script>
-</body>
-

+ 0 - 157
php/runtime/admin/temp/a8ba287c844b92a9904d92bc00486605.php

@@ -1,157 +0,0 @@
-<?php /*a:3:{s:58:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\auth\group.html";i:1581911356;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\header.html";i:1582014448;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\footer.html";i:1581911356;}*/ ?>
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8">
-    <title><?php echo config('admin.sys_name'); ?>后台管理</title>
-    <meta name="renderer" content="webkit">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-    <meta name="apple-mobile-web-app-status-bar-style" content="black">
-    <meta name="apple-mobile-web-app-capable" content="yes">
-    <meta name="format-detection" content="telephone=no">
-    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap.css" media="all" />-->
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap-theme.css" media="all" />-->
-    <link rel="stylesheet" href="/static/admin/css/main.css?v=<?php echo time(); ?>" media="all">
-    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-select/less/bootstrap-select.less">-->
-    <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">-->
-    <!--[if lt IE 9]>
-    <!--<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>-->
-    <!--<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>-->
-    <!--<![endif]&ndash;&gt;-->
-    <style id="LM-bg-color">
-    </style>
-</head>
-<div class="LM-container">
-    <div class="LM-main">
-        <div class="admin-main layui-anim layui-anim-upbit">
-            <fieldset class="layui-elem-field layui-field-title">
-                <legend>权限组<?php echo lang('list'); ?></legend>
-                <blockquote class="layui-elem-quote">
-                    <div class="LM-table">
-                        <form class="layui-form layui-form-pane">
-                            <div class="layui-inline">
-                                <input type="text" name="title" lay-verify="required" placeholder="<?php echo lang('pleaseEnter'); ?>添加" autocomplete="off" class="layui-input">
-                            </div>
-                            <button class="layui-btn data-add-btn layui-btn-sm" lay-submit="" lay-filter="add"><?php echo lang('add'); ?></button>
-
-                        </form>
-
-                    </div>
-
-                  </blockquote>
-
-            </fieldset>
-
-
-
-            <table class="layui-table" id="list" lay-filter="list"></table>
-        </div>
-    </div>
-</div>
-
-
-<script type="text/html" id="action">
-    <a href="<?php echo url('groupAccess'); ?>?id={{d.id}}" class="layui-btn layui-btn-xs layui-btn-normal">配置规则</a>
-    <a href="<?php echo url('groupEdit'); ?>?id={{d.id}}" class="layui-btn layui-btn-warm layui-btn-xs"><?php echo lang('edit'); ?></a>
-    {{# if(d.id==1){ }}
-    <a class="layui-btn layui-btn-danger layui-btn-xs layui-btn-disabled"><?php echo lang('del'); ?></a>
-    {{# }else{  }}
-    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><?php echo lang('del'); ?></a>
-    {{# } }}
-</script>
-<script type="text/html" id="status">
-    {{# if(d.id==1){ }}
-    <input type="checkbox" disabled name="status" value="{{d.id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="status" checked>
-    {{# }else{  }}
-    <input type="checkbox" name="status" value="{{d.id}}" lay-skin="switch" lay-text="开启|关闭" lay-filter="status" {{ d.status == 1 ? 'checked' : '' }}>
-    {{# } }}
-</script>
-<script type="text/html" id="create_time">
-    {{layui.util.toDateString(d.create_time*1000, 'yyyy-MM-dd HH:mm:ss')}}
-</script>
-<script type="text/html" id="update_time">
-    {{layui.util.toDateString(d.update_time*1000, 'yyyy-MM-dd HH:mm:ss')}}
-</script>
-<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
-<!--<script src="/static/plugins/bootstrap-3.3.7/js/bootstrap.js" charset="utf-8"></script>-->
-<script>
-    layui.use(['form', 'table'], function () {
-        var $ = layui.jquery,
-            form = layui.form,
-            table = layui.table;
-
-        var tableIn = table.render({
-            elem: '#list',
-            url: '<?php echo url("group"); ?>',
-            method: 'post',
-            cols: [[
-                {checkbox: true, fixed: true},
-                {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
-                {field: 'title', title: '组名', width: 150, fixed: true,},
-                {field: 'status', title: '状态', width: 180, templet:'#status'},
-                {field: 'create_time', title: '添加时间', width: 180,templet:'#create_time'},
-                {field: 'update_time', title: '修改时间', width: 180,templet:'#update_time'},
-                {title:'操作',width:250, toolbar: '#action',align:"center"},
-
-            ]],
-
-        });
-        // 监听添加操作
-        form.on('submit(add)', function (data) {
-            var result = data.field;
-            loading =layer.load(1, {shade: [0.1,'#fff']});
-            $.post("<?php echo url('groupAdd'); ?>", result, function (res) {
-                layer.close(loading);
-                if (res.code > 0) {
-                    layer.msg(res.msg, {time: 2000, icon: 1});
-                    tableIn.reload();
-                } else {
-                    layer.msg(res.msg, {time: 2000, icon: 2});
-                    return false;
-                }
-
-            });
-            return false;
-        })
-
-        table.on('tool(list)', function(data){
-            console.log(data);
-            var obj = data.data;
-            if(data.event === 'del'){
-                layer.confirm('<?php echo lang("Are you sure you want to delete it"); ?>', function(index){
-                    loading =layer.load(1, {shade: [0.1,'#fff']});
-                    $.post("<?php echo url('groupDel'); ?>",{id:obj.id},function(res){
-                        layer.close(loading);
-                        layer.close(index);
-                        if(res.code>0){
-                            layer.msg(res.msg,{time:1000,icon:1});
-                            data.del();
-                        }else{
-                            layer.msg(res.msg,{time:1000,icon:2});
-                        }
-                    });
-                });
-            }
-
-
-        });
-
-        form.on('switch(status)', function(data){
-                loading =layer.load(1, {shade: [0.1,'#fff']});
-                $.post("<?php echo url('groupState'); ?>",{id:data.value},function(res){
-                    layer.close(loading);
-                    if(res.code>0){
-                        layer.msg(res.msg,{time:1000,icon:1});
-                    }else{
-                        layer.msg(res.msg,{time:1000,icon:2});
-                    }
-                });
-        });
-
-    });
-
-
-</script>

+ 0 - 111
php/runtime/admin/temp/a8f8b134a87427ac15fa2ed97d90c5b0.php

@@ -1,111 +0,0 @@
-<?php /*a:1:{s:59:"D:\phpstudy_pro\WWW\my\fuye\php\view\admin\error\error.html";i:1581911356;}*/ ?>
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="UTF-8">
-    <title>404</title>
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta http-equiv="Access-Control-Allow-Origin" content="*">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-    <meta name="apple-mobile-web-app-status-bar-style" content="black">
-    <meta name="apple-mobile-web-app-capable" content="yes">
-    <meta name="format-detection" content="telephone=no">
-    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all">
-    <style>
-        .error .clip .shadow {height:180px;}
-        .error .clip:nth-of-type(2) .shadow {width:130px;}
-        .error .clip:nth-of-type(1) .shadow,.error .clip:nth-of-type(3) .shadow {width:250px;}
-        .error .digit {width:150px;height:150px;line-height:150px;font-size:120px;font-weight:bold;}
-        .error h2 {font-size:32px;}
-        .error .msg {top:-190px;left:30%;width:80px;height:80px;line-height:80px;font-size:32px;}
-        .error span.triangle {top:70%;right:0%;border-left:20px solid #535353;border-top:15px solid transparent;border-bottom:15px solid transparent;}
-        .error .container-error-404 {top: 50%;margin-top: 250px;position:relative;height:250px;padding-top:40px;}
-        .error .container-error-404 .clip {display:inline-block;transform:skew(-45deg);}
-        .error .clip .shadow {overflow:hidden;}
-        .error .clip:nth-of-type(2) .shadow {overflow:hidden;position:relative;box-shadow:inset 20px 0px 20px -15px rgba(150,150,150,0.8),20px 0px 20px -15px rgba(150,150,150,0.8);}
-        .error .clip:nth-of-type(3) .shadow:after,.error .clip:nth-of-type(1) .shadow:after {content:"";position:absolute;right:-8px;bottom:0px;z-index:9999;height:100%;width:10px;background:linear-gradient(90deg,transparent,rgba(173,173,173,0.8),transparent);border-radius:50%;}
-        .error .clip:nth-of-type(3) .shadow:after {left:-8px;}
-        .error .digit {position:relative;top:8%;color:white;background:#1aa094;border-radius:50%;display:inline-block;transform:skew(45deg);}
-        .error .clip:nth-of-type(2) .digit {left:-10%;}
-        .error .clip:nth-of-type(1) .digit {right:-20%;}
-        .error .clip:nth-of-type(3) .digit {left:-20%;}
-        .error h2 {font-size:24px;color:#A2A2A2;font-weight:bold;padding-bottom:20px;}
-        .error .tohome {font-size:16px;color:#07B3F9;}
-        .error .msg {position:relative;z-index:9999;display:block;background:#535353;color:#A2A2A2;border-radius:50%;font-style:italic;}
-        .error .triangle {position:absolute;z-index:999;transform:rotate(45deg);content:"";width:0;height:0;}
-        @media(max-width:767px) {.error .clip .shadow {height:100px;}
-            .error .clip:nth-of-type(2) .shadow {width:80px;}
-            .error .clip:nth-of-type(1) .shadow,.error .clip:nth-of-type(3) .shadow {width:100px;}
-            .error .digit {width:80px;height:80px;line-height:80px;font-size:52px;}
-            .error h2 {font-size:18px;}
-            .error .msg {top:-110px;left:15%;width:40px;height:40px;line-height:40px;font-size:18px;}
-            .error span.triangle {top:70%;right:-3%;border-left:10px solid #535353;border-top:8px solid transparent;border-bottom:8px solid transparent;}
-            .error .container-error-404 {height:150px;}
-        }
-    </style>
-</head>
-<body>
-<div class="error">
-    <div class="container-floud">
-        <div style="text-align: center">
-            <div class="container-error-404">
-                <div class="clip">
-                    <div class="shadow">
-                        <span class="digit thirdDigit"></span>
-                    </div>
-                </div>
-                <div class="clip">
-                    <div class="shadow">
-                        <span class="digit secondDigit"></span>
-                    </div>
-                </div>
-                <div class="clip">
-                    <div class="shadow">
-                        <span class="digit firstDigit"></span>
-                    </div>
-                </div>
-                <div class="msg">OH!
-                    <span class="triangle"></span>
-                </div>
-            </div>
-            <h2 class="h1">很抱歉,你访问的页面找不到了</h2>
-        </div>
-    </div>
-</div>
-<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
-<script>
-    function randomNum() {
-        return Math.floor(Math.random() * 9) + 1;
-    }
-
-    var loop1, loop2, loop3, time = 30, i = 0, number;
-    loop3 = setInterval(function () {
-        if (i > 40) {
-            clearInterval(loop3);
-            document.querySelector('.thirdDigit').textContent = 4;
-        } else {
-            document.querySelector('.thirdDigit').textContent = randomNum();
-            i++;
-        }
-    }, time);
-    loop2 = setInterval(function () {
-        if (i > 80) {
-            clearInterval(loop2);
-            document.querySelector('.secondDigit').textContent = 0;
-        } else {
-            document.querySelector('.secondDigit').textContent = randomNum();
-            i++;
-        }
-    }, time);
-    loop1 = setInterval(function () {
-        if (i > 100) {
-            clearInterval(loop1);
-            document.querySelector('.firstDigit').textContent = 4;
-        } else {
-            document.querySelector('.firstDigit').textContent = randomNum();
-            i++;
-        }
-    }, time);
-</script>
-</body>
-</html>

+ 0 - 152
php/runtime/admin/temp/b04ecd3398bf75dee5dd9dee974fadba.php

@@ -1,152 +0,0 @@
-<?php /*a:3:{s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\auth\rule_add.html";i:1581911356;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\header.html";i:1582014448;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\footer.html";i:1581911356;}*/ ?>
-<!DOCTYPE html>
-<html>
-<head>
-    <meta charset="utf-8">
-    <title><?php echo config('admin.sys_name'); ?>后台管理</title>
-    <meta name="renderer" content="webkit">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-    <meta name="apple-mobile-web-app-status-bar-style" content="black">
-    <meta name="apple-mobile-web-app-capable" content="yes">
-    <meta name="format-detection" content="telephone=no">
-    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap.css" media="all" />-->
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap-theme.css" media="all" />-->
-    <link rel="stylesheet" href="/static/admin/css/main.css?v=<?php echo time(); ?>" media="all">
-    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
-    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-select/less/bootstrap-select.less">-->
-    <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">-->
-    <!--[if lt IE 9]>
-    <!--<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>-->
-    <!--<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>-->
-    <!--<![endif]&ndash;&gt;-->
-    <style id="LM-bg-color">
-    </style>
-</head>
-<style> .layui-iconpicker-body.layui-iconpicker-body-page .hide {display: none;}</style>
-<div class="LM-container">
-    <div class="LM-main">
-        <div class="admin-main layui-anim layui-anim-upbit">
-            <fieldset class="layui-elem-field layui-field-title">
-                <legend><?php echo lang('add'); ?>权限节点</legend>
-            </fieldset>
-            <blockquote class="layui-elem-quote">
-                1、控制器/方法 例如 Wechat/index
-            </blockquote>
-            <form class="layui-form layui-form-pane" lay-filter="form">
-                <div class="layui-form-item">
-                    <label class="layui-form-label">父级</label>
-                    <div class="layui-input-inline">
-                        <select name="pid" lay-verify="required" lay-filter="pid">
-                            <option value="0">默认顶级</option>
-                            <?php if(is_array($ruleList) || $ruleList instanceof \think\Collection || $ruleList instanceof \think\Paginator): $i = 0; $__LIST__ = $ruleList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
-                            <option value="<?php echo htmlentities($vo['id']); ?>" <?php if($rule and $rule['id']==$vo['id']): ?>selected
-                            <?php endif; ?>><?php echo htmlentities($vo['lefthtml']); ?><?php echo htmlentities($vo['title']); ?></option>
-                            <?php endforeach; endif; else: echo "" ;endif; ?>
-                        </select>
-                    </div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label">权限名称</label>
-                    <div class="layui-input-inline">
-                        <input type="text" name="title" lay-verify="required" placeholder="<?php echo lang('pleaseEnter'); ?>权限名称"
-                               class="layui-input">
-                    </div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label">控制器/方法</label>
-                    <div class="layui-input-inline">
-                        <input type="text" name="href" lay-verify="required" placeholder="<?php echo lang('pleaseEnter'); ?>控制器/方法"
-                               class="layui-input">
-                    </div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label">图标名称</label>
-                    <div class="layui-input-inline">
-                        <input type="text" name="icon" id="iconPicker" lay-filter="iconPicker" class="hide">
-                    </div>
-                    <div class="layui-form-mid layui-word-aux"><a target="_blank" href="http://www.fontawesome.com.cn/">点击查看图标</a></div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label">菜单状态</label>
-                    <div class="layui-input-inline">
-                        <input type="radio" name="menu_status" lay-filter="menu_status" checked value="1" title="开启">
-                        <input type="radio" name="menu_status" lay-filter="menu_status" value="0" title="关闭">
-                    </div>
-                </div>
-                <div class="layui-form-item">
-                    <label class="layui-form-label">排序</label>
-                    <div class="layui-input-inline">
-                        <input type="text" name="sort" value="50" placeholder="<?php echo lang('pleaseEnter'); ?>排序编号"
-                               class="layui-input">
-                        <input type="hidden" name="id">
-                    </div>
-                </div>
-                <div class="layui-form-item">
-                    <div class="layui-input-inline">
-                        <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">立即提交</button>
-                        <a href="<?php echo url('adminRule'); ?>" class="layui-btn layui-btn-primary">返回</a>
-                    </div>
-                </div>
-            </form>
-        </div>
-    </div>
-</div>
-
-<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
-<!--<script src="/static/plugins/bootstrap-3.3.7/js/bootstrap.js" charset="utf-8"></script>-->
-<script>
-    layui.config({
-        base: '/static/plugins/layui/extend/'
-    }).extend({
-        iconPickerFa: 'iconPicker/iconPickerFa'
-    }).use(['form', 'layer','iconPickerFa'], function () {
-        var form = layui.form,layer = layui.layer,$= layui.jquery;
-        var iconPickerFa = layui.iconPickerFa;
-        var info  = <?php echo json_encode($info); ?>;
-        var url = "<?php echo url('ruleAdd'); ?>";
-        var icon = '';
-        if(info){
-            form.val('form',info);
-            url = "<?php echo url('ruleEdit'); ?>";
-            icon= info.icon;
-        }
-        iconPickerFa.render({
-            // 选择器,推荐使用input
-            elem: '#iconPicker',
-            // fa 图标接口
-            url: "/static/plugins/font-awesome-4.7.0/less/variables.less",
-            // 是否开启搜索:true/false,默认true
-            search: true,
-            // 是否开启分页:true/false,默认true
-            page: true,
-            // 每页显示数量,默认12
-            limit: 20,
-            // 点击回调
-            click: function (data) {
-                $('#iconPicker').val('fa '+ data.icon);
-            },
-            // 渲染成功后的回调
-            success: function (d) {
-                $('#iconPicker').val('fa '+ d.icon);
-            }
-        });
-        form.on('submit(submit)', function (data) {
-            // 提交到方法 默认为本身
-            console.log(data.field);
-            if(data.field.icon=='fa undefined'){
-                data.field.icon = icon;
-            }
-            $.post(url,data.field,function(res){
-                if(res.code > 0){
-                    layer.msg(res.msg,{time:1000,icon:1},function(){
-                        location.href = res.url;
-                    });
-                }else{
-                    layer.msg(res.msg,{time:1000,icon:2});
-                }
-            });
-        })
-    });
-</script>

+ 167 - 0
php/runtime/admin/temp/ca2a1c6a34a40cc7108b2a51083f5651.php

@@ -0,0 +1,167 @@
+<?php /*a:3:{s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\finance\buy.html";i:1591350681;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\header.html";i:1582014448;s:61:"D:\phpstudy_pro\WWW\cxy\bts\php\view\admin\common\footer.html";i:1581911356;}*/ ?>
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <title><?php echo config('admin.sys_name'); ?>后台管理</title>
+    <meta name="renderer" content="webkit">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+    <meta name="apple-mobile-web-app-status-bar-style" content="black">
+    <meta name="apple-mobile-web-app-capable" content="yes">
+    <meta name="format-detection" content="telephone=no">
+    <link rel="stylesheet" href="/static/plugins/layui/css/layui.css" media="all" />
+    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap.css" media="all" />-->
+    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap-theme.css" media="all" />-->
+    <link rel="stylesheet" href="/static/admin/css/main.css?v=<?php echo time(); ?>" media="all">
+    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
+    <!--<link rel="stylesheet" href="/static/plugins/bootstrap-select/less/bootstrap-select.less">-->
+    <!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">-->
+    <!--[if lt IE 9]>
+    <!--<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>-->
+    <!--<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>-->
+    <!--<![endif]&ndash;&gt;-->
+    <style id="LM-bg-color">
+    </style>
+</head>
+<style>
+    .upload-wrap {
+        position: relative;
+        display: inline-block;
+        overflow: hidden;
+        border: 1px solid #2d78f4;
+        border-radius: 3px;
+    }
+
+    .upload-wrap .file-ele {
+        position: absolute;
+        top: 0;
+        right: 0;
+        opacity: 0;
+        height: 100%;
+        width: 100%;
+        cursor: pointer;
+
+    }
+
+    .upload-wrap .file-open {
+        width: 90px;
+        height: 30px;
+        line-height: 30px;
+        text-align: center;
+        color: #fff;
+        background: #3385ff;
+    }
+
+</style>
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+            <legend>代理收入</legend>
+            <blockquote class="layui-elem-quote">
+                <div class="LM-table">
+
+                </div>
+
+            </blockquote>
+
+        </fieldset>
+
+        <table class="layui-table" id="list" lay-filter="list">
+
+        </table>
+    </div>
+</div>
+<script type="text/html" id="image">
+
+    {{# layui.each(d.image, function(index, item){ }}
+    <img src="/static/admin/images/image.gif"   onmouseover="layer.tips('<img src={{item}}>',this,{tips: [1, '#fff']});" onmouseout="layer.closeAll();">
+    {{# });
+    }}
+</script>
+<script src="/static/plugins/layui/layui.js" charset="utf-8"></script>
+<!--<script src="/static/plugins/bootstrap-3.3.7/js/bootstrap.js" charset="utf-8"></script>-->
+<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
+<script>
+
+    layui.use(['form', 'table'], function () {
+        var $ = layui.jquery,
+            form = layui.form,
+            table = layui.table;
+
+        var tableIn = table.render({
+            elem: '#list',
+            url: '<?php echo url("daili"); ?>',
+            method: 'post',
+            title: '反馈意见',
+            loading: true,
+            toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
+
+            defaultToolbar: ['filter', 'exports', 'print', "excel", { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
+                title: '提示'
+                , layEvent: 'LAYTABLE_TIPS'
+                , icon: 'layui-icon-tips'
+            }],
+            cols: [[
+                // {checkbox: true, fixed: true},
+                {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
+                {field: 'user_id', title: '用户id', width: 120, sort: true},
+                {field: 'user_name', title: '用户', width: 120, sort: true},
+                {field: 'name', title: '说明', width: 300, sort: true},
+                {field: 'money', title: '金额', width: 120, sort: true},
+                {field: 'status', title: '0 增加1 减少', width:200, sort: true},
+            ]],
+            limits: [10, 15, 20, 25, 50, 100],
+            limit: 10,
+            page: true
+        });
+
+
+        table.on('tool(list)', function (obj) {
+            var data = obj.data;
+            let event = obj.event;
+            switch (event) {
+                case "check":
+                    layer.confirm('确定要进行这样的操作码', function (index) {
+                        loading = layer.load(1, {shade: [0.1, '#fff']});
+                        $.post("<?php echo url('status'); ?>", {id: data.id}, function (res) {
+                            layer.close(loading);
+                            layer.close(index);
+                            if (res.code == 1) {
+                                layer.msg(res.msg, {time: 1000, icon: 1});
+                                tableIn.reload();
+                            } else {
+                                layer.msg(res.msg, {time: 1000, icon: 2});
+                            }
+                        }, "json")
+                    })
+                    break;
+            }
+
+
+        });
+
+        form.on('switch(status)', function (data) {
+
+        });
+
+        $('#search').click(function () {
+            var $keys = $('#name').val();
+            if (!$keys) {
+                return layer.msg('请输入关键词');
+            }
+
+            tableIn.reload({page: {page: 1}, where: {name: $keys}});
+
+        })
+        // setInterval(function () {
+        //     tableIn.reload();
+        // }, 50000)
+
+
+
+
+
+    });
+
+</script>

+ 0 - 122
php/runtime/ap/log/202006/01.log

@@ -1,122 +0,0 @@
-[2020-06-01T14:57:50+08:00][sql] CONNECT:[ UseTime:0.198929s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T14:57:50+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.054287s ]
-[2020-06-01T14:58:18+08:00][sql] CONNECT:[ UseTime:0.080181s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T14:58:18+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.050387s ]
-[2020-06-01T14:59:04+08:00][sql] CONNECT:[ UseTime:0.205330s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T14:59:04+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.055059s ]
-[2020-06-01T15:08:25+08:00][sql] CONNECT:[ UseTime:0.083480s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:08:25+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.053839s ]
-[2020-06-01T15:08:39+08:00][sql] CONNECT:[ UseTime:0.084637s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:08:39+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.053764s ]
-[2020-06-01T15:08:47+08:00][sql] CONNECT:[ UseTime:0.082193s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:08:47+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.055993s ]
-[2020-06-01T15:08:49+08:00][sql] CONNECT:[ UseTime:0.080101s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:08:49+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.053657s ]
-[2020-06-01T15:09:30+08:00][sql] CONNECT:[ UseTime:0.083599s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:09:30+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.057515s ]
-[2020-06-01T15:10:13+08:00][sql] CONNECT:[ UseTime:0.107277s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:10:13+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.051084s ]
-[2020-06-01T15:23:05+08:00][sql] CONNECT:[ UseTime:0.255382s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:23:05+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.054312s ]
-[2020-06-01T15:23:38+08:00][sql] CONNECT:[ UseTime:0.082425s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:23:38+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.053927s ]
-[2020-06-01T15:23:57+08:00][sql] CONNECT:[ UseTime:0.078810s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:23:57+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.052543s ]
-[2020-06-01T15:37:40+08:00][sql] CONNECT:[ UseTime:0.204344s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:37:40+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.058637s ]
-[2020-06-01T15:38:34+08:00][sql] CONNECT:[ UseTime:0.078738s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:38:34+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.053329s ]
-[2020-06-01T15:39:29+08:00][sql] CONNECT:[ UseTime:0.202565s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:39:29+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.057258s ]
-[2020-06-01T15:39:39+08:00][sql] CONNECT:[ UseTime:0.081341s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:39:39+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.054863s ]
-[2020-06-01T15:40:08+08:00][sql] CONNECT:[ UseTime:0.082394s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:40:08+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.055337s ]
-[2020-06-01T15:40:30+08:00][sql] CONNECT:[ UseTime:0.205023s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:40:30+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.056369s ]
-[2020-06-01T15:41:43+08:00][sql] CONNECT:[ UseTime:0.213358s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:41:43+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.053739s ]
-[2020-06-01T15:48:40+08:00][sql] CONNECT:[ UseTime:0.225863s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:48:40+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.306186s ]
-[2020-06-01T15:49:09+08:00][sql] CONNECT:[ UseTime:0.088779s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:49:09+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.052765s ]
-[2020-06-01T15:52:46+08:00][sql] CONNECT:[ UseTime:0.202934s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:52:46+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.052916s ]
-[2020-06-01T15:57:07+08:00][error] [0]Argument 1 passed to think\Response::header() must be of the type array, string given, called in D:\phpstudy_pro\WWW\my\fuye\php\vendor\topthink\framework\src\helper.php on line 310[D:\phpstudy_pro\WWW\my\fuye\php\vendor\topthink\framework\src\think\Response.php:245]
-[2020-06-01T15:57:07+08:00][sql] CONNECT:[ UseTime:0.214172s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T15:57:07+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.051529s ]
-[2020-06-01T16:07:54+08:00][sql] CONNECT:[ UseTime:0.213005s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T16:07:54+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.055106s ]
-[2020-06-01T16:15:50+08:00][error] [8]未定义数组下标: 1[D:\phpstudy_pro\WWW\my\fuye\php\app\ap\controller\v1\Token.php:21]
-[2020-06-01T16:15:50+08:00][sql] CONNECT:[ UseTime:0.223356s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T16:15:50+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.057021s ]
-[2020-06-01T16:16:01+08:00][error] [8]未定义数组下标: 1[D:\phpstudy_pro\WWW\my\fuye\php\app\ap\controller\v1\Token.php:21]
-[2020-06-01T16:16:01+08:00][sql] CONNECT:[ UseTime:0.091024s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T16:16:01+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.056716s ]
-[2020-06-01T16:30:46+08:00][error] [0]call_user_func() expects parameter 1 to be a valid callback, class 'app\middleware\Token' does not have a method 'handle'[D:\phpstudy_pro\WWW\my\fuye\php\vendor\topthink\framework\src\think\Middleware.php:142]
-[2020-06-01T16:30:46+08:00][sql] CONNECT:[ UseTime:0.204863s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T16:30:46+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.056047s ]
-[2020-06-01T16:31:39+08:00][error] [0]中间件方法必须返回Response对象实例[D:\phpstudy_pro\WWW\my\fuye\php\vendor\topthink\framework\src\think\Middleware.php:145]
-[2020-06-01T16:31:39+08:00][sql] CONNECT:[ UseTime:0.083655s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T16:31:39+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.056494s ]
-[2020-06-01T16:32:38+08:00][error] [0]中间件方法必须返回Response对象实例[D:\phpstudy_pro\WWW\my\fuye\php\vendor\topthink\framework\src\think\Middleware.php:145]
-[2020-06-01T16:32:38+08:00][sql] CONNECT:[ UseTime:0.225079s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T16:32:38+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.055341s ]
-[2020-06-01T16:34:19+08:00][error] [0]Argument 1 passed to think\Response::header() must be of the type array, object given, called in D:\phpstudy_pro\WWW\my\fuye\php\vendor\topthink\framework\src\helper.php on line 310[D:\phpstudy_pro\WWW\my\fuye\php\vendor\topthink\framework\src\think\Response.php:245]
-[2020-06-01T16:34:19+08:00][sql] CONNECT:[ UseTime:0.201587s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T16:34:19+08:00][sql] SHOW FULL COLUMNS FROM `lm_admin` [ RunTime:0.053932s ]
-[2020-06-01T17:08:30+08:00][sql] CONNECT:[ UseTime:0.254497s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:08:30+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.057271s ]
-[2020-06-01T17:08:30+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '123456' LIMIT 1 [ RunTime:0.056173s ]
-[2020-06-01T17:08:52+08:00][sql] CONNECT:[ UseTime:0.095390s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:08:52+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.098509s ]
-[2020-06-01T17:08:52+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '123456' LIMIT 1 [ RunTime:0.071879s ]
-[2020-06-01T17:09:33+08:00][sql] CONNECT:[ UseTime:0.277319s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:09:33+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.092494s ]
-[2020-06-01T17:09:33+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '123456' LIMIT 1 [ RunTime:0.053875s ]
-[2020-06-01T17:09:37+08:00][sql] CONNECT:[ UseTime:0.110765s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:09:37+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.053962s ]
-[2020-06-01T17:09:37+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '1234562' LIMIT 1 [ RunTime:0.052480s ]
-[2020-06-01T17:09:53+08:00][sql] CONNECT:[ UseTime:0.085938s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:09:53+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.074629s ]
-[2020-06-01T17:09:53+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` IS NULL LIMIT 1 [ RunTime:0.075393s ]
-[2020-06-01T17:09:53+08:00][error] [0]Argument 1 passed to think\Response::header() must be of the type array, string given, called in D:\phpstudy_pro\WWW\my\fuye\php\vendor\topthink\framework\src\helper.php on line 310[D:\phpstudy_pro\WWW\my\fuye\php\vendor\topthink\framework\src\think\Response.php:245]
-[2020-06-01T17:10:03+08:00][sql] CONNECT:[ UseTime:0.109852s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:10:03+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.053720s ]
-[2020-06-01T17:10:03+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` IS NULL LIMIT 1 [ RunTime:0.053836s ]
-[2020-06-01T17:12:37+08:00][sql] CONNECT:[ UseTime:0.138109s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:12:37+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.053326s ]
-[2020-06-01T17:12:37+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '1234562' LIMIT 1 [ RunTime:0.080202s ]
-[2020-06-01T17:12:58+08:00][sql] CONNECT:[ UseTime:0.096551s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:12:58+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.053959s ]
-[2020-06-01T17:12:58+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '1234562' LIMIT 1 [ RunTime:0.064742s ]
-[2020-06-01T17:14:20+08:00][sql] CONNECT:[ UseTime:0.100770s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:14:20+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.056606s ]
-[2020-06-01T17:14:20+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '123456' LIMIT 1 [ RunTime:0.110179s ]
-[2020-06-01T17:14:20+08:00][error] [2]password_hash() expects at least 2 parameters, 1 given[D:\phpstudy_pro\WWW\my\fuye\php\app\ap\controller\Login.php:29]
-[2020-06-01T17:15:18+08:00][sql] CONNECT:[ UseTime:0.244706s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:15:18+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.070645s ]
-[2020-06-01T17:15:18+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '123456' LIMIT 1 [ RunTime:0.068110s ]
-[2020-06-01T17:16:37+08:00][sql] CONNECT:[ UseTime:0.225298s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:16:37+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.054234s ]
-[2020-06-01T17:16:37+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '123456' LIMIT 1 [ RunTime:0.052924s ]
-[2020-06-01T17:16:42+08:00][sql] CONNECT:[ UseTime:0.077943s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:16:42+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.054183s ]
-[2020-06-01T17:16:42+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '123456' LIMIT 1 [ RunTime:0.076129s ]
-[2020-06-01T17:17:14+08:00][sql] CONNECT:[ UseTime:0.083433s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:17:14+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.058033s ]
-[2020-06-01T17:17:14+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '123456' LIMIT 1 [ RunTime:0.055862s ]
-[2020-06-01T17:17:29+08:00][sql] CONNECT:[ UseTime:0.082253s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:17:29+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.054648s ]
-[2020-06-01T17:17:29+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '123456' LIMIT 1 [ RunTime:0.075242s ]
-[2020-06-01T17:19:22+08:00][sql] CONNECT:[ UseTime:0.079929s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:19:22+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.054211s ]
-[2020-06-01T17:19:22+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '123456' LIMIT 1 [ RunTime:0.054918s ]
-[2020-06-01T17:20:08+08:00][sql] CONNECT:[ UseTime:0.113489s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:20:08+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.058335s ]
-[2020-06-01T17:20:08+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '123456' LIMIT 1 [ RunTime:0.057662s ]
-[2020-06-01T17:20:27+08:00][sql] CONNECT:[ UseTime:0.129718s ] mysql:host=rm-2ze41ef9a1037xwc8po.mysql.rds.aliyuncs.com;port=3306;dbname=any_anli;charset=utf8
-[2020-06-01T17:20:27+08:00][sql] SHOW FULL COLUMNS FROM `lm_user` [ RunTime:0.059733s ]
-[2020-06-01T17:20:27+08:00][sql] SELECT * FROM `lm_user` WHERE  `user` = '123456' LIMIT 1 [ RunTime:0.057312s ]
-[2020-06-01T17:21:17+08:00][error] [0]语法错误: unexpected 'pu' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)[D:\phpstudy_pro\WWW\my\fuye\php\app\ap\controller\Login.php:33]
-[2020-06-01T17:27:17+08:00][error] [0]语法错误: unexpected 'if' (T_IF)[D:\phpstudy_pro\WWW\my\fuye\php\app\ap\controller\Login.php:38]

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 4
php/runtime/cache/0b/dc60c1eb9bd2792cd1fa7f85d9c865.php


+ 0 - 4
php/runtime/cache/b5/0db2208db974a3bc060e4d7255aa98.php

@@ -1,4 +0,0 @@
-<?php
-//000000003600
- exit();?>
-a:11:{s:3:"url";s:14:"127.0.0.1:8000";s:13:"document_root";s:38:"D:\phpstudy_pro\WWW\cxy\bts\php\public";s:17:"document_protocol";s:8:"HTTP/1.1";s:9:"server_os";s:5:"WINNT";s:11:"server_port";s:4:"8000";s:9:"server_ip";s:9:"127.0.0.1";s:11:"server_soft";s:28:"PHP 7.3.4 Development Server";s:11:"server_file";s:49:"D:\phpstudy_pro\WWW\cxy\bts\php\public\router.php";s:11:"php_version";s:5:"7.3.4";s:13:"mysql_version";s:10:"5.6.41-log";s:15:"max_upload_size";s:5:"1024M";}

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 4
php/runtime/cache/ca/361393b5a02e8a62e8dd6d5373a473.php


php/runtime/session/sess_3f972420e5bb26ed1e69c519f52d4119 → php/runtime/session/sess_704f72601738fb3cc6160a8139fa9ef3


binární
php/runtime/session/sess_ab4726e650d984353a6b41b449abf891


+ 2 - 0
php/vendor/workerman/workerman.log

@@ -144,3 +144,5 @@ Stack trace:
 #16 D:\phpstudy_pro\WWW\small\syyxy\php\think(19): think\Console->run()
 #17 {main}
 2020-03-03 14:13:44 pid:1 Worker process terminated
+2020-06-05 14:38:43 pid:1 Worker process terminated
+2020-06-05 14:40:21 pid:1 Worker process terminated

+ 1 - 1
php/view/admin/contents/about.html

@@ -16,7 +16,7 @@
             <div class="layui-form-item">
                 <div class="layui-input-inline">
                     <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
-                    <a href="{:url('index')}" class="layui-btn layui-btn-primary">{:lang('back')}</a>
+                    <!--<a href="{:url('index')}" class="layui-btn layui-btn-primary">{:lang('back')}</a>-->
                 </div>
             </div>
         </form>

+ 2 - 3
php/view/admin/contents/add.html

@@ -66,9 +66,8 @@
         console.log("info",info)
         form.val("form", info);
         if(info){
-            $('#addPic').attr('src',info.img);
-            // console.log("text",info.text)
-            // $(".text-text").val(info.text)
+            $('#addPic').attr('src',info.image);
+            $("#avatar").val(info.image)
         }
 
         form.render();

+ 87 - 0
php/view/admin/contents/addhlep.html

@@ -0,0 +1,87 @@
+{include file="common/header"/}
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+
+        </fieldset>
+        <form class="layui-form layui-form-pane" lay-filter="form">
+            <input type="hidden" name="id" id="id">
+            <div class="layui-form-item">
+                <label class="layui-form-label">标题</label>
+                <div class="layui-input-inline">
+                    <input type="text" name="name" lay-verify="required" placeholder="{:lang('pleaseEnter')}昵称" class="layui-input">
+                </div>
+                <div class="layui-form-mid layui-word-aux">
+                    在4到25个字符之间。
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label class="layui-form-label">说明 </label>
+
+            </div>
+            <div class="layui-form-item">
+                <textarea name="text" id="container" class="text-text" style="width: 200px;height: 200px">{$info.text}</textarea>
+            </div>
+
+            <div class="layui-form-item">
+                <div class="layui-input-inline">
+                    <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
+                    <a href="{:url('hlep')}" class="layui-btn layui-btn-primary">{:lang('back')}</a>
+                </div>
+            </div>
+        </form>
+    </div>
+</div>
+
+{include file="common/footer"/}
+<!-- 配置文件 -->
+<script type="text/javascript" src="/static/plugins/ueditor/ueditor.config.js"></script>
+<!-- 编辑器源码文件 -->
+<script type="text/javascript" src="/static/plugins/ueditor/ueditor.all.js"></script>
+<!-- 实例化编辑器 -->
+
+<script type="text/javascript" >
+    var ue = UE.getEditor('container',{autoHeightEnabled: false,scaleEnabled:true,initialFrameHeight:400,initialFrameWidth:600});
+</script>
+
+<script>
+    layui.use(['form', 'layer','upload','laydate'], function () {
+        var form = layui.form, laydate=layui.laydate,layer = layui.layer,$= layui.jquery,upload = layui.upload;
+        var info = '';
+        //日期范围
+        laydate.render({
+            elem: '#date'
+            ,range: true
+        });
+
+        info = {:json_encode($info)};
+
+        console.log("info",info)
+        form.val("form", info);
+        if(info){
+            // $("#container").html(info.text)
+            // $('#addPic').attr('src',info.image);
+            // $("#avatar").val(info.image)
+        }
+
+        form.render();
+        form.on('submit(submit)', function (data) {
+            console.log("data",data.field)
+
+            loading =layer.load(1, {shade: [0.1,'#fff']});
+            $.post("addhlep", data.field, function (res) {
+                layer.close(loading);
+                if (res.code== 200) {
+                    layer.msg(res.msg, {time: 1800, icon: 1}, function () {
+                        // location.href = res.url;
+                        // location.href = res.url;
+                    });
+                } else {
+                    layer.msg(res.msg, {time: 1800, icon: 2});
+                }
+            },"json");
+
+        });
+
+    });
+</script>

+ 87 - 0
php/view/admin/contents/addmsg.html

@@ -0,0 +1,87 @@
+{include file="common/header"/}
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+
+        </fieldset>
+        <form class="layui-form layui-form-pane" lay-filter="form">
+            <input type="hidden" name="id" id="id">
+            <div class="layui-form-item">
+                <label class="layui-form-label">标题</label>
+                <div class="layui-input-inline">
+                    <input type="text" name="name" lay-verify="required" placeholder="{:lang('pleaseEnter')}昵称" class="layui-input">
+                </div>
+                <div class="layui-form-mid layui-word-aux">
+                    在4到25个字符之间。
+                </div>
+            </div>
+            <div class="layui-form-item">
+                <label class="layui-form-label">说明 </label>
+
+            </div>
+            <div class="layui-form-item">
+                <textarea name="text" id="container" class="text-text" style="width: 200px;height: 200px">{$info.text}</textarea>
+            </div>
+
+            <div class="layui-form-item">
+                <div class="layui-input-inline">
+                    <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
+                    <a href="{:url('sysmsg')}" class="layui-btn layui-btn-primary">{:lang('back')}</a>
+                </div>
+            </div>
+        </form>
+    </div>
+</div>
+
+{include file="common/footer"/}
+<!-- 配置文件 -->
+<script type="text/javascript" src="/static/plugins/ueditor/ueditor.config.js"></script>
+<!-- 编辑器源码文件 -->
+<script type="text/javascript" src="/static/plugins/ueditor/ueditor.all.js"></script>
+<!-- 实例化编辑器 -->
+
+<script type="text/javascript" >
+    var ue = UE.getEditor('container',{autoHeightEnabled: false,scaleEnabled:true,initialFrameHeight:400,initialFrameWidth:600});
+</script>
+
+<script>
+    layui.use(['form', 'layer','upload','laydate'], function () {
+        var form = layui.form, laydate=layui.laydate,layer = layui.layer,$= layui.jquery,upload = layui.upload;
+        var info = '';
+        //日期范围
+        laydate.render({
+            elem: '#date'
+            ,range: true
+        });
+
+        info = {:json_encode($info)};
+
+        console.log("info",info)
+        form.val("form", info);
+        if(info){
+            // $("#container").html(info.text)
+            // $('#addPic').attr('src',info.image);
+            // $("#avatar").val(info.image)
+        }
+
+        form.render();
+        form.on('submit(submit)', function (data) {
+            console.log("data",data.field)
+
+            loading =layer.load(1, {shade: [0.1,'#fff']});
+            $.post("", data.field, function (res) {
+                layer.close(loading);
+                if (res.code== 200) {
+                    layer.msg(res.msg, {time: 1800, icon: 1}, function () {
+                        // location.href = res.url;
+                        // location.href = res.url;
+                    });
+                } else {
+                    layer.msg(res.msg, {time: 1800, icon: 2});
+                }
+            },"json");
+
+        });
+
+    });
+</script>

+ 12 - 4
php/view/admin/contents/feedback.html

@@ -47,7 +47,13 @@
         </table>
     </div>
 </div>
+<script type="text/html" id="image">
 
+    {{# layui.each(d.image, function(index, item){ }}
+    <img src="/static/admin/images/image.gif"   onmouseover="layer.tips('<img src={{item}}>',this,{tips: [1, '#fff']});" onmouseout="layer.closeAll();">
+    {{# });
+    }}
+</script>
 {include file="common/footer"/}
 <script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
 <script>
@@ -73,8 +79,10 @@
                 cols: [[
                     // {checkbox: true, fixed: true},
                     {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
+                    {field: 'user_id', title: '用户id', width: 120, sort: true},
                     {field: 'name', title: '反馈人名', width: 120, sort: true},
-                    {field: 'center', title: '内容', width: 400, sort: true},
+                    {field: 'content', title: '内容', width: 400, sort: true},
+                    {field: 'image', title: '图片', width: 400, templet: '#image'},
 
                 ]],
                 limits: [10, 15, 20, 25, 50, 100],
@@ -120,9 +128,9 @@
                 tableIn.reload({page: {page: 1}, where: {name: $keys}});
 
             })
-            setInterval(function () {
-                tableIn.reload();
-            }, 50000)
+            // setInterval(function () {
+            //     tableIn.reload();
+            // }, 50000)
 
 
 

+ 137 - 0
php/view/admin/contents/hlep.html

@@ -0,0 +1,137 @@
+{include file="common/header"/}
+<style>
+    .upload-wrap {
+        position: relative;
+        display: inline-block;
+        overflow: hidden;
+        border: 1px solid #2d78f4;
+        border-radius: 3px;
+    }
+
+    .upload-wrap .file-ele {
+        position: absolute;
+        top: 0;
+        right: 0;
+        opacity: 0;
+        height: 100%;
+        width: 100%;
+        cursor: pointer;
+
+    }
+
+    .upload-wrap .file-open {
+        width: 90px;
+        height: 30px;
+        line-height: 30px;
+        text-align: center;
+        color: #fff;
+        background: #3385ff;
+    }
+
+</style>
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+            <legend>常见问题</legend>
+            <blockquote class="layui-elem-quote">
+                <div class="LM-table">
+                    <a href="{:url('addhlep')}" class="layui-btn layui-btn-sm layui-btn-warm">添加常见问题</a>
+                </div>
+
+            </blockquote>
+
+        </fieldset>
+
+        <table class="layui-table" id="list" lay-filter="list">
+
+        </table>
+    </div>
+</div>
+<script type="text/html" id="barDemo">
+    <input type="button" class="layui-btn layui-btn-xs" lay-event="del" value="删除">
+    <a href="addhlep?id={{d.id}}" class="layui-btn layui-btn-xs" >编辑</a>
+</script>
+{include file="common/footer"/}
+<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
+<script>
+
+    layui.use(['form', 'table'], function () {
+        var $ = layui.jquery,
+            form = layui.form,
+            table = layui.table;
+
+        var tableIn = table.render({
+            elem: '#list',
+            url: '{:url("hlep")}',
+            method: 'post',
+            title: '反馈意见',
+            loading: true,
+            toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
+
+            defaultToolbar: ['filter', 'exports', 'print', "excel", { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
+                title: '提示'
+                , layEvent: 'LAYTABLE_TIPS'
+                , icon: 'layui-icon-tips'
+            }],
+            cols: [[
+                // {checkbox: true, fixed: true},
+                {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
+                {field: 'name', title: '标题', width: 200, sort: true},
+                {field: 'text', title: '说明', width: 500, sort: true},
+                {title: '操作', width: 150, align: "center", toolbar: "#barDemo"},
+            ]],
+            limits: [10, 15, 20, 25, 50, 100],
+            limit: 10,
+            page: true
+        });
+
+
+        table.on('tool(list)', function (obj) {
+            var data = obj.data;
+            let event = obj.event;
+            switch (event) {
+                case "del":
+                    layer.confirm('确定要删除吗', function (index) {
+                        loading = layer.load(1, {shade: [0.1, '#fff']});
+                        $.post("{:url('del_hlep')}", {id: data.id}, function (res) {
+                            layer.close(loading);
+                            layer.close(index);
+                            if (res.code == 200) {
+                                layer.msg(res.msg, {time: 1000, icon: 1});
+                                tableIn.reload();
+                            } else {
+                                layer.msg(res.msg, {time: 1000, icon: 2});
+                            }
+                        }, "json")
+                    })
+                    break;
+
+            }
+
+
+        });
+
+        form.on('switch(status)', function (data) {
+
+        });
+
+        $('#search').click(function () {
+            var $keys = $('#name').val();
+            if (!$keys) {
+                return layer.msg('请输入关键词');
+            }
+
+            tableIn.reload({page: {page: 1}, where: {name: $keys}});
+
+        })
+        // setInterval(function () {
+        //     tableIn.reload();
+        // }, 50000)
+
+
+
+
+
+    });
+
+</script>

+ 5 - 5
php/view/admin/contents/index.html

@@ -63,7 +63,7 @@
     </div>
 </div>
 <script type="text/html" id="image">
-    <img src="{{d.img}}" width="100px" height="100px">
+    <img src="{{d.image}}" width="100px" height="100px"  onmouseover="layer.tips('<img src={{d.image}}>',this,{tips: [1, '#fff']});" onmouseout="layer.closeAll();">
 </script>
 <script type="text/html" id="barDemo">
     <input type="button" class="layui-btn layui-btn-xs" lay-event="del" value="删除">
@@ -93,7 +93,7 @@
                 cols: [[
                     // {checkbox: true, fixed: true},
                     {field: 'id', title: 'ID', width: 80, sort: true},
-                    {field: 'img', title: '图片', width: 150, height:200,templet: '#image'},
+                    {field: 'image', title: '图片', width: 150, height:200,templet: '#image'},
                     {field: 'text', title: '内容', width: 150},
 
 
@@ -146,9 +146,9 @@
                 tableIn.reload({page: {page: 1}, where: {name: $keys}});
 
             })
-            setInterval(function () {
-                tableIn.reload();
-            }, 50000)
+            // setInterval(function () {
+            //     tableIn.reload();
+            // }, 50000)
 
 
 

+ 111 - 0
php/view/admin/contents/push.html

@@ -0,0 +1,111 @@
+{include file="common/header"/}
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+
+        </fieldset>
+        <form class="layui-form layui-form-pane" lay-filter="form">
+            <input type="hidden" name="id" id="id">
+            <div class="layui-form-item">
+                <label class="layui-form-label">usdt钱包地址</label>
+                <div class="layui-input-inline">
+                    <input type="text" name="usdt" lay-verify="required" class="layui-input">
+                </div>
+
+            </div>
+            <div class="layui-form-item">
+                <label class="layui-form-label">收款二维码</label>
+                <input type="hidden" name="code" id="logo">
+                <div class="layui-input-block">
+                    <div class="layui-upload">
+                        <button type="button" class="layui-btn layui-btn-primary" id="logoBtn"><i
+                                class="icon icon-upload3"></i>{:lang('upload')}
+                        </button>
+                        <div class="layui-upload-list">
+                            <img class="layui-upload-img" id="site_logo">
+                            <p id="demoText"></p>
+                        </div>
+                    </div>
+                </div>
+            </div>
+
+
+            <div class="layui-form-item">
+                <div class="layui-input-inline">
+                    <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
+                    <!--<a href="{:url('hlep')}" class="layui-btn layui-btn-primary">{:lang('back')}</a>-->
+                </div>
+            </div>
+        </form>
+    </div>
+</div>
+
+{include file="common/footer"/}
+
+<script>
+    layui.use(['form', 'layer','upload','laydate'], function () {
+        var form = layui.form, laydate=layui.laydate,layer = layui.layer,$= layui.jquery,upload = layui.upload;
+        var info = '';
+        var config = {$config|raw};
+
+        console.log("config",config)
+        //日期范围
+        laydate.render({
+            elem: '#date'
+            ,range: true
+        });
+
+        form.val("form", config);
+        $('#site_logo').attr('src',config.code);
+        if(info){
+
+        }
+
+        form.render();
+        form.on('submit(submit)', function (data) {
+            console.log("data",data.field)
+
+            loading =layer.load(1, {shade: [0.1,'#fff']});
+            $.post("push", data.field, function (res) {
+                layer.close(loading);
+                if (res.code== 200) {
+                    layer.msg(res.msg, {time: 1800, icon: 1}, function () {
+                        // location.href = res.url;
+                        // location.href = res.url;
+                    });
+                } else {
+                    layer.msg(res.msg, {time: 1800, icon: 2});
+                }
+            },"json");
+
+        });
+        //普通图片上传
+        var uploadInst = upload.render({
+            elem: '#logoBtn'
+            ,url: '{:url("uploads/uploads")}'
+            ,before: function(obj){
+                //预读本地文件示例,不支持ie8
+                obj.preview(function(index, file, result){
+                    $('#site_logo').attr('src', result); //图片链接(base64)
+                });
+            }
+            ,done: function(res){
+                //上传成功
+                if(res.code>0){
+                    $('#logo').val(res.url);
+                }else{
+                    //如果上传失败
+                    return layer.msg('上传失败');
+                }
+            }
+            ,error: function(){
+                //演示失败状态,并实现重传
+                var demoText = $('#demoText');
+                demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-mini demo-reload">重试</a>');
+                demoText.find('.demo-reload').on('click', function(){
+                    uploadInst.upload();
+                });
+            }
+        });
+    });
+</script>

+ 157 - 0
php/view/admin/contents/sysmsg.html

@@ -0,0 +1,157 @@
+{include file="common/header"/}
+<style>
+    .upload-wrap {
+        position: relative;
+        display: inline-block;
+        overflow: hidden;
+        border: 1px solid #2d78f4;
+        border-radius: 3px;
+    }
+
+    .upload-wrap .file-ele {
+        position: absolute;
+        top: 0;
+        right: 0;
+        opacity: 0;
+        height: 100%;
+        width: 100%;
+        cursor: pointer;
+
+    }
+
+    .upload-wrap .file-open {
+        width: 90px;
+        height: 30px;
+        line-height: 30px;
+        text-align: center;
+        color: #fff;
+        background: #3385ff;
+    }
+
+</style>
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+            <legend>系统消息</legend>
+            <blockquote class="layui-elem-quote">
+                <div class="LM-table">
+                    <a href="{:url('addmsg')}" class="layui-btn layui-btn-sm layui-btn-warm">添加系统消息</a>
+                </div>
+
+            </blockquote>
+
+        </fieldset>
+
+        <table class="layui-table" id="list" lay-filter="list">
+
+        </table>
+    </div>
+</div>
+
+<script type="text/html" id="is_show">
+    <input type="checkbox" name="switch" value="{{d.id}}" lay-filter="is_show" lay-skin="switch" lay-text="开启|关闭" {{
+           d.status== 0 ? 'checked' : '' }}>
+</script>
+<script type="text/html" id="barDemo">
+    <input type="button" class="layui-btn layui-btn-xs" lay-event="del" value="删除">
+    <a href="addmsg?id={{d.id}}" class="layui-btn layui-btn-xs" >编辑</a>
+</script>
+{include file="common/footer"/}
+<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
+<script>
+
+    layui.use(['form', 'table'], function () {
+        var $ = layui.jquery,
+            form = layui.form,
+            table = layui.table;
+
+        var tableIn = table.render({
+            elem: '#list',
+            url: '{:url("sysmsg")}',
+            method: 'post',
+            title: '反馈意见',
+            loading: true,
+            toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
+
+            defaultToolbar: ['filter', 'exports', 'print', "excel", { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
+                title: '提示'
+                , layEvent: 'LAYTABLE_TIPS'
+                , icon: 'layui-icon-tips'
+            }],
+            cols: [[
+                // {checkbox: true, fixed: true},
+                {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
+                {field: 'name', title: '标题', width: 200, sort: true},
+                {field: 'status', title: '是否显示', width: 100, toolbar: "#is_show"},
+                {field: 'text', title: '说明', width: 500, sort: true},
+                {title: '操作', width: 150, align: "center", toolbar: "#barDemo"},
+            ]],
+            limits: [10, 15, 20, 25, 50, 100],
+            limit: 10,
+            page: true
+        });
+
+
+        table.on('tool(list)', function (obj) {
+            var data = obj.data;
+            let event = obj.event;
+            switch (event) {
+                case "del":
+                    layer.confirm('确定要删除吗', function (index) {
+                        loading = layer.load(1, {shade: [0.1, '#fff']});
+                        $.post("{:url('del_msg')}", {id: data.id}, function (res) {
+                            layer.close(loading);
+                            layer.close(index);
+                            if (res.code == 200) {
+                                layer.msg(res.msg, {time: 1000, icon: 1});
+                                tableIn.reload();
+                            } else {
+                                layer.msg(res.msg, {time: 1000, icon: 2});
+                            }
+                        }, "json")
+                    })
+                    break;
+
+            }
+
+
+        });
+
+        // 是否显示
+        form.on('switch(is_show)', function (obj) {
+            var id = this.value;
+            var auth_open = obj.elem.checked === true ? 0 : 1;
+            let loading = layer.load(1, {shade: [0.1, '#fff']});
+            $.post("{:url('update_nocice_status')}", {'id': id, 'status': auth_open}, function (res) {
+                layer.close(loading);
+                // layer.close(index)
+                console.log(res)
+                if (res.code == 200) {
+                    layer.msg(res.msg, {time: 1000, icon: 1});
+                    // tableIn.reload();
+                } else {
+                    layer.msg(res.msg, {time: 1000, icon: 2});
+                }
+            }, "json")
+        });
+
+        $('#search').click(function () {
+            var $keys = $('#name').val();
+            if (!$keys) {
+                return layer.msg('请输入关键词');
+            }
+
+            tableIn.reload({page: {page: 1}, where: {name: $keys}});
+
+        })
+        // setInterval(function () {
+        //     tableIn.reload();
+        // }, 50000)
+
+
+
+
+
+    });
+
+</script>

+ 141 - 0
php/view/admin/finance/daili.html

@@ -0,0 +1,141 @@
+{include file="common/header"/}
+<style>
+    .upload-wrap {
+        position: relative;
+        display: inline-block;
+        overflow: hidden;
+        border: 1px solid #2d78f4;
+        border-radius: 3px;
+    }
+
+    .upload-wrap .file-ele {
+        position: absolute;
+        top: 0;
+        right: 0;
+        opacity: 0;
+        height: 100%;
+        width: 100%;
+        cursor: pointer;
+
+    }
+
+    .upload-wrap .file-open {
+        width: 90px;
+        height: 30px;
+        line-height: 30px;
+        text-align: center;
+        color: #fff;
+        background: #3385ff;
+    }
+
+</style>
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+            <legend>代理收入</legend>
+            <blockquote class="layui-elem-quote">
+                <div class="LM-table">
+
+                </div>
+
+            </blockquote>
+
+        </fieldset>
+
+        <table class="layui-table" id="list" lay-filter="list">
+
+        </table>
+    </div>
+</div>
+<script type="text/html" id="image">
+
+    {{# layui.each(d.image, function(index, item){ }}
+    <img src="/static/admin/images/image.gif"   onmouseover="layer.tips('<img src={{item}}>',this,{tips: [1, '#fff']});" onmouseout="layer.closeAll();">
+    {{# });
+    }}
+</script>
+{include file="common/footer"/}
+<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
+<script>
+
+    layui.use(['form', 'table'], function () {
+        var $ = layui.jquery,
+            form = layui.form,
+            table = layui.table;
+
+        var tableIn = table.render({
+            elem: '#list',
+            url: '{:url("daili")}',
+            method: 'post',
+            title: '反馈意见',
+            loading: true,
+            toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
+
+            defaultToolbar: ['filter', 'exports', 'print', "excel", { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
+                title: '提示'
+                , layEvent: 'LAYTABLE_TIPS'
+                , icon: 'layui-icon-tips'
+            }],
+            cols: [[
+                // {checkbox: true, fixed: true},
+                {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
+                {field: 'user_id', title: '用户id', width: 120, sort: true},
+                {field: 'user_name', title: '用户', width: 120, sort: true},
+                {field: 'name', title: '说明', width: 300, sort: true},
+                {field: 'money', title: '金额', width: 120, sort: true},
+                {field: 'status', title: '0 增加1 减少', width:200, sort: true},
+            ]],
+            limits: [10, 15, 20, 25, 50, 100],
+            limit: 10,
+            page: true
+        });
+
+
+        table.on('tool(list)', function (obj) {
+            var data = obj.data;
+            let event = obj.event;
+            switch (event) {
+                case "check":
+                    layer.confirm('确定要进行这样的操作码', function (index) {
+                        loading = layer.load(1, {shade: [0.1, '#fff']});
+                        $.post("{:url('status')}", {id: data.id}, function (res) {
+                            layer.close(loading);
+                            layer.close(index);
+                            if (res.code == 1) {
+                                layer.msg(res.msg, {time: 1000, icon: 1});
+                                tableIn.reload();
+                            } else {
+                                layer.msg(res.msg, {time: 1000, icon: 2});
+                            }
+                        }, "json")
+                    })
+                    break;
+            }
+
+
+        });
+
+        form.on('switch(status)', function (data) {
+
+        });
+
+        $('#search').click(function () {
+            var $keys = $('#name').val();
+            if (!$keys) {
+                return layer.msg('请输入关键词');
+            }
+
+            tableIn.reload({page: {page: 1}, where: {name: $keys}});
+
+        })
+        // setInterval(function () {
+        //     tableIn.reload();
+        // }, 50000)
+
+
+
+
+
+    });
+
+</script>

+ 157 - 0
php/view/admin/finance/shenhe.html

@@ -0,0 +1,157 @@
+{include file="common/header"/}
+<style>
+    .upload-wrap {
+        position: relative;
+        display: inline-block;
+        overflow: hidden;
+        border: 1px solid #2d78f4;
+        border-radius: 3px;
+    }
+
+    .upload-wrap .file-ele {
+        position: absolute;
+        top: 0;
+        right: 0;
+        opacity: 0;
+        height: 100%;
+        width: 100%;
+        cursor: pointer;
+
+    }
+
+    .upload-wrap .file-open {
+        width: 90px;
+        height: 30px;
+        line-height: 30px;
+        text-align: center;
+        color: #fff;
+        background: #3385ff;
+    }
+
+</style>
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+            <legend>财务统计</legend>
+            <blockquote class="layui-elem-quote">
+                <div class="LM-table">
+
+                </div>
+
+            </blockquote>
+
+        </fieldset>
+
+        <table class="layui-table" id="list" lay-filter="list">
+
+        </table>
+    </div>
+</div>
+
+
+<script type="text/html" id="barDemo">
+    <input type="button" class="layui-btn layui-btn-xs" lay-event="tongguo" value="审核通过">
+    <input type="button" class="layui-btn layui-btn-danger" lay-event="jujue" value="拒绝">
+</script>
+{include file="common/footer"/}
+<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
+<script>
+
+    layui.use(['form', 'table'], function () {
+        var $ = layui.jquery,
+            form = layui.form,
+            table = layui.table;
+
+        var tableIn = table.render({
+            elem: '#list',
+            url: '{:url("shenhe")}',
+            method: 'post',
+            title: '反馈意见',
+            loading: true,
+            toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
+
+            defaultToolbar: ['filter', 'exports', 'print', "excel", { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
+                title: '提示'
+                , layEvent: 'LAYTABLE_TIPS'
+                , icon: 'layui-icon-tips'
+            }],
+            cols: [[
+                // {checkbox: true, fixed: true},
+                {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
+                {field: 'user_id', title: '用户id', width: 120, sort: true},
+                {field: 'user_name', title: '用户', width: 120, sort: true},
+                {field: 'money', title: '充值金额', width: 120, sort: true},
+                {field: 'actual_money', title: '实际到账金额', width: 200, sort: true},
+                {field: 'charge_money', title: '手续费', width: 120, sort: true},
+                {field: 'status', title: '状态', width:200, sort: true},
+                {title: '操作', width: 150, align: "center", toolbar: "#barDemo"},
+            ]],
+            limits: [10, 15, 20, 25, 50, 100],
+            limit: 10,
+            page: true
+        });
+
+
+        table.on('tool(list)', function (obj) {
+            var data = obj.data;
+            let event = obj.event;
+            switch (event) {
+                case "jujue":
+                    layer.confirm('您确定要拒绝吗', function (index) {
+                        loading = layer.load(1, {shade: [0.1, '#fff']});
+                        $.post("{:url('jujue')}", {id: data.id}, function (res) {
+                            layer.close(loading);
+                            layer.close(index);
+                            if (res.code == 200) {
+                                layer.msg(res.msg, {time: 1000, icon: 1});
+                                tableIn.reload();
+                            } else {
+                                layer.msg(res.msg, {time: 1000, icon: 2});
+                            }
+                        }, "json")
+                    })
+                    break;
+                case "tongguo":
+                    // layer.confirm('确定要进行这样的操作码', function (index) {
+                        loading = layer.load(1, {shade: [0.1, '#fff']});
+                        $.post("{:url('czcg')}", {id: data.id}, function (res) {
+                            layer.close(loading);
+                            // layer.close(index);
+                            if (res.code == 200) {
+                                layer.msg(res.msg, {time: 1000, icon: 1});
+                                tableIn.reload();
+                            } else {
+                                layer.msg(res.msg, {time: 1000, icon: 2});
+                            }
+                        }, "json")
+                    // })
+                    break;
+            }
+
+
+        });
+
+        form.on('switch(status)', function (data) {
+
+        });
+
+        $('#search').click(function () {
+            var $keys = $('#name').val();
+            if (!$keys) {
+                return layer.msg('请输入关键词');
+            }
+
+            tableIn.reload({page: {page: 1}, where: {name: $keys}});
+
+        })
+        // setInterval(function () {
+        //     tableIn.reload();
+        // }, 50000)
+
+
+
+
+
+    });
+
+</script>

+ 141 - 0
php/view/admin/finance/tongji.html

@@ -0,0 +1,141 @@
+{include file="common/header"/}
+<style>
+    .upload-wrap {
+        position: relative;
+        display: inline-block;
+        overflow: hidden;
+        border: 1px solid #2d78f4;
+        border-radius: 3px;
+    }
+
+    .upload-wrap .file-ele {
+        position: absolute;
+        top: 0;
+        right: 0;
+        opacity: 0;
+        height: 100%;
+        width: 100%;
+        cursor: pointer;
+
+    }
+
+    .upload-wrap .file-open {
+        width: 90px;
+        height: 30px;
+        line-height: 30px;
+        text-align: center;
+        color: #fff;
+        background: #3385ff;
+    }
+
+</style>
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+            <legend>财务统计</legend>
+            <blockquote class="layui-elem-quote">
+                <div class="LM-table">
+
+                </div>
+
+            </blockquote>
+
+        </fieldset>
+
+        <table class="layui-table" id="list" lay-filter="list">
+
+        </table>
+    </div>
+</div>
+<script type="text/html" id="image">
+
+    {{# layui.each(d.image, function(index, item){ }}
+    <img src="/static/admin/images/image.gif"   onmouseover="layer.tips('<img src={{item}}>',this,{tips: [1, '#fff']});" onmouseout="layer.closeAll();">
+    {{# });
+    }}
+</script>
+{include file="common/footer"/}
+<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
+<script>
+
+    layui.use(['form', 'table'], function () {
+        var $ = layui.jquery,
+            form = layui.form,
+            table = layui.table;
+
+        var tableIn = table.render({
+            elem: '#list',
+            url: '{:url("tongji")}',
+            method: 'post',
+            title: '反馈意见',
+            loading: true,
+            toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
+
+            defaultToolbar: ['filter', 'exports', 'print', "excel", { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
+                title: '提示'
+                , layEvent: 'LAYTABLE_TIPS'
+                , icon: 'layui-icon-tips'
+            }],
+            cols: [[
+                // {checkbox: true, fixed: true},
+                {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
+                {field: 'user_id', title: '用户id', width: 120, sort: true},
+                {field: 'user_name', title: '用户', width: 120, sort: true},
+                {field: 'name', title: '说明', width: 300, sort: true},
+                {field: 'money', title: '金额', width: 120, sort: true},
+                {field: 'status', title: '0 增加1 减少', width:200, sort: true},
+            ]],
+            limits: [10, 15, 20, 25, 50, 100],
+            limit: 10,
+            page: true
+        });
+
+
+        table.on('tool(list)', function (obj) {
+            var data = obj.data;
+            let event = obj.event;
+            switch (event) {
+                case "check":
+                    layer.confirm('确定要进行这样的操作码', function (index) {
+                        loading = layer.load(1, {shade: [0.1, '#fff']});
+                        $.post("{:url('status')}", {id: data.id}, function (res) {
+                            layer.close(loading);
+                            layer.close(index);
+                            if (res.code == 1) {
+                                layer.msg(res.msg, {time: 1000, icon: 1});
+                                tableIn.reload();
+                            } else {
+                                layer.msg(res.msg, {time: 1000, icon: 2});
+                            }
+                        }, "json")
+                    })
+                    break;
+            }
+
+
+        });
+
+        form.on('switch(status)', function (data) {
+
+        });
+
+        $('#search').click(function () {
+            var $keys = $('#name').val();
+            if (!$keys) {
+                return layer.msg('请输入关键词');
+            }
+
+            tableIn.reload({page: {page: 1}, where: {name: $keys}});
+
+        })
+        // setInterval(function () {
+        //     tableIn.reload();
+        // }, 50000)
+
+
+
+
+
+    });
+
+</script>

+ 141 - 0
php/view/admin/finance/zhengshon.html

@@ -0,0 +1,141 @@
+{include file="common/header"/}
+<style>
+    .upload-wrap {
+        position: relative;
+        display: inline-block;
+        overflow: hidden;
+        border: 1px solid #2d78f4;
+        border-radius: 3px;
+    }
+
+    .upload-wrap .file-ele {
+        position: absolute;
+        top: 0;
+        right: 0;
+        opacity: 0;
+        height: 100%;
+        width: 100%;
+        cursor: pointer;
+
+    }
+
+    .upload-wrap .file-open {
+        width: 90px;
+        height: 30px;
+        line-height: 30px;
+        text-align: center;
+        color: #fff;
+        background: #3385ff;
+    }
+
+</style>
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+            <legend>后台赠送</legend>
+            <blockquote class="layui-elem-quote">
+                <div class="LM-table">
+
+                </div>
+
+            </blockquote>
+
+        </fieldset>
+
+        <table class="layui-table" id="list" lay-filter="list">
+
+        </table>
+    </div>
+</div>
+<script type="text/html" id="image">
+
+    {{# layui.each(d.image, function(index, item){ }}
+    <img src="/static/admin/images/image.gif"   onmouseover="layer.tips('<img src={{item}}>',this,{tips: [1, '#fff']});" onmouseout="layer.closeAll();">
+    {{# });
+    }}
+</script>
+{include file="common/footer"/}
+<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
+<script>
+
+    layui.use(['form', 'table'], function () {
+        var $ = layui.jquery,
+            form = layui.form,
+            table = layui.table;
+
+        var tableIn = table.render({
+            elem: '#list',
+            url: '{:url("zhengshon")}',
+            method: 'post',
+            title: '反馈意见',
+            loading: true,
+            toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
+
+            defaultToolbar: ['filter', 'exports', 'print', "excel", { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
+                title: '提示'
+                , layEvent: 'LAYTABLE_TIPS'
+                , icon: 'layui-icon-tips'
+            }],
+            cols: [[
+                // {checkbox: true, fixed: true},
+                {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
+                {field: 'user_id', title: '用户id', width: 120, sort: true},
+                {field: 'user_name', title: '用户', width: 120, sort: true},
+                {field: 'name', title: '说明', width: 300, sort: true},
+                {field: 'money', title: '金额', width: 120, sort: true},
+                {field: 'status', title: '0 增加1 减少', width:200, sort: true},
+            ]],
+            limits: [10, 15, 20, 25, 50, 100],
+            limit: 10,
+            page: true
+        });
+
+
+        table.on('tool(list)', function (obj) {
+            var data = obj.data;
+            let event = obj.event;
+            switch (event) {
+                case "check":
+                    layer.confirm('确定要进行这样的操作码', function (index) {
+                        loading = layer.load(1, {shade: [0.1, '#fff']});
+                        $.post("{:url('status')}", {id: data.id}, function (res) {
+                            layer.close(loading);
+                            layer.close(index);
+                            if (res.code == 1) {
+                                layer.msg(res.msg, {time: 1000, icon: 1});
+                                tableIn.reload();
+                            } else {
+                                layer.msg(res.msg, {time: 1000, icon: 2});
+                            }
+                        }, "json")
+                    })
+                    break;
+            }
+
+
+        });
+
+        form.on('switch(status)', function (data) {
+
+        });
+
+        $('#search').click(function () {
+            var $keys = $('#name').val();
+            if (!$keys) {
+                return layer.msg('请输入关键词');
+            }
+
+            tableIn.reload({page: {page: 1}, where: {name: $keys}});
+
+        })
+        // setInterval(function () {
+        //     tableIn.reload();
+        // }, 50000)
+
+
+
+
+
+    });
+
+</script>

+ 141 - 0
php/view/admin/order/buy.html

@@ -0,0 +1,141 @@
+{include file="common/header"/}
+<style>
+    .upload-wrap {
+        position: relative;
+        display: inline-block;
+        overflow: hidden;
+        border: 1px solid #2d78f4;
+        border-radius: 3px;
+    }
+
+    .upload-wrap .file-ele {
+        position: absolute;
+        top: 0;
+        right: 0;
+        opacity: 0;
+        height: 100%;
+        width: 100%;
+        cursor: pointer;
+
+    }
+
+    .upload-wrap .file-open {
+        width: 90px;
+        height: 30px;
+        line-height: 30px;
+        text-align: center;
+        color: #fff;
+        background: #3385ff;
+    }
+
+</style>
+<div class="LM-container">
+    <div class="LM-main">
+        <fieldset class="layui-elem-field layui-field-title">
+            <legend>求购订单列表</legend>
+            <blockquote class="layui-elem-quote">
+                <div class="LM-table">
+
+                </div>
+
+            </blockquote>
+
+        </fieldset>
+
+        <table class="layui-table" id="list" lay-filter="list">
+
+        </table>
+    </div>
+</div>
+<script type="text/html" id="barDemo">
+    <input type="button" class="layui-btn layui-btn-xs" lay-event="del" value="删除">
+    <!--<a href="addhlep?id={{d.id}}" class="layui-btn layui-btn-xs" >编辑</a>-->
+</script>
+{include file="common/footer"/}
+<script src="/static/plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
+<script>
+
+    layui.use(['form', 'table'], function () {
+        var $ = layui.jquery,
+            form = layui.form,
+            table = layui.table;
+
+        var tableIn = table.render({
+            elem: '#list',
+            url: '{:url("buy")}',
+            method: 'post',
+            title: '反馈意见',
+            loading: true,
+            toolbar: '#toolbar', //开启头部工具栏,并为其绑定左侧模板
+
+            defaultToolbar: ['filter', 'exports', 'print', "excel", { //自定义头部工具栏右侧图标。如无需自定义,去除该参数即可
+                title: '提示'
+                , layEvent: 'LAYTABLE_TIPS'
+                , icon: 'layui-icon-tips'
+            }],
+            cols: [[
+                // {checkbox: true, fixed: true},
+                {field: 'id', title: 'ID', width: 80, fixed: true, sort: true},
+                {field: 'buy_user', title: '购买用户id', width: 120, sort: true},
+
+                {field: 'user_name', title: '用户', width: 120, sort: true},
+                {field: 'number', title: '发布数量', width: 120, sort: true},
+                {field: 'enlarge_quota', title: '放大额度', width: 120, sort: true},
+                {field: 'order', title: '订单编号', width: 120, sort: true},
+                {field: 'add_time', title: '添加时间', width: 120, sort: true},
+                {title: '操作', width: 150, align: "center", toolbar: "#barDemo"},
+            ]],
+            limits: [10, 15, 20, 25, 50, 100],
+            limit: 10,
+            page: true
+        });
+
+
+        table.on('tool(list)', function (obj) {
+            var data = obj.data;
+            let event = obj.event;
+            switch (event) {
+                case "check":
+                    layer.confirm('确定要进行这样的操作码', function (index) {
+                        loading = layer.load(1, {shade: [0.1, '#fff']});
+                        $.post("{:url('status')}", {id: data.id}, function (res) {
+                            layer.close(loading);
+                            layer.close(index);
+                            if (res.code == 1) {
+                                layer.msg(res.msg, {time: 1000, icon: 1});
+                                tableIn.reload();
+                            } else {
+                                layer.msg(res.msg, {time: 1000, icon: 2});
+                            }
+                        }, "json")
+                    })
+                    break;
+            }
+
+
+        });
+
+        form.on('switch(status)', function (data) {
+
+        });
+
+        $('#search').click(function () {
+            var $keys = $('#name').val();
+            if (!$keys) {
+                return layer.msg('请输入关键词');
+            }
+
+            tableIn.reload({page: {page: 1}, where: {name: $keys}});
+
+        })
+        // setInterval(function () {
+        //     tableIn.reload();
+        // }, 50000)
+
+
+
+
+
+    });
+
+</script>

+ 1 - 1
php/view/admin/system/index.html

@@ -244,7 +244,7 @@
     layui.use(['form', 'layer','upload','element'], function () {
         var form = layui.form,layer = layui.layer,upload = layui.upload,$ = layui.jquery,element = layui.element;
         var config = {$config|raw};
-
+        console.log(config)
         form.val("form-config", config);
         $('#site_logo').attr('src',config.site_logo);