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

商户申请

@@ -5,8 +5,7 @@ @@ -5,8 +5,7 @@
5 </component> 5 </component>
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$/application/home/controller/Index.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/controller/Index.php" afterDir="false" />  
9 - <change beforePath="$PROJECT_DIR$/application/home/view/index/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/view/index/index.html" afterDir="false" /> 8 + <change beforePath="$PROJECT_DIR$/application/home/controller/Goods.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/home/controller/Goods.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" />
@@ -34,11 +33,20 @@ @@ -34,11 +33,20 @@
34 </component> 33 </component>
35 <component name="FileEditorManager"> 34 <component name="FileEditorManager">
36 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> 35 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
37 - <file leaf-file-name="index.html" pinned="false" current-in-tab="true"> 36 + <file leaf-file-name="Goods.php" pinned="false" current-in-tab="true">
  37 + <entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php">
  38 + <provider selected="true" editor-type-id="text-editor">
  39 + <state relative-caret-position="460">
  40 + <caret line="100" column="30" selection-start-line="100" selection-start-column="30" selection-end-line="100" selection-end-column="30" />
  41 + </state>
  42 + </provider>
  43 + </entry>
  44 + </file>
  45 + <file leaf-file-name="index.html" pinned="false" current-in-tab="false">
38 <entry file="file://$PROJECT_DIR$/application/home/view/index/index.html"> 46 <entry file="file://$PROJECT_DIR$/application/home/view/index/index.html">
39 <provider selected="true" editor-type-id="text-editor"> 47 <provider selected="true" editor-type-id="text-editor">
40 - <state relative-caret-position="307">  
41 - <caret line="87" column="44" selection-start-line="87" selection-start-column="44" selection-end-line="87" selection-end-column="44" /> 48 + <state relative-caret-position="749">
  49 + <caret line="92" column="34" selection-start-line="92" selection-start-column="34" selection-end-line="92" selection-end-column="34" />
42 </state> 50 </state>
43 </provider> 51 </provider>
44 </entry> 52 </entry>
@@ -46,8 +54,8 @@ @@ -46,8 +54,8 @@
46 <file leaf-file-name="Index.php" pinned="false" current-in-tab="false"> 54 <file leaf-file-name="Index.php" pinned="false" current-in-tab="false">
47 <entry file="file://$PROJECT_DIR$/application/home/controller/Index.php"> 55 <entry file="file://$PROJECT_DIR$/application/home/controller/Index.php">
48 <provider selected="true" editor-type-id="text-editor"> 56 <provider selected="true" editor-type-id="text-editor">
49 - <state relative-caret-position="306">  
50 - <caret line="26" column="38" selection-start-line="26" selection-start-column="19" selection-end-line="26" selection-end-column="38" /> 57 + <state relative-caret-position="-918">
  58 + <caret line="80" column="9" selection-start-line="80" selection-start-column="9" selection-end-line="80" selection-end-column="9" />
51 </state> 59 </state>
52 </provider> 60 </provider>
53 </entry> 61 </entry>
@@ -55,8 +63,8 @@ @@ -55,8 +63,8 @@
55 <file leaf-file-name="Goods.php" pinned="false" current-in-tab="false"> 63 <file leaf-file-name="Goods.php" pinned="false" current-in-tab="false">
56 <entry file="file://$PROJECT_DIR$/application/home/model/Goods.php"> 64 <entry file="file://$PROJECT_DIR$/application/home/model/Goods.php">
57 <provider selected="true" editor-type-id="text-editor"> 65 <provider selected="true" editor-type-id="text-editor">
58 - <state relative-caret-position="306">  
59 - <caret line="23" column="90" selection-start-line="23" selection-start-column="90" selection-end-line="23" selection-end-column="90" /> 66 + <state>
  67 + <caret column="5" lean-forward="true" selection-start-column="5" selection-end-column="5" />
60 </state> 68 </state>
61 </provider> 69 </provider>
62 </entry> 70 </entry>
@@ -146,7 +154,6 @@ @@ -146,7 +154,6 @@
146 <option value="$PROJECT_DIR$/application/home/controller/Member.php" /> 154 <option value="$PROJECT_DIR$/application/home/controller/Member.php" />
147 <option value="$PROJECT_DIR$/application/home/view/member/my_information.html" /> 155 <option value="$PROJECT_DIR$/application/home/view/member/my_information.html" />
148 <option value="$PROJECT_DIR$/application/home/view/public/head.html" /> 156 <option value="$PROJECT_DIR$/application/home/view/public/head.html" />
149 - <option value="$PROJECT_DIR$/application/home/controller/Goods.php" />  
150 <option value="$PROJECT_DIR$/application/home/view/goods/video_detail.html" /> 157 <option value="$PROJECT_DIR$/application/home/view/goods/video_detail.html" />
151 <option value="$PROJECT_DIR$/application/home/view/goods/content_detail.html" /> 158 <option value="$PROJECT_DIR$/application/home/view/goods/content_detail.html" />
152 <option value="$PROJECT_DIR$/application/admin/controller/UserExpLogAudit.php" /> 159 <option value="$PROJECT_DIR$/application/admin/controller/UserExpLogAudit.php" />
@@ -164,6 +171,7 @@ @@ -164,6 +171,7 @@
164 <option value="$PROJECT_DIR$/application/home/model/Goods.php" /> 171 <option value="$PROJECT_DIR$/application/home/model/Goods.php" />
165 <option value="$PROJECT_DIR$/application/home/controller/Index.php" /> 172 <option value="$PROJECT_DIR$/application/home/controller/Index.php" />
166 <option value="$PROJECT_DIR$/application/home/view/index/index.html" /> 173 <option value="$PROJECT_DIR$/application/home/view/index/index.html" />
  174 + <option value="$PROJECT_DIR$/application/home/controller/Goods.php" />
167 </list> 175 </list>
168 </option> 176 </option>
169 </component> 177 </component>
@@ -368,28 +376,7 @@ @@ -368,28 +376,7 @@
368 <workItem from="1573174620844" duration="32581000" /> 376 <workItem from="1573174620844" duration="32581000" />
369 <workItem from="1573259331081" duration="30435000" /> 377 <workItem from="1573259331081" duration="30435000" />
370 <workItem from="1573432217070" duration="2199000" /> 378 <workItem from="1573432217070" duration="2199000" />
371 - <workItem from="1573519427130" duration="16054000" />  
372 - </task>  
373 - <task id="LOCAL-00551" summary=" 商户申请">  
374 - <created>1573526718080</created>  
375 - <option name="number" value="00551" />  
376 - <option name="presentableId" value="LOCAL-00551" />  
377 - <option name="project" value="LOCAL" />  
378 - <updated>1573526718080</updated>  
379 - </task>  
380 - <task id="LOCAL-00552" summary=" 商户申请">  
381 - <created>1573526757451</created>  
382 - <option name="number" value="00552" />  
383 - <option name="presentableId" value="LOCAL-00552" />  
384 - <option name="project" value="LOCAL" />  
385 - <updated>1573526757451</updated>  
386 - </task>  
387 - <task id="LOCAL-00553" summary=" 商户申请">  
388 - <created>1573526837622</created>  
389 - <option name="number" value="00553" />  
390 - <option name="presentableId" value="LOCAL-00553" />  
391 - <option name="project" value="LOCAL" />  
392 - <updated>1573526837622</updated> 379 + <workItem from="1573519427130" duration="16660000" />
393 </task> 380 </task>
394 <task id="LOCAL-00554" summary=" 商户申请"> 381 <task id="LOCAL-00554" summary=" 商户申请">
395 <created>1573526885516</created> 382 <created>1573526885516</created>
@@ -713,11 +700,32 @@ @@ -713,11 +700,32 @@
713 <option name="project" value="LOCAL" /> 700 <option name="project" value="LOCAL" />
714 <updated>1573562324144</updated> 701 <updated>1573562324144</updated>
715 </task> 702 </task>
716 - <option name="localTasksCounter" value="600" /> 703 + <task id="LOCAL-00600" summary=" 商户申请">
  704 + <created>1573562410823</created>
  705 + <option name="number" value="00600" />
  706 + <option name="presentableId" value="LOCAL-00600" />
  707 + <option name="project" value="LOCAL" />
  708 + <updated>1573562410823</updated>
  709 + </task>
  710 + <task id="LOCAL-00601" summary=" 商户申请">
  711 + <created>1573562434793</created>
  712 + <option name="number" value="00601" />
  713 + <option name="presentableId" value="LOCAL-00601" />
  714 + <option name="project" value="LOCAL" />
  715 + <updated>1573562434793</updated>
  716 + </task>
  717 + <task id="LOCAL-00602" summary=" 商户申请">
  718 + <created>1573562470170</created>
  719 + <option name="number" value="00602" />
  720 + <option name="presentableId" value="LOCAL-00602" />
  721 + <option name="project" value="LOCAL" />
  722 + <updated>1573562470170</updated>
  723 + </task>
  724 + <option name="localTasksCounter" value="603" />
717 <servers /> 725 <servers />
718 </component> 726 </component>
719 <component name="TimeTrackingManager"> 727 <component name="TimeTrackingManager">
720 - <option name="totallyTimeSpent" value="422361000" /> 728 + <option name="totallyTimeSpent" value="422967000" />
721 </component> 729 </component>
722 <component name="ToolWindowManager"> 730 <component name="ToolWindowManager">
723 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" /> 731 <frame x="-8" y="-8" width="1936" height="1056" extended-state="6" />
@@ -1002,13 +1010,6 @@ @@ -1002,13 +1010,6 @@
1002 </state> 1010 </state>
1003 </provider> 1011 </provider>
1004 </entry> 1012 </entry>
1005 - <entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php">  
1006 - <provider selected="true" editor-type-id="text-editor">  
1007 - <state relative-caret-position="164">  
1008 - <caret line="105" column="56" selection-start-line="105" selection-start-column="56" selection-end-line="105" selection-end-column="56" />  
1009 - </state>  
1010 - </provider>  
1011 - </entry>  
1012 <entry file="file://$PROJECT_DIR$/application/home/view/goods/audio_detail.html"> 1013 <entry file="file://$PROJECT_DIR$/application/home/view/goods/audio_detail.html">
1013 <provider selected="true" editor-type-id="text-editor"> 1014 <provider selected="true" editor-type-id="text-editor">
1014 <state relative-caret-position="288"> 1015 <state relative-caret-position="288">
@@ -1092,24 +1093,31 @@ @@ -1092,24 +1093,31 @@
1092 </state> 1093 </state>
1093 </provider> 1094 </provider>
1094 </entry> 1095 </entry>
  1096 + <entry file="file://$PROJECT_DIR$/application/home/view/index/index.html">
  1097 + <provider selected="true" editor-type-id="text-editor">
  1098 + <state relative-caret-position="749">
  1099 + <caret line="92" column="34" selection-start-line="92" selection-start-column="34" selection-end-line="92" selection-end-column="34" />
  1100 + </state>
  1101 + </provider>
  1102 + </entry>
1095 <entry file="file://$PROJECT_DIR$/application/home/model/Goods.php"> 1103 <entry file="file://$PROJECT_DIR$/application/home/model/Goods.php">
1096 <provider selected="true" editor-type-id="text-editor"> 1104 <provider selected="true" editor-type-id="text-editor">
1097 - <state relative-caret-position="306">  
1098 - <caret line="23" column="90" selection-start-line="23" selection-start-column="90" selection-end-line="23" selection-end-column="90" /> 1105 + <state>
  1106 + <caret column="5" lean-forward="true" selection-start-column="5" selection-end-column="5" />
1099 </state> 1107 </state>
1100 </provider> 1108 </provider>
1101 </entry> 1109 </entry>
1102 <entry file="file://$PROJECT_DIR$/application/home/controller/Index.php"> 1110 <entry file="file://$PROJECT_DIR$/application/home/controller/Index.php">
1103 <provider selected="true" editor-type-id="text-editor"> 1111 <provider selected="true" editor-type-id="text-editor">
1104 - <state relative-caret-position="306">  
1105 - <caret line="26" column="38" selection-start-line="26" selection-start-column="19" selection-end-line="26" selection-end-column="38" /> 1112 + <state relative-caret-position="-918">
  1113 + <caret line="80" column="9" selection-start-line="80" selection-start-column="9" selection-end-line="80" selection-end-column="9" />
1106 </state> 1114 </state>
1107 </provider> 1115 </provider>
1108 </entry> 1116 </entry>
1109 - <entry file="file://$PROJECT_DIR$/application/home/view/index/index.html"> 1117 + <entry file="file://$PROJECT_DIR$/application/home/controller/Goods.php">
1110 <provider selected="true" editor-type-id="text-editor"> 1118 <provider selected="true" editor-type-id="text-editor">
1111 - <state relative-caret-position="307">  
1112 - <caret line="87" column="44" selection-start-line="87" selection-start-column="44" selection-end-line="87" selection-end-column="44" /> 1119 + <state relative-caret-position="460">
  1120 + <caret line="100" column="30" selection-start-line="100" selection-start-column="30" selection-end-line="100" selection-end-column="30" />
1113 </state> 1121 </state>
1114 </provider> 1122 </provider>
1115 </entry> 1123 </entry>
@@ -92,7 +92,8 @@ class Goods extends WechatBase @@ -92,7 +92,8 @@ class Goods extends WechatBase
92 }else{ 92 }else{
93 $data['is_answer'] = 1;//答过题 93 $data['is_answer'] = 1;//答过题
94 //判断是否全部正确 94 //判断是否全部正确
95 - $correct = Db::name('user_question_answer')->where(['goods_id'=>$goods_id,'user_id'=>$this->user_id,'is_correct'=>0])->find(); 95 + $correct = Db::name('user_question_answer')->where(['goods_id'=>$goods_id,'user_id'=>$this->user_id,'is_correct'=>0])->fetchSql()->find();
  96 + dump($correct);
96 if(empty($correct)){ 97 if(empty($correct)){
97 $is_correct = 1;//全部正确 98 $is_correct = 1;//全部正确
98 }else{ 99 }else{