作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

商户申请

@@ -6,7 +6,6 @@ @@ -6,7 +6,6 @@
6 <component name="ChangeListManager"> 6 <component name="ChangeListManager">
7 <list default="true" id="309ad746-5b2a-4c29-af46-e7925a35765c" name="默认的" comment=""> 7 <list default="true" id="309ad746-5b2a-4c29-af46-e7925a35765c" name="默认的" comment="">
8 <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> 8 <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9 - <change beforePath="$PROJECT_DIR$/application/admin/controller/MerchantAudit.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/admin/controller/MerchantAudit.php" afterDir="false" />  
10 </list> 9 </list>
11 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 10 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
12 <option name="TRACKING_ENABLED" value="true" /> 11 <option name="TRACKING_ENABLED" value="true" />
@@ -43,15 +42,36 @@ @@ -43,15 +42,36 @@
43 </provider> 42 </provider>
44 </entry> 43 </entry>
45 </file> 44 </file>
46 - <file leaf-file-name="MerchantAudit.php" pinned="false" current-in-tab="true"> 45 + <file leaf-file-name="MerchantAudit.php" pinned="false" current-in-tab="false">
47 <entry file="file://$PROJECT_DIR$/application/admin/controller/MerchantAudit.php"> 46 <entry file="file://$PROJECT_DIR$/application/admin/controller/MerchantAudit.php">
48 <provider selected="true" editor-type-id="text-editor"> 47 <provider selected="true" editor-type-id="text-editor">
49 - <state relative-caret-position="629"> 48 + <state relative-caret-position="1037">
50 <caret line="147" column="62" selection-start-line="147" selection-start-column="62" selection-end-line="147" selection-end-column="62" /> 49 <caret line="147" column="62" selection-start-line="147" selection-start-column="62" selection-end-line="147" selection-end-column="62" />
51 </state> 50 </state>
52 </provider> 51 </provider>
53 </entry> 52 </entry>
54 </file> 53 </file>
  54 + <file leaf-file-name="Merchant.php" pinned="false" current-in-tab="true">
  55 + <entry file="file://$PROJECT_DIR$/application/home/controller/Merchant.php">
  56 + <provider selected="true" editor-type-id="text-editor">
  57 + <state relative-caret-position="443">
  58 + <caret line="113" column="42" selection-start-line="113" selection-start-column="42" selection-end-line="113" selection-end-column="42" />
  59 + </state>
  60 + </provider>
  61 + </entry>
  62 + </file>
  63 + <file leaf-file-name="enter_view.html" pinned="false" current-in-tab="false">
  64 + <entry file="file://$PROJECT_DIR$/application/home/view/merchant/enter_view.html">
  65 + <provider selected="true" editor-type-id="text-editor">
  66 + <state relative-caret-position="444">
  67 + <caret line="111" column="49" selection-start-line="111" selection-start-column="40" selection-end-line="111" selection-end-column="49" />
  68 + <folding>
  69 + <element signature="e#5425#10699#0" />
  70 + </folding>
  71 + </state>
  72 + </provider>
  73 + </entry>
  74 + </file>
55 <file leaf-file-name="Index.php" pinned="false" current-in-tab="false"> 75 <file leaf-file-name="Index.php" pinned="false" current-in-tab="false">
56 <entry file="file://$PROJECT_DIR$/application/home/controller/Index.php"> 76 <entry file="file://$PROJECT_DIR$/application/home/controller/Index.php">
57 <provider selected="true" editor-type-id="text-editor"> 77 <provider selected="true" editor-type-id="text-editor">
@@ -101,27 +121,6 @@ @@ -101,27 +121,6 @@
101 </provider> 121 </provider>
102 </entry> 122 </entry>
103 </file> 123 </file>
104 - <file leaf-file-name="UserExpLogAudit.php" pinned="false" current-in-tab="false">  
105 - <entry file="file://$PROJECT_DIR$/application/admin/model/UserExpLogAudit.php">  
106 - <provider selected="true" editor-type-id="text-editor">  
107 - <state relative-caret-position="255">  
108 - <caret line="15" column="35" selection-start-line="15" selection-start-column="23" selection-end-line="15" selection-end-column="35" />  
109 - </state>  
110 - </provider>  
111 - </entry>  
112 - </file>  
113 - <file leaf-file-name="video_detail.html" pinned="false" current-in-tab="false">  
114 - <entry file="file://$PROJECT_DIR$/application/home/view/goods/video_detail.html">  
115 - <provider selected="true" editor-type-id="text-editor">  
116 - <state relative-caret-position="4182">  
117 - <caret line="246" column="21" selection-start-line="246" selection-start-column="21" selection-end-line="246" selection-end-column="21" />  
118 - <folding>  
119 - <element signature="n#style#0;n#div#0;n#div#2;n#div#2;n#body#0;n#html#0;n#!!top" expanded="true" />  
120 - </folding>  
121 - </state>  
122 - </provider>  
123 - </entry>  
124 - </file>  
125 </leaf> 124 </leaf>
126 </component> 125 </component>
127 <component name="FileTemplateManagerImpl"> 126 <component name="FileTemplateManagerImpl">
@@ -133,7 +132,6 @@ @@ -133,7 +132,6 @@
133 </component> 132 </component>
134 <component name="FindInProjectRecents"> 133 <component name="FindInProjectRecents">
135 <findStrings> 134 <findStrings>
136 - <find>right_btn</find>  
137 <find>newTimer</find> 135 <find>newTimer</find>
138 <find>choice_ans</find> 136 <find>choice_ans</find>
139 <find>#D12324</find> 137 <find>#D12324</find>
@@ -163,6 +161,7 @@ @@ -163,6 +161,7 @@
163 <find>distance_where</find> 161 <find>distance_where</find>
164 <find>quest_box</find> 162 <find>quest_box</find>
165 <find>alert</find> 163 <find>alert</find>
  164 + <find>business_images</find>
166 </findStrings> 165 </findStrings>
167 <replaceStrings> 166 <replaceStrings>
168 <replace /> 167 <replace />
@@ -201,12 +200,10 @@ @@ -201,12 +200,10 @@
201 <option value="$PROJECT_DIR$/application/home/controller/Share.php" /> 200 <option value="$PROJECT_DIR$/application/home/controller/Share.php" />
202 <option value="$PROJECT_DIR$/application/home/controller/Server.php" /> 201 <option value="$PROJECT_DIR$/application/home/controller/Server.php" />
203 <option value="$PROJECT_DIR$/application/home/view/merchant/audit_status.html" /> 202 <option value="$PROJECT_DIR$/application/home/view/merchant/audit_status.html" />
204 - <option value="$PROJECT_DIR$/application/home/controller/Merchant.php" />  
205 <option value="$PROJECT_DIR$/application/home/controller/Collect.php" /> 203 <option value="$PROJECT_DIR$/application/home/controller/Collect.php" />
206 <option value="$PROJECT_DIR$/application/home/view/collect/index.html" /> 204 <option value="$PROJECT_DIR$/application/home/view/collect/index.html" />
207 <option value="$PROJECT_DIR$/application/home/view/public/js.html" /> 205 <option value="$PROJECT_DIR$/application/home/view/public/js.html" />
208 <option value="$PROJECT_DIR$/application/home/view/share/index.html" /> 206 <option value="$PROJECT_DIR$/application/home/view/share/index.html" />
209 - <option value="$PROJECT_DIR$/application/home/view/merchant/enter_view.html" />  
210 <option value="$PROJECT_DIR$/public/assets/advertising/css/entry.css" /> 207 <option value="$PROJECT_DIR$/public/assets/advertising/css/entry.css" />
211 <option value="$PROJECT_DIR$/application/home/view/member/index.html" /> 208 <option value="$PROJECT_DIR$/application/home/view/member/index.html" />
212 <option value="$PROJECT_DIR$/application/home/view/public/nav.html" /> 209 <option value="$PROJECT_DIR$/application/home/view/public/nav.html" />
@@ -225,6 +222,8 @@ @@ -225,6 +222,8 @@
225 <option value="$PROJECT_DIR$/application/admin/view/user_exp_log_audit/edit.html" /> 222 <option value="$PROJECT_DIR$/application/admin/view/user_exp_log_audit/edit.html" />
226 <option value="D:/我的文档/Documents/NetSarang Computer/6/Xftp/Temporary/Doc [2].php" /> 223 <option value="D:/我的文档/Documents/NetSarang Computer/6/Xftp/Temporary/Doc [2].php" />
227 <option value="$PROJECT_DIR$/application/admin/controller/MerchantAudit.php" /> 224 <option value="$PROJECT_DIR$/application/admin/controller/MerchantAudit.php" />
  225 + <option value="$PROJECT_DIR$/application/home/view/merchant/enter_view.html" />
  226 + <option value="$PROJECT_DIR$/application/home/controller/Merchant.php" />
228 </list> 227 </list>
229 </option> 228 </option>
230 </component> 229 </component>
@@ -315,42 +314,6 @@ @@ -315,42 +314,6 @@
315 <item name="advertising" type="b2602c69:ProjectViewProjectNode" /> 314 <item name="advertising" type="b2602c69:ProjectViewProjectNode" />
316 <item name="advertising" type="462c0819:PsiDirectoryNode" /> 315 <item name="advertising" type="462c0819:PsiDirectoryNode" />
317 <item name="application" type="462c0819:PsiDirectoryNode" /> 316 <item name="application" type="462c0819:PsiDirectoryNode" />
318 - <item name="admin" type="462c0819:PsiDirectoryNode" />  
319 - </path>  
320 - <path>  
321 - <item name="advertising" type="b2602c69:ProjectViewProjectNode" />  
322 - <item name="advertising" type="462c0819:PsiDirectoryNode" />  
323 - <item name="application" type="462c0819:PsiDirectoryNode" />  
324 - <item name="admin" type="462c0819:PsiDirectoryNode" />  
325 - <item name="controller" type="462c0819:PsiDirectoryNode" />  
326 - </path>  
327 - <path>  
328 - <item name="advertising" type="b2602c69:ProjectViewProjectNode" />  
329 - <item name="advertising" type="462c0819:PsiDirectoryNode" />  
330 - <item name="application" type="462c0819:PsiDirectoryNode" />  
331 - <item name="admin" type="462c0819:PsiDirectoryNode" />  
332 - <item name="view" type="462c0819:PsiDirectoryNode" />  
333 - </path>  
334 - <path>  
335 - <item name="advertising" type="b2602c69:ProjectViewProjectNode" />  
336 - <item name="advertising" type="462c0819:PsiDirectoryNode" />  
337 - <item name="application" type="462c0819:PsiDirectoryNode" />  
338 - <item name="admin" type="462c0819:PsiDirectoryNode" />  
339 - <item name="view" type="462c0819:PsiDirectoryNode" />  
340 - <item name="user_exp_log_audit" type="462c0819:PsiDirectoryNode" />  
341 - </path>  
342 - <path>  
343 - <item name="advertising" type="b2602c69:ProjectViewProjectNode" />  
344 - <item name="advertising" type="462c0819:PsiDirectoryNode" />  
345 - <item name="application" type="462c0819:PsiDirectoryNode" />  
346 - <item name="admin" type="462c0819:PsiDirectoryNode" />  
347 - <item name="view" type="462c0819:PsiDirectoryNode" />  
348 - <item name="user_money_log_audit" type="462c0819:PsiDirectoryNode" />  
349 - </path>  
350 - <path>  
351 - <item name="advertising" type="b2602c69:ProjectViewProjectNode" />  
352 - <item name="advertising" type="462c0819:PsiDirectoryNode" />  
353 - <item name="application" type="462c0819:PsiDirectoryNode" />  
354 <item name="home" type="462c0819:PsiDirectoryNode" /> 317 <item name="home" type="462c0819:PsiDirectoryNode" />
355 </path> 318 </path>
356 <path> 319 <path>
@@ -520,21 +483,7 @@ @@ -520,21 +483,7 @@
520 <workItem from="1573174620844" duration="32581000" /> 483 <workItem from="1573174620844" duration="32581000" />
521 <workItem from="1573259331081" duration="30435000" /> 484 <workItem from="1573259331081" duration="30435000" />
522 <workItem from="1573432217070" duration="2199000" /> 485 <workItem from="1573432217070" duration="2199000" />
523 - <workItem from="1573519427130" duration="1226000" />  
524 - </task>  
525 - <task id="LOCAL-00497" summary="商户申请">  
526 - <created>1573283250525</created>  
527 - <option name="number" value="00497" />  
528 - <option name="presentableId" value="LOCAL-00497" />  
529 - <option name="project" value="LOCAL" />  
530 - <updated>1573283250525</updated>  
531 - </task>  
532 - <task id="LOCAL-00498" summary="商户申请">  
533 - <created>1573283279027</created>  
534 - <option name="number" value="00498" />  
535 - <option name="presentableId" value="LOCAL-00498" />  
536 - <option name="project" value="LOCAL" />  
537 - <updated>1573283279027</updated> 486 + <workItem from="1573519427130" duration="3109000" />
538 </task> 487 </task>
539 <task id="LOCAL-00499" summary="商户申请"> 488 <task id="LOCAL-00499" summary="商户申请">
540 <created>1573283388103</created> 489 <created>1573283388103</created>
@@ -865,11 +814,25 @@ @@ -865,11 +814,25 @@
865 <option name="project" value="LOCAL" /> 814 <option name="project" value="LOCAL" />
866 <updated>1573294224448</updated> 815 <updated>1573294224448</updated>
867 </task> 816 </task>
868 - <option name="localTasksCounter" value="546" /> 817 + <task id="LOCAL-00546" summary=" 商户申请">
  818 + <created>1573521445217</created>
  819 + <option name="number" value="00546" />
  820 + <option name="presentableId" value="LOCAL-00546" />
  821 + <option name="project" value="LOCAL" />
  822 + <updated>1573521445217</updated>
  823 + </task>
  824 + <task id="LOCAL-00547" summary=" 商户申请">
  825 + <created>1573522719090</created>
  826 + <option name="number" value="00547" />
  827 + <option name="presentableId" value="LOCAL-00547" />
  828 + <option name="project" value="LOCAL" />
  829 + <updated>1573522719090</updated>
  830 + </task>
  831 + <option name="localTasksCounter" value="548" />
869 <servers /> 832 <servers />
870 </component> 833 </component>
871 <component name="TimeTrackingManager"> 834 <component name="TimeTrackingManager">
872 - <option name="totallyTimeSpent" value="407533000" /> 835 + <option name="totallyTimeSpent" value="409416000" />
873 </component> 836 </component>
874 <component name="ToolWindowManager"> 837 <component name="ToolWindowManager">
875 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" /> 838 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
@@ -1038,13 +1001,6 @@ @@ -1038,13 +1001,6 @@
1038 </state> 1001 </state>
1039 </provider> 1002 </provider>
1040 </entry> 1003 </entry>
1041 - <entry file="file://$PROJECT_DIR$/application/home/controller/Merchant.php">  
1042 - <provider selected="true" editor-type-id="text-editor">  
1043 - <state relative-caret-position="674">  
1044 - <caret line="128" column="36" selection-start-line="128" selection-start-column="22" selection-end-line="128" selection-end-column="36" />  
1045 - </state>  
1046 - </provider>  
1047 - </entry>  
1048 <entry file="file://$PROJECT_DIR$/public/assets/advertising/css/entry.css"> 1004 <entry file="file://$PROJECT_DIR$/public/assets/advertising/css/entry.css">
1049 <provider selected="true" editor-type-id="text-editor"> 1005 <provider selected="true" editor-type-id="text-editor">
1050 <state relative-caret-position="697"> 1006 <state relative-caret-position="697">
@@ -1119,13 +1075,6 @@ @@ -1119,13 +1075,6 @@
1119 </state> 1075 </state>
1120 </provider> 1076 </provider>
1121 </entry> 1077 </entry>
1122 - <entry file="file://$PROJECT_DIR$/application/home/view/merchant/enter_view.html">  
1123 - <provider selected="true" editor-type-id="text-editor">  
1124 - <state relative-caret-position="153">  
1125 - <caret line="136" column="12" selection-start-line="136" selection-start-column="12" selection-end-line="233" selection-end-column="15" />  
1126 - </state>  
1127 - </provider>  
1128 - </entry>  
1129 <entry file="file://$PROJECT_DIR$/application/home/view/public/head.html"> 1078 <entry file="file://$PROJECT_DIR$/application/home/view/public/head.html">
1130 <provider selected="true" editor-type-id="text-editor"> 1079 <provider selected="true" editor-type-id="text-editor">
1131 <state relative-caret-position="68"> 1080 <state relative-caret-position="68">
@@ -1250,13 +1199,30 @@ @@ -1250,13 +1199,30 @@
1250 </state> 1199 </state>
1251 </provider> 1200 </provider>
1252 </entry> 1201 </entry>
  1202 + <entry file="file://$PROJECT_DIR$/application/home/view/merchant/enter_view.html">
  1203 + <provider selected="true" editor-type-id="text-editor">
  1204 + <state relative-caret-position="444">
  1205 + <caret line="111" column="49" selection-start-line="111" selection-start-column="40" selection-end-line="111" selection-end-column="49" />
  1206 + <folding>
  1207 + <element signature="e#5425#10699#0" />
  1208 + </folding>
  1209 + </state>
  1210 + </provider>
  1211 + </entry>
1253 <entry file="file://$PROJECT_DIR$/application/admin/controller/MerchantAudit.php"> 1212 <entry file="file://$PROJECT_DIR$/application/admin/controller/MerchantAudit.php">
1254 <provider selected="true" editor-type-id="text-editor"> 1213 <provider selected="true" editor-type-id="text-editor">
1255 - <state relative-caret-position="629"> 1214 + <state relative-caret-position="1037">
1256 <caret line="147" column="62" selection-start-line="147" selection-start-column="62" selection-end-line="147" selection-end-column="62" /> 1215 <caret line="147" column="62" selection-start-line="147" selection-start-column="62" selection-end-line="147" selection-end-column="62" />
1257 </state> 1216 </state>
1258 </provider> 1217 </provider>
1259 </entry> 1218 </entry>
  1219 + <entry file="file://$PROJECT_DIR$/application/home/controller/Merchant.php">
  1220 + <provider selected="true" editor-type-id="text-editor">
  1221 + <state relative-caret-position="443">
  1222 + <caret line="113" column="42" selection-start-line="113" selection-start-column="42" selection-end-line="113" selection-end-column="42" />
  1223 + </state>
  1224 + </provider>
  1225 + </entry>
1260 </component> 1226 </component>
1261 <component name="masterDetails"> 1227 <component name="masterDetails">
1262 <states> 1228 <states>
@@ -295,6 +295,9 @@ class MerchantGoods extends Backend @@ -295,6 +295,9 @@ class MerchantGoods extends Backend
295 } 295 }
296 $params['start_time'] = strtotime($params['start_time']); 296 $params['start_time'] = strtotime($params['start_time']);
297 $params['end_time'] = strtotime($params['end_time']); 297 $params['end_time'] = strtotime($params['end_time']);
  298 + if($row['status'] == 3){
  299 + $param['status'] = 1;
  300 + }
298 $result = $row->allowField(true)->save($params); 301 $result = $row->allowField(true)->save($params);
299 Db::commit(); 302 Db::commit();
300 } catch (ValidateException $e) { 303 } catch (ValidateException $e) {