作者 郭盛
1 个管道 的构建 通过 耗费 10 秒

修改授权书

... ... @@ -2,7 +2,9 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="e93f11c2-a7d9-4d35-8b1c-8dd18e7f5fef" name="Default" comment="">
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/application/api/controller/Pay.php" afterPath="$PROJECT_DIR$/application/api/controller/Pay.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/application/admin/view/pic/edit.html" afterPath="$PROJECT_DIR$/application/admin/view/pic/edit.html" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/application/api/controller/User.php" afterPath="$PROJECT_DIR$/application/api/controller/User.php" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
... ... @@ -13,13 +15,16 @@
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="User.php" pinned="false" current-in-tab="false">
<file leaf-file-name="User.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/application/api/controller/User.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2100">
<caret line="774" column="5" lean-forward="false" selection-start-line="774" selection-start-column="5" selection-end-line="774" selection-end-column="5" />
<state relative-caret-position="275">
<caret line="563" column="0" lean-forward="true" selection-start-line="563" selection-start-column="0" selection-end-line="563" selection-end-column="0" />
<folding>
<element signature="e#365#484#0#PHP" expanded="false" />
<element signature="e#490#1228#0#PHP" expanded="false" />
<element signature="e#1233#2896#0#PHP" expanded="false" />
<element signature="e#1266#2890#0#PHP" expanded="false" />
<element signature="e#2902#3430#0#PHP" expanded="false" />
<element signature="e#3435#4571#0#PHP" expanded="false" />
<element signature="e#4577#4984#0#PHP" expanded="false" />
... ... @@ -36,103 +41,56 @@
<element signature="e#13552#14752#0#PHP" expanded="false" />
<element signature="e#14758#15334#0#PHP" expanded="false" />
<element signature="e#15339#15900#0#PHP" expanded="false" />
<element signature="e#15906#16590#0#PHP" expanded="false" />
<element signature="e#16595#18691#0#PHP" expanded="false" />
<element signature="e#18697#19567#0#PHP" expanded="false" />
<element signature="e#19572#22068#0#PHP" expanded="false" />
<element signature="e#22074#22451#0#PHP" expanded="false" />
<element signature="e#22456#22777#0#PHP" expanded="false" />
<element signature="e#22783#23288#0#PHP" expanded="false" />
<element signature="e#23293#23544#0#PHP" expanded="false" />
<element signature="e#23550#24029#0#PHP" expanded="false" />
<element signature="e#24034#24791#0#PHP" expanded="false" />
<element signature="e#24797#25278#0#PHP" expanded="false" />
<element signature="e#25283#26053#0#PHP" expanded="false" />
<element signature="e#26059#26422#0#PHP" expanded="false" />
<element signature="e#26427#26618#0#PHP" expanded="false" />
<element signature="e#26624#26982#0#PHP" expanded="false" />
<element signature="e#26987#27178#0#PHP" expanded="false" />
<element signature="e#27184#28327#0#PHP" expanded="false" />
<element signature="e#28332#30997#0#PHP" expanded="false" />
<element signature="e#31003#31501#0#PHP" expanded="false" />
<element signature="e#31506#33252#0#PHP" expanded="false" />
<element signature="e#33258#33671#0#PHP" expanded="false" />
<element signature="e#33676#34155#0#PHP" expanded="false" />
<element signature="e#34161#34695#0#PHP" expanded="false" />
<element signature="e#34700#36085#0#PHP" expanded="false" />
<element signature="e#36091#36745#0#PHP" expanded="false" />
<element signature="e#36750#38765#0#PHP" expanded="false" />
<element signature="e#38771#39531#0#PHP" expanded="false" />
<element signature="e#39536#42245#0#PHP" expanded="false" />
<element signature="e#42271#43102#0#PHP" expanded="false" />
<element signature="e#43108#43528#0#PHP" expanded="false" />
<element signature="e#43533#44016#0#PHP" expanded="false" />
<element signature="e#44022#44828#0#PHP" expanded="false" />
<element signature="e#44833#47987#0#PHP" expanded="false" />
<element signature="e#48002#49330#0#PHP" expanded="false" />
<element signature="e#49346#50373#0#PHP" expanded="false" />
<element signature="e#50379#51137#0#PHP" expanded="false" />
<element signature="e#51142#54885#0#PHP" expanded="false" />
<element signature="e#54891#55283#0#PHP" expanded="false" />
<element signature="e#55288#56240#0#PHP" expanded="false" />
<element signature="e#56264#56837#0#PHP" expanded="false" />
<element signature="e#56843#57442#0#PHP" expanded="false" />
<element signature="e#57447#58374#0#PHP" expanded="false" />
<element signature="e#58380#59094#0#PHP" expanded="false" />
<element signature="e#59100#59527#0#PHP" expanded="false" />
<element signature="e#59532#60001#0#PHP" expanded="false" />
<element signature="e#15906#16622#0#PHP" expanded="false" />
<element signature="e#16627#19041#0#PHP" expanded="false" />
<element signature="e#19047#19949#0#PHP" expanded="false" />
<element signature="e#19954#22768#0#PHP" expanded="false" />
<element signature="e#22774#23151#0#PHP" expanded="false" />
<element signature="e#23156#23477#0#PHP" expanded="false" />
<element signature="e#23483#23988#0#PHP" expanded="false" />
<element signature="e#23993#24244#0#PHP" expanded="false" />
<element signature="e#24250#24729#0#PHP" expanded="false" />
<element signature="e#24734#25491#0#PHP" expanded="false" />
<element signature="e#25497#25978#0#PHP" expanded="false" />
<element signature="e#25983#26753#0#PHP" expanded="false" />
<element signature="e#26759#27122#0#PHP" expanded="false" />
<element signature="e#27127#27318#0#PHP" expanded="false" />
<element signature="e#27324#27682#0#PHP" expanded="false" />
<element signature="e#27687#27878#0#PHP" expanded="false" />
<element signature="e#27884#29027#0#PHP" expanded="false" />
<element signature="e#29032#31697#0#PHP" expanded="false" />
<element signature="e#31703#32201#0#PHP" expanded="false" />
<element signature="e#32206#33952#0#PHP" expanded="false" />
<element signature="e#33958#34371#0#PHP" expanded="false" />
<element signature="e#34376#34855#0#PHP" expanded="false" />
<element signature="e#34861#35395#0#PHP" expanded="false" />
<element signature="e#35400#36785#0#PHP" expanded="false" />
<element signature="e#36791#37445#0#PHP" expanded="false" />
<element signature="e#37450#39465#0#PHP" expanded="false" />
<element signature="e#39471#40231#0#PHP" expanded="false" />
<element signature="e#40236#42945#0#PHP" expanded="false" />
<element signature="e#42971#43802#0#PHP" expanded="false" />
<element signature="e#43808#44228#0#PHP" expanded="false" />
<element signature="e#44233#44716#0#PHP" expanded="false" />
<element signature="e#44722#45528#0#PHP" expanded="false" />
<element signature="e#45533#48687#0#PHP" expanded="false" />
<element signature="e#48702#50030#0#PHP" expanded="false" />
<element signature="e#50046#51073#0#PHP" expanded="false" />
<element signature="e#51079#51837#0#PHP" expanded="false" />
<element signature="e#51842#55585#0#PHP" expanded="false" />
<element signature="e#55591#55983#0#PHP" expanded="false" />
<element signature="e#55988#56940#0#PHP" expanded="false" />
<element signature="e#56964#57537#0#PHP" expanded="false" />
<element signature="e#57543#58142#0#PHP" expanded="false" />
<element signature="e#58147#59074#0#PHP" expanded="false" />
<element signature="e#59080#59794#0#PHP" expanded="false" />
<element signature="e#59800#60227#0#PHP" expanded="false" />
<element signature="e#60232#60701#0#PHP" expanded="false" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Pay.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-106">
<caret line="786" column="40" lean-forward="true" selection-start-line="786" selection-start-column="40" selection-end-line="786" selection-end-column="40" />
<folding>
<element signature="e#574#693#0#PHP" expanded="false" />
<element signature="e#699#1012#0#PHP" expanded="false" />
<element signature="e#1017#3093#0#PHP" expanded="false" />
<element signature="e#3099#3419#0#PHP" expanded="false" />
<element signature="e#3424#5506#0#PHP" expanded="false" />
<element signature="e#5512#5930#0#PHP" expanded="false" />
<element signature="e#5935#16029#0#PHP" expanded="false" />
<element signature="e#6179#6269#0#PHP" expanded="false" />
<element signature="e#6347#6443#0#PHP" expanded="false" />
<element signature="e#11546#11997#0#PHP" expanded="false" />
<element signature="e#13212#13330#0#PHP" expanded="false" />
<element signature="e#16035#16455#0#PHP" expanded="false" />
<element signature="e#16460#26484#0#PHP" expanded="false" />
<element signature="e#18227#19634#0#PHP" expanded="false" />
<element signature="e#23664#23782#0#PHP" expanded="false" />
<element signature="e#24230#24461#0#PHP" expanded="false" />
<element signature="e#24639#26416#0#PHP" expanded="false" />
<element signature="e#26501#26798#0#PHP" expanded="false" />
<element signature="e#26803#27196#0#PHP" expanded="false" />
<element signature="e#27223#30701#0#PHP" expanded="false" />
<element signature="e#30730#33635#0#PHP" expanded="false" />
<element signature="e#34441#35758#0#PHP" expanded="false" />
<element signature="e#35804#39309#0#PHP" expanded="false" />
<element signature="e#37883#38270#0#PHP" expanded="false" />
<element signature="e#38331#39287#0#PHP" expanded="false" />
<element signature="e#39948#47120#0#PHP" expanded="false" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="verify.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/application/extra/verify.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="375">
<caret line="18" column="45" lean-forward="false" selection-start-line="18" selection-start-column="45" selection-end-line="18" selection-end-column="45" />
<folding />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FindInProjectRecents">
... ... @@ -152,10 +110,6 @@
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/application/admin/model/Type.php" />
<option value="$PROJECT_DIR$/application/admin/view/pic/index.html" />
<option value="$PROJECT_DIR$/application/index/controller/User.php" />
<option value="$PROJECT_DIR$/application/api/controller/Demo.php" />
<option value="$PROJECT_DIR$/application/database.php" />
<option value="$PROJECT_DIR$/.gitlab-ci.yml" />
<option value="$PROJECT_DIR$/.gitignore" />
... ... @@ -194,15 +148,19 @@
<option value="$PROJECT_DIR$/application/admin/model/Pictype.php" />
<option value="$PROJECT_DIR$/public/assets/js/backend/pictype.js" />
<option value="$PROJECT_DIR$/application/admin/view/pic/add.html" />
<option value="$PROJECT_DIR$/application/admin/view/pic/edit.html" />
<option value="$PROJECT_DIR$/application/admin/controller/Pic.php" />
<option value="$PROJECT_DIR$/application/api/controller/User.php" />
<option value="$PROJECT_DIR$/application/admin/lang/zh-cn/pic.php" />
<option value="$PROJECT_DIR$/public/assets/js/backend/pic.js" />
<option value="$PROJECT_DIR$/application/admin/lang/zh-cn/video.php" />
<option value="$PROJECT_DIR$/public/assets/js/backend/video.js" />
<option value="$PROJECT_DIR$/runtime/log/201912/07.log" />
<option value="$PROJECT_DIR$/application/api/controller/Pay.php" />
<option value="$PROJECT_DIR$/application/admin/view/accredit/add.html" />
<option value="$PROJECT_DIR$/application/admin/view/pic/edit.html" />
<option value="$PROJECT_DIR$/application/admin/view/accredit/edit.html" />
<option value="$PROJECT_DIR$/application/admin/view/accredit/index.html" />
<option value="$PROJECT_DIR$/public/assets/js/backend/accredit.js" />
<option value="$PROJECT_DIR$/application/api/controller/User.php" />
</list>
</option>
</component>
... ... @@ -220,11 +178,11 @@
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
<component name="ProjectFrameBounds" extendedState="7">
<option name="x" value="96" />
<option name="y" value="92" />
<option name="width" value="1871" />
<option name="height" value="996" />
<component name="ProjectFrameBounds" extendedState="1">
<option name="x" value="323" />
<option name="y" value="30" />
<option name="width" value="1430" />
<option name="height" value="920" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
... ... @@ -241,7 +199,6 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="Scope" />
<pane id="Scratches" />
<pane id="ProjectPane">
<subPane>
... ... @@ -268,34 +225,11 @@
<item name="api" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="controller" type="2a2b976b:PhpTreeStructureProvider$1" />
</path>
<path>
<item name="areial" type="b2602c69:ProjectViewProjectNode" />
<item name="areial" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="application" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="extra" type="2a2b976b:PhpTreeStructureProvider$1" />
</path>
<path>
<item name="areial" type="b2602c69:ProjectViewProjectNode" />
<item name="areial" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="runtime" type="2a2b976b:PhpTreeStructureProvider$1" />
</path>
<path>
<item name="areial" type="b2602c69:ProjectViewProjectNode" />
<item name="areial" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="runtime" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="log" type="2a2b976b:PhpTreeStructureProvider$1" />
</path>
<path>
<item name="areial" type="b2602c69:ProjectViewProjectNode" />
<item name="areial" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="runtime" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="log" type="2a2b976b:PhpTreeStructureProvider$1" />
<item name="201912" type="2a2b976b:PhpTreeStructureProvider$1" />
</path>
</expand>
<select />
</subPane>
</pane>
<pane id="Scope" />
</panes>
</component>
<component name="PropertiesComponent">
... ... @@ -378,7 +312,11 @@
<workItem from="1575599624364" duration="95000" />
<workItem from="1575680867057" duration="23412000" />
<workItem from="1575708184460" duration="1768000" />
<workItem from="1575771325770" duration="1401000" />
<workItem from="1575771325770" duration="2050000" />
<workItem from="1575773423431" duration="694000" />
<workItem from="1575776183372" duration="2267000" />
<workItem from="1575790089275" duration="377000" />
<workItem from="1575851041026" duration="2668000" />
</task>
<task id="LOCAL-00001" summary="调试">
<created>1574145133364</created>
... ... @@ -391,7 +329,7 @@
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="336480000" />
<option name="totallyTimeSpent" value="343135000" />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
... ... @@ -403,18 +341,18 @@
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1936" height="1056" extended-state="7" />
<frame x="323" y="30" width="1430" height="920" extended-state="1" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.16791044" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.17518248" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32912987" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.1577802" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
<window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.16985951" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
... ... @@ -460,56 +398,6 @@
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/application/admin/lang/zh-cn/vip.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="200">
<caret line="8" column="0" lean-forward="true" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/public/assets/js/backend/vip.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-25">
<caret line="17" column="0" lean-forward="true" selection-start-line="17" selection-start-column="0" selection-end-line="17" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/Desktop/1.html" />
<entry file="file://$PROJECT_DIR$/application/admin/view/vip/edit.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="325">
<caret line="13" column="10" lean-forward="true" selection-start-line="13" selection-start-column="10" selection-end-line="13" selection-end-column="10" />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/Desktop/助通短信平台账号/php_Nsms_demo.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1200">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/Desktop/助通短信平台账号/php_Nsms_demo1.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="591">
<caret line="59" column="7" lean-forward="true" selection-start-line="59" selection-start-column="7" selection-end-line="59" selection-end-column="7" />
</state>
</provider>
</entry>
<entry file="file://$USER_HOME$/Desktop/助通短信平台账号/PHP_G_DEMO.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="489">
<caret line="82" column="6" lean-forward="true" selection-start-line="82" selection-start-column="6" selection-end-line="82" selection-end-column="6" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/api/controller/Common.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-525">
<caret line="16" column="27" lean-forward="true" selection-start-line="16" selection-start-column="27" selection-end-line="16" selection-end-column="27" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/nsms/nsms.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1644">
... ... @@ -727,76 +615,159 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/admin/view/pic/edit.html">
<entry file="file://$PROJECT_DIR$/application/api/controller/Token.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/admin/lang/zh-cn/pic.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="475">
<caret line="43" column="14" lean-forward="true" selection-start-line="43" selection-start-column="14" selection-end-line="43" selection-end-column="14" />
<caret line="19" column="27" lean-forward="false" selection-start-line="19" selection-start-column="27" selection-end-line="19" selection-end-column="27" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/admin/view/pic/add.html">
<entry file="file://$PROJECT_DIR$/public/assets/js/backend/video.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="455">
<caret line="39" column="28" lean-forward="true" selection-start-line="39" selection-start-column="28" selection-end-line="39" selection-end-column="28" />
<state relative-caret-position="475">
<caret line="43" column="82" lean-forward="true" selection-start-line="43" selection-start-column="82" selection-end-line="43" selection-end-column="82" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/api/controller/Token.php">
<entry file="file://$PROJECT_DIR$/application/admin/lang/zh-cn/video.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<state relative-caret-position="600">
<caret line="24" column="27" lean-forward="false" selection-start-line="24" selection-start-column="27" selection-end-line="24" selection-end-column="27" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/runtime/log/201912/07.log">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="591">
<caret line="138" column="26" lean-forward="true" selection-start-line="138" selection-start-column="26" selection-end-line="138" selection-end-column="26" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/extra/verify.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="375">
<caret line="18" column="45" lean-forward="false" selection-start-line="18" selection-start-column="45" selection-end-line="18" selection-end-column="45" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="25">
<caret line="786" column="40" lean-forward="true" selection-start-line="786" selection-start-column="40" selection-end-line="786" selection-end-column="40" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/admin/view/dashboard/index.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="75">
<caret line="3" column="22" lean-forward="true" selection-start-line="3" selection-start-column="22" selection-end-line="3" selection-end-column="22" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/database.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="100">
<caret line="18" column="101" lean-forward="false" selection-start-line="18" selection-start-column="56" selection-end-line="18" selection-end-column="101" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/admin/lang/zh-cn/pic.php">
<entry file="file://$PROJECT_DIR$/application/admin/controller/Pic.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="475">
<caret line="19" column="27" lean-forward="false" selection-start-line="19" selection-start-column="27" selection-end-line="19" selection-end-column="27" />
<caret line="20" column="4" lean-forward="false" selection-start-line="20" selection-start-column="4" selection-end-line="20" selection-end-column="45" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/admin/controller/Pic.php">
<entry file="file://$PROJECT_DIR$/public/admin.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="338">
<caret line="134" column="9" lean-forward="true" selection-start-line="134" selection-start-column="9" selection-end-line="134" selection-end-column="9" />
<state relative-caret-position="0">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/public/assets/js/backend/pic.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="349">
<caret line="40" column="75" lean-forward="true" selection-start-line="40" selection-start-column="24" selection-end-line="40" selection-end-column="75" />
<state relative-caret-position="375">
<caret line="32" column="24" lean-forward="true" selection-start-line="32" selection-start-column="24" selection-end-line="32" selection-end-column="152" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/public/assets/js/backend/video.js">
<entry file="file://$PROJECT_DIR$/application/admin/view/pic/add.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="475">
<caret line="43" column="82" lean-forward="true" selection-start-line="43" selection-start-column="82" selection-end-line="43" selection-end-column="82" />
<state relative-caret-position="175">
<caret line="25" column="4" lean-forward="true" selection-start-line="25" selection-start-column="4" selection-end-line="38" selection-end-column="10" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/admin/lang/zh-cn/video.php">
<entry file="file://$PROJECT_DIR$/application/admin/view/pic/edit.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="600">
<caret line="24" column="27" lean-forward="false" selection-start-line="24" selection-start-column="27" selection-end-line="24" selection-end-column="27" />
<state relative-caret-position="250">
<caret line="25" column="4" lean-forward="false" selection-start-line="25" selection-start-column="4" selection-end-line="38" selection-end-column="10" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/runtime/log/201912/07.log">
<entry file="file://$PROJECT_DIR$/application/admin/view/accredit/edit.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="591">
<caret line="138" column="26" lean-forward="true" selection-start-line="138" selection-start-column="26" selection-end-line="138" selection-end-column="26" />
<state relative-caret-position="375">
<caret line="15" column="10" lean-forward="true" selection-start-line="15" selection-start-column="10" selection-end-line="15" selection-end-column="10" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/admin/view/accredit/add.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="375">
<caret line="15" column="10" lean-forward="false" selection-start-line="15" selection-start-column="10" selection-end-line="15" selection-end-column="10" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/public/assets/js/backend/accredit.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="250">
<caret line="25" column="41" lean-forward="true" selection-start-line="25" selection-start-column="41" selection-end-line="25" selection-end-column="41" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/admin/view/accredit/index.html">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="250">
<caret line="13" column="0" lean-forward="true" selection-start-line="13" selection-start-column="0" selection-end-line="13" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/admin/controller/Accredit.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-283">
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/api/controller/User.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2100">
<caret line="774" column="5" lean-forward="false" selection-start-line="774" selection-start-column="5" selection-end-line="774" selection-end-column="5" />
<state relative-caret-position="275">
<caret line="563" column="0" lean-forward="true" selection-start-line="563" selection-start-column="0" selection-end-line="563" selection-end-column="0" />
<folding>
<element signature="e#365#484#0#PHP" expanded="false" />
<element signature="e#490#1228#0#PHP" expanded="false" />
<element signature="e#1233#2896#0#PHP" expanded="false" />
<element signature="e#1266#2890#0#PHP" expanded="false" />
<element signature="e#2902#3430#0#PHP" expanded="false" />
<element signature="e#3435#4571#0#PHP" expanded="false" />
<element signature="e#4577#4984#0#PHP" expanded="false" />
... ... @@ -813,94 +784,51 @@
<element signature="e#13552#14752#0#PHP" expanded="false" />
<element signature="e#14758#15334#0#PHP" expanded="false" />
<element signature="e#15339#15900#0#PHP" expanded="false" />
<element signature="e#15906#16590#0#PHP" expanded="false" />
<element signature="e#16595#18691#0#PHP" expanded="false" />
<element signature="e#18697#19567#0#PHP" expanded="false" />
<element signature="e#19572#22068#0#PHP" expanded="false" />
<element signature="e#22074#22451#0#PHP" expanded="false" />
<element signature="e#22456#22777#0#PHP" expanded="false" />
<element signature="e#22783#23288#0#PHP" expanded="false" />
<element signature="e#23293#23544#0#PHP" expanded="false" />
<element signature="e#23550#24029#0#PHP" expanded="false" />
<element signature="e#24034#24791#0#PHP" expanded="false" />
<element signature="e#24797#25278#0#PHP" expanded="false" />
<element signature="e#25283#26053#0#PHP" expanded="false" />
<element signature="e#26059#26422#0#PHP" expanded="false" />
<element signature="e#26427#26618#0#PHP" expanded="false" />
<element signature="e#26624#26982#0#PHP" expanded="false" />
<element signature="e#26987#27178#0#PHP" expanded="false" />
<element signature="e#27184#28327#0#PHP" expanded="false" />
<element signature="e#28332#30997#0#PHP" expanded="false" />
<element signature="e#31003#31501#0#PHP" expanded="false" />
<element signature="e#31506#33252#0#PHP" expanded="false" />
<element signature="e#33258#33671#0#PHP" expanded="false" />
<element signature="e#33676#34155#0#PHP" expanded="false" />
<element signature="e#34161#34695#0#PHP" expanded="false" />
<element signature="e#34700#36085#0#PHP" expanded="false" />
<element signature="e#36091#36745#0#PHP" expanded="false" />
<element signature="e#36750#38765#0#PHP" expanded="false" />
<element signature="e#38771#39531#0#PHP" expanded="false" />
<element signature="e#39536#42245#0#PHP" expanded="false" />
<element signature="e#42271#43102#0#PHP" expanded="false" />
<element signature="e#43108#43528#0#PHP" expanded="false" />
<element signature="e#43533#44016#0#PHP" expanded="false" />
<element signature="e#44022#44828#0#PHP" expanded="false" />
<element signature="e#44833#47987#0#PHP" expanded="false" />
<element signature="e#48002#49330#0#PHP" expanded="false" />
<element signature="e#49346#50373#0#PHP" expanded="false" />
<element signature="e#50379#51137#0#PHP" expanded="false" />
<element signature="e#51142#54885#0#PHP" expanded="false" />
<element signature="e#54891#55283#0#PHP" expanded="false" />
<element signature="e#55288#56240#0#PHP" expanded="false" />
<element signature="e#56264#56837#0#PHP" expanded="false" />
<element signature="e#56843#57442#0#PHP" expanded="false" />
<element signature="e#57447#58374#0#PHP" expanded="false" />
<element signature="e#58380#59094#0#PHP" expanded="false" />
<element signature="e#59100#59527#0#PHP" expanded="false" />
<element signature="e#59532#60001#0#PHP" expanded="false" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/extra/verify.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="375">
<caret line="18" column="45" lean-forward="false" selection-start-line="18" selection-start-column="45" selection-end-line="18" selection-end-column="45" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-106">
<caret line="786" column="40" lean-forward="true" selection-start-line="786" selection-start-column="40" selection-end-line="786" selection-end-column="40" />
<folding>
<element signature="e#574#693#0#PHP" expanded="false" />
<element signature="e#699#1012#0#PHP" expanded="false" />
<element signature="e#1017#3093#0#PHP" expanded="false" />
<element signature="e#3099#3419#0#PHP" expanded="false" />
<element signature="e#3424#5506#0#PHP" expanded="false" />
<element signature="e#5512#5930#0#PHP" expanded="false" />
<element signature="e#5935#16029#0#PHP" expanded="false" />
<element signature="e#6179#6269#0#PHP" expanded="false" />
<element signature="e#6347#6443#0#PHP" expanded="false" />
<element signature="e#11546#11997#0#PHP" expanded="false" />
<element signature="e#13212#13330#0#PHP" expanded="false" />
<element signature="e#16035#16455#0#PHP" expanded="false" />
<element signature="e#16460#26484#0#PHP" expanded="false" />
<element signature="e#18227#19634#0#PHP" expanded="false" />
<element signature="e#23664#23782#0#PHP" expanded="false" />
<element signature="e#24230#24461#0#PHP" expanded="false" />
<element signature="e#24639#26416#0#PHP" expanded="false" />
<element signature="e#26501#26798#0#PHP" expanded="false" />
<element signature="e#26803#27196#0#PHP" expanded="false" />
<element signature="e#27223#30701#0#PHP" expanded="false" />
<element signature="e#30730#33635#0#PHP" expanded="false" />
<element signature="e#34441#35758#0#PHP" expanded="false" />
<element signature="e#35804#39309#0#PHP" expanded="false" />
<element signature="e#37883#38270#0#PHP" expanded="false" />
<element signature="e#38331#39287#0#PHP" expanded="false" />
<element signature="e#39948#47120#0#PHP" expanded="false" />
<element signature="e#15906#16622#0#PHP" expanded="false" />
<element signature="e#16627#19041#0#PHP" expanded="false" />
<element signature="e#19047#19949#0#PHP" expanded="false" />
<element signature="e#19954#22768#0#PHP" expanded="false" />
<element signature="e#22774#23151#0#PHP" expanded="false" />
<element signature="e#23156#23477#0#PHP" expanded="false" />
<element signature="e#23483#23988#0#PHP" expanded="false" />
<element signature="e#23993#24244#0#PHP" expanded="false" />
<element signature="e#24250#24729#0#PHP" expanded="false" />
<element signature="e#24734#25491#0#PHP" expanded="false" />
<element signature="e#25497#25978#0#PHP" expanded="false" />
<element signature="e#25983#26753#0#PHP" expanded="false" />
<element signature="e#26759#27122#0#PHP" expanded="false" />
<element signature="e#27127#27318#0#PHP" expanded="false" />
<element signature="e#27324#27682#0#PHP" expanded="false" />
<element signature="e#27687#27878#0#PHP" expanded="false" />
<element signature="e#27884#29027#0#PHP" expanded="false" />
<element signature="e#29032#31697#0#PHP" expanded="false" />
<element signature="e#31703#32201#0#PHP" expanded="false" />
<element signature="e#32206#33952#0#PHP" expanded="false" />
<element signature="e#33958#34371#0#PHP" expanded="false" />
<element signature="e#34376#34855#0#PHP" expanded="false" />
<element signature="e#34861#35395#0#PHP" expanded="false" />
<element signature="e#35400#36785#0#PHP" expanded="false" />
<element signature="e#36791#37445#0#PHP" expanded="false" />
<element signature="e#37450#39465#0#PHP" expanded="false" />
<element signature="e#39471#40231#0#PHP" expanded="false" />
<element signature="e#40236#42945#0#PHP" expanded="false" />
<element signature="e#42971#43802#0#PHP" expanded="false" />
<element signature="e#43808#44228#0#PHP" expanded="false" />
<element signature="e#44233#44716#0#PHP" expanded="false" />
<element signature="e#44722#45528#0#PHP" expanded="false" />
<element signature="e#45533#48687#0#PHP" expanded="false" />
<element signature="e#48702#50030#0#PHP" expanded="false" />
<element signature="e#50046#51073#0#PHP" expanded="false" />
<element signature="e#51079#51837#0#PHP" expanded="false" />
<element signature="e#51842#55585#0#PHP" expanded="false" />
<element signature="e#55591#55983#0#PHP" expanded="false" />
<element signature="e#55988#56940#0#PHP" expanded="false" />
<element signature="e#56964#57537#0#PHP" expanded="false" />
<element signature="e#57543#58142#0#PHP" expanded="false" />
<element signature="e#58147#59074#0#PHP" expanded="false" />
<element signature="e#59080#59794#0#PHP" expanded="false" />
<element signature="e#59800#60227#0#PHP" expanded="false" />
<element signature="e#60232#60701#0#PHP" expanded="false" />
</folding>
</state>
</provider>
... ...
<?php
namespace app\admin\controller;
use app\common\controller\Backend;
/**
* 授权书管理
*
* @icon fa fa-circle-o
*/
class Accredit extends Backend
{
/**
* Accredit模型对象
* @var \app\admin\model\Accredit
*/
protected $model = null;
public function _initialize()
{
parent::_initialize();
$this->model = new \app\admin\model\Accredit;
}
/**
* 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
* 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
* 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
*/
}
... ...
<?php
return [
'Id' => 'ID',
'Thumbnail' => '授权书图片',
'Createtime' => '创建时间',
'Updatetime' => '修改时间'
];
... ...
<?php
namespace app\admin\model;
use think\Model;
class Accredit extends Model
{
// 表名
protected $name = 'accredit';
// 自动写入时间戳字段
protected $autoWriteTimestamp = 'int';
// 定义时间戳字段名
protected $createTime = 'createtime';
protected $updateTime = 'updatetime';
protected $deleteTime = false;
// 追加属性
protected $append = [
];
}
... ...
<?php
namespace app\admin\validate;
use think\Validate;
class Accredit extends Validate
{
/**
* 验证规则
*/
protected $rule = [
];
/**
* 提示消息
*/
protected $message = [
];
/**
* 验证场景
*/
protected $scene = [
'add' => [],
'edit' => [],
];
}
... ...
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Thumbnail')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-thumbnail" data-rule="required" class="form-control" size="35" name="row[thumbnail]" type="text" placeholder="请上传图片">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="plupload-thumbnail" class="btn btn-danger plupload" data-input-id="c-thumbnail" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-thumbnail"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-thumbnail" class="btn btn-primary fachoose" data-input-id="c-thumbnail" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right"></span>
</div>
<ul class="row list-inline plupload-preview" id="p-thumbnail"></ul>
</div>
</div>
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
</div>
</div>
</form>
... ...
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Thumbnail')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-image" data-rule="required" class="form-control" size="35" name="row[thumbnail]" type="text" value="{$row.thumbnail}" placeholder="请上传图片">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right"></span>
</div>
<ul class="row list-inline plupload-preview" id="p-image"></ul>
</div>
</div>
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
</div>
</div>
</form>
... ...
<div class="panel panel-default panel-intro">
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="one">
<div class="widget-body no-padding">
<div id="toolbar" class="toolbar">
<a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
<!--<a href="javascript:;" class="btn btn-success btn-add {:$auth->check('accredit/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>-->
<a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('accredit/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
<!--<a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('accredit/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>-->
<!--<a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('accredit/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>-->
<div class="dropdown btn-group {:$auth->check('accredit/multi')?'':'hide'}">
<a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
<ul class="dropdown-menu text-left" role="menu">
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
<li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
</ul>
</div>
</div>
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
data-operate-edit="{:$auth->check('accredit/edit')}"
data-operate-del="{:$auth->check('accredit/del')}"
width="100%">
</table>
</div>
</div>
</div>
</div>
</div>
... ...
... ... @@ -24,7 +24,7 @@
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
<label class="control-label col-xs-12 col-sm-2">{:__('Thumbnail')}:</label>
<div class="col-xs-12 col-sm-8">
<div class="input-group">
<input id="c-image" data-rule="required" class="form-control" size="35" name="row[thumbnail]" type="text" value="{$row.thumbnail}" placeholder="请上传图片">
... ...
... ... @@ -493,6 +493,7 @@ class User extends Api
"id": 4,//图片id,
"title"://标题
"thumbnail": //缩略图,
"accredit": //授权书图片
"water_url": //小样带水印的图片地址,
"price"://正常价格,
"vip_price"://vip价格,
... ... @@ -515,6 +516,9 @@ class User extends Api
if(empty($pic_id)){
$this->error(['code'=>2,'msg'=>'缺少必要参数']);
}
$accredit = Db::name('accredit')
->where('id',1)
->find();
$data = Db::name('pic')
->field('id,title,thumbnail,price,water_url,url,code,content,click_num')
->where('id',$pic_id)
... ... @@ -524,6 +528,7 @@ class User extends Api
}
$click_num = $data['click_num'] + 1;
Db::name('pic')->where('id',$pic_id)->update(['click_num'=>$click_num]);
$data['accredit'] = $accredit['thumbnail'];
$data['water_url'] = $rule.$data['water_url'];
$data['vip_price'] = $data['price'] * 0.75;
$data['thumbnail'] = $rule.$data['thumbnail'];
... ... @@ -539,12 +544,16 @@ class User extends Api
->field('id,title,thumbnail,price,water_url,url,code,content,click_num')
->where('id',$pic_id)
->find();
$accredit = Db::name('accredit')
->where('id',1)
->find();
if(empty($data)){
$this->error(['code'=>2,'msg'=>'参数错误']);
}
$click_num = $data['click_num'] + 1;
Db::name('pic')->where('id',$pic_id)->update(['click_num'=>$click_num]);
$data['is_vip'] = 1;
$data['accredit'] = $accredit['thumbnail'];
$data['water_url'] = $rule.$data['water_url'];
$data['vip_price'] = $data['price'] * 0.75;
$data['thumbnail'] = $rule.$data['thumbnail'];
... ... @@ -568,6 +577,7 @@ class User extends Api
"data": {
"id": 4,//视频id,
"title"://标题
"accredit": //授权书图片
"thumbnail": //视频封面图,
"video": //2K视频地址,
"water_url"://小样视频网址
... ... @@ -602,9 +612,13 @@ class User extends Api
if(empty($data)){
$this->error(['code'=>2,'msg'=>'参数错误']);
}
$accredit = Db::name('accredit')
->where('id',1)
->find();
$click_num = $data['click_num']+1;
Db::name('video')->where('id',$pic_id)->update(['click_num'=>$click_num]);
$data['vip_price'] = $data['price']*0.75;
$data['accredit'] = $accredit['thumbnail'];
$data['four_vipprice'] = $data['four_price']*0.75;
$data['eight_vipprice'] = $data['eight_price']*0.75;
$data['thumbnail'] = $rule.$data['thumbnail'];
... ... @@ -624,9 +638,13 @@ class User extends Api
if(empty($data)){
$this->error(['code'=>2,'msg'=>'参数错误']);
}
$accredit = Db::name('accredit')
->where('id',1)
->find();
$click_num = $data['click_num']+1;
Db::name('video')->where('id',$pic_id)->update(['click_num'=>$click_num]);
$data['is_vip'] = 1;
$data['accredit'] = $accredit['thumbnail'];
$data['vip_price'] = $data['price']*0.75;
$data['four_vipprice'] = $data['four_price']*0.75;
$data['eight_vipprice'] = $data['eight_price']*0.75;
... ...
... ... @@ -5189,6 +5189,7 @@
"data": {
"id": 4,//视频id,
"title"://标题
"accredit": //授权书图片
"thumbnail": //视频封面图,
"video": //2K视频地址,
"water_url"://小样视频网址
... ... @@ -5347,6 +5348,7 @@
"id": 4,//图片id,
"title"://标题
"thumbnail": //缩略图,
"accredit": //授权书图片
"water_url": //小样带水印的图片地址,
"price"://正常价格,
"vip_price"://vip价格,
... ... @@ -6612,7 +6614,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2019-12-08 10:38:45 </div>
Generated on 2019-12-09 09:16:25 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
var Controller = {
index: function () {
// 初始化表格参数配置
Table.api.init({
extend: {
index_url: 'accredit/index' + location.search,
add_url: 'accredit/add',
edit_url: 'accredit/edit',
del_url: 'accredit/del',
multi_url: 'accredit/multi',
table: 'accredit',
}
});
var table = $("#table");
// 初始化表格
table.bootstrapTable({
url: $.fn.bootstrapTable.defaults.extend.index_url,
pk: 'id',
sortName: 'id',
columns: [
[
{checkbox: true},
{field: 'id', title: __('Id')},
{field: 'thumbnail', title: __('Thumbnail'),operate:false, events: Table.api.events.image,formatter: Table.api.formatter.image},
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
{field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: function (value, row, index) {
var that = $.extend({}, this);
var table = $(that.table).clone(true);
$(table).data("operate-del", null);
that.table = table;
return Table.api.formatter.operate.call(that, value, row, index);
}}
]
]
});
// 为表格绑定事件
Table.api.bindevent(table);
},
add: function () {
Controller.api.bindevent();
},
edit: function () {
Controller.api.bindevent();
},
api: {
bindevent: function () {
Form.api.bindevent($("form[role=form]"));
}
}
};
return Controller;
});
\ No newline at end of file
... ...