作者 xiaohu thinkpad

评价问题重构

@@ -4,6 +4,8 @@ @@ -4,6 +4,8 @@
4 <list default="true" id="03b59864-5835-4588-bfae-54004809f199" name="Default" comment=""> 4 <list default="true" id="03b59864-5835-4588-bfae-54004809f199" name="Default" comment="">
5 <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> 5 <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6 <change beforePath="$PROJECT_DIR$/app/user/controller/CommentController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/user/controller/CommentController.php" afterDir="false" /> 6 <change beforePath="$PROJECT_DIR$/app/user/controller/CommentController.php" beforeDir="false" afterPath="$PROJECT_DIR$/app/user/controller/CommentController.php" afterDir="false" />
  7 + <change beforePath="$PROJECT_DIR$/public/themes/simpleboot3/user/comment/look_ping.html" beforeDir="false" afterPath="$PROJECT_DIR$/public/themes/simpleboot3/user/comment/look_ping.html" afterDir="false" />
  8 + <change beforePath="$PROJECT_DIR$/public/themes/simpleboot3/user/comment/my_ping.html" beforeDir="false" afterPath="$PROJECT_DIR$/public/themes/simpleboot3/user/comment/my_ping.html" afterDir="false" />
7 </list> 9 </list>
8 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> 10 <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9 <option name="TRACKING_ENABLED" value="true" /> 11 <option name="TRACKING_ENABLED" value="true" />
@@ -31,107 +33,48 @@ @@ -31,107 +33,48 @@
31 </component> 33 </component>
32 <component name="FileEditorManager"> 34 <component name="FileEditorManager">
33 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> 35 <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
34 - <file leaf-file-name="22.html" pinned="false" current-in-tab="false">  
35 - <entry file="file://$USER_HOME$/Desktop/开发资料/temp/22.html"> 36 + <file leaf-file-name="go_ping.html" pinned="false" current-in-tab="false">
  37 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/user/comment/go_ping.html">
36 <provider selected="true" editor-type-id="text-editor"> 38 <provider selected="true" editor-type-id="text-editor">
37 - <state relative-caret-position="21">  
38 - <caret line="573" column="31" selection-start-line="573" selection-start-column="31" selection-end-line="573" selection-end-column="31" />  
39 - <folding>  
40 - <element signature="n#style#0;n#head#0;n#html#0;n#!!top" />  
41 - <element signature="n#script#5;n#head#0;n#html#0;n#!!top" />  
42 - <element signature="n#style#0;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
43 - <element signature="n#style#0;n#span#1;n#li#1;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
44 - <element signature="n#style#0;n#span#1;n#li#2;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
45 - <element signature="n#style#0;n#input#1;n#span#1;n#li#2;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
46 - <element signature="n#style#0;n#input#2;n#span#1;n#li#2;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
47 - <element signature="n#style#0;n#span#1;n#li#3;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
48 - <element signature="n#style#0;n#span#1;n#li#4;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
49 - <element signature="n#style#0;n#span#1;n#li#5;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
50 - <element signature="n#style#0;n#span#1;n#li#6;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
51 - <element signature="n#style#0;n#span#1;n#li#7;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
52 - <element signature="n#style#0;n#span#1;n#li#8;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
53 - <element signature="n#style#0;n#span#1;n#li#9;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
54 - <element signature="n#style#0;n#span#1;n#li#10;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
55 - <element signature="n#style#0;n#span#1;n#li#11;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
56 - <element signature="n#style#0;n#span#2;n#li#11;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
57 - <element signature="n#style#0;n#li#12;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
58 - <element signature="n#style#0;n#span#1;n#li#12;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
59 - <element signature="n#style#0;n#span#1;n#li#13;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
60 - <element signature="n#style#0;n#span#1;n#li#14;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
61 - <element signature="n#style#0;n#li#15;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
62 - <element signature="n#style#0;n#span#1;n#li#15;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
63 - <element signature="n#style#0;n#li#16;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
64 - <element signature="n#style#0;n#span#1;n#li#16;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
65 - <element signature="n#style#0;n#li#17;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
66 - <element signature="n#style#0;n#span#1;n#li#17;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
67 - <element signature="n#style#0;n#li#20;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
68 - <element signature="n#style#0;n#li#21;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
69 - <element signature="n#style#0;n#span#1;n#li#21;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
70 - <element signature="n#style#0;n#li#22;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
71 - <element signature="n#style#0;n#span#1;n#li#22;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
72 - <element signature="n#style#0;n#li#23;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
73 - <element signature="n#style#0;n#span#1;n#li#23;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
74 - <element signature="n#style#0;n#li#24;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
75 - <element signature="n#style#0;n#span#1;n#li#24;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
76 - <element signature="n#style#0;n#span#2;n#li#24;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
77 - <element signature="n#style#0;n#span#3;n#li#24;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
78 - <element signature="n#style#0;n#span#4;n#li#24;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
79 - <element signature="n#style#0;n#li#25;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
80 - <element signature="n#style#0;n#span#1;n#li#25;n#ul#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
81 - <element signature="n#style#0;n#div#0;n#form#0;n#div#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top" expanded="true" />  
82 - </folding> 39 + <state relative-caret-position="-2247" />
  40 + </provider>
  41 + </entry>
  42 + </file>
  43 + <file leaf-file-name="my_yuyue.html" pinned="false" current-in-tab="false">
  44 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/user/yuyue/my_yuyue.html">
  45 + <provider selected="true" editor-type-id="text-editor">
  46 + <state relative-caret-position="-3906" />
  47 + </provider>
  48 + </entry>
  49 + </file>
  50 + <file leaf-file-name="my_ping.html" pinned="false" current-in-tab="false">
  51 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/user/comment/my_ping.html">
  52 + <provider selected="true" editor-type-id="text-editor">
  53 + <state relative-caret-position="84">
  54 + <caret line="27" column="48" selection-start-line="27" selection-start-column="48" selection-end-line="27" selection-end-column="48" />
83 </state> 55 </state>
84 </provider> 56 </provider>
85 </entry> 57 </entry>
86 </file> 58 </file>
87 - <file leaf-file-name="CommentController.php" pinned="false" current-in-tab="true">  
88 - <entry file="file://$PROJECT_DIR$/app/user/controller/CommentController.php"> 59 + <file leaf-file-name="my_yuyue_coach.html" pinned="false" current-in-tab="false">
  60 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/user/yuyue/my_yuyue_coach.html">
89 <provider selected="true" editor-type-id="text-editor"> 61 <provider selected="true" editor-type-id="text-editor">
90 - <state relative-caret-position="315">  
91 - <caret line="49" column="9" selection-start-line="49" selection-start-column="9" selection-end-line="49" selection-end-column="9" />  
92 - <folding>  
93 - <element signature="e#821#1437#0#PHP" />  
94 - <element signature="e#982#1035#0#PHP" />  
95 - <element signature="e#1543#1618#0#PHP" />  
96 - <element signature="e#2165#2309#0#PHP" />  
97 - <element signature="e#2237#2309#0#PHP" />  
98 - <element signature="e#3208#4141#0#PHP" />  
99 - <element signature="e#3305#3358#0#PHP" />  
100 - <element signature="e#3398#3441#0#PHP" />  
101 - <element signature="e#3398#3492#0#PHP" />  
102 - <element signature="e#3398#3551#0#PHP" />  
103 - <element signature="e#3398#3587#0#PHP" />  
104 - <element signature="e#3680#3722#0#PHP" />  
105 - <element signature="e#3680#3773#0#PHP" />  
106 - <element signature="e#3680#3840#0#PHP" />  
107 - <element signature="e#3680#3870#0#PHP" />  
108 - <element signature="e#4164#5267#0#PHP" />  
109 - <element signature="e#4264#4317#0#PHP" />  
110 - <element signature="e#4357#4400#0#PHP" />  
111 - <element signature="e#4357#4457#0#PHP" />  
112 - <element signature="e#4357#4516#0#PHP" />  
113 - <element signature="e#4357#4552#0#PHP" />  
114 - <element signature="e#4655#4697#0#PHP" />  
115 - <element signature="e#4655#4748#0#PHP" />  
116 - <element signature="e#4655#4815#0#PHP" />  
117 - <element signature="e#4655#4845#0#PHP" />  
118 - <element signature="e#5292#6190#0#PHP" />  
119 - <element signature="e#5479#5522#0#PHP" />  
120 - <element signature="e#5479#5574#0#PHP" />  
121 - <element signature="e#5479#5619#0#PHP" />  
122 - <element signature="e#5479#5662#0#PHP" />  
123 - <element signature="e#5479#5747#0#PHP" />  
124 - <element signature="e#5479#5783#0#PHP" />  
125 - <element signature="e#5824#5871#0#PHP" />  
126 - <element signature="e#5824#5928#0#PHP" />  
127 - <element signature="e#5824#5997#0#PHP" />  
128 - <element signature="e#5824#6032#0#PHP" />  
129 - <element signature="e#6504#7386#0#PHP" />  
130 - <element signature="e#6730#7380#0#PHP" />  
131 - <element signature="e#7141#7301#0#PHP" />  
132 - <element signature="e#7221#7301#0#PHP" />  
133 - <element signature="e#7311#7380#0#PHP" />  
134 - </folding> 62 + <state relative-caret-position="3696">
  63 + <caret line="244" column="24" selection-start-line="244" selection-start-column="24" selection-end-line="247" selection-end-column="30" />
  64 + </state>
  65 + </provider>
  66 + </entry>
  67 + </file>
  68 + <file leaf-file-name="look_jindu.html" pinned="false" current-in-tab="false">
  69 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/user/comment/look_jindu.html">
  70 + <provider selected="true" editor-type-id="text-editor" />
  71 + </entry>
  72 + </file>
  73 + <file leaf-file-name="look_ping.html" pinned="false" current-in-tab="false">
  74 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/user/comment/look_ping.html">
  75 + <provider selected="true" editor-type-id="text-editor">
  76 + <state relative-caret-position="210">
  77 + <caret line="21" column="44" selection-start-line="21" selection-start-column="44" selection-end-line="21" selection-end-column="44" />
135 </state> 78 </state>
136 </provider> 79 </provider>
137 </entry> 80 </entry>
@@ -288,52 +231,28 @@ @@ -288,52 +231,28 @@
288 </provider> 231 </provider>
289 </entry> 232 </entry>
290 </file> 233 </file>
291 - <file leaf-file-name="student.html" pinned="false" current-in-tab="false">  
292 - <entry file="file://$PROJECT_DIR$/public/themes/admin_simpleboot3/admin/user/student.html">  
293 - <provider selected="true" editor-type-id="text-editor">  
294 - <state relative-caret-position="567">  
295 - <caret line="43" column="29" lean-forward="true" selection-start-line="43" selection-start-column="29" selection-end-line="43" selection-end-column="29" />  
296 - </state>  
297 - </provider>  
298 - </entry>  
299 - </file>  
300 - <file leaf-file-name="common.php" pinned="false" current-in-tab="false">  
301 - <entry file="file://$PROJECT_DIR$/simplewind/cmf/common.php">  
302 - <provider selected="true" editor-type-id="text-editor">  
303 - <state relative-caret-position="796">  
304 - <caret line="2103" column="43" selection-start-line="2103" selection-start-column="43" selection-end-line="2103" selection-end-column="43" />  
305 - </state>  
306 - </provider>  
307 - </entry>  
308 - </file>  
309 - <file leaf-file-name="helper.php" pinned="false" current-in-tab="false">  
310 - <entry file="file://$PROJECT_DIR$/simplewind/thinkphp/helper.php">  
311 - <provider selected="true" editor-type-id="text-editor">  
312 - <state relative-caret-position="297">  
313 - <caret line="458" column="13" selection-start-line="458" selection-start-column="13" selection-end-line="458" selection-end-column="13" />  
314 - </state>  
315 - </provider>  
316 - </entry>  
317 - </file>  
318 - <file leaf-file-name="refund.php" pinned="false" current-in-tab="false">  
319 - <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/refund.php">  
320 - <provider selected="true" editor-type-id="text-editor" />  
321 - </entry>  
322 - </file>  
323 - <file leaf-file-name="WxPay.Config.php" pinned="false" current-in-tab="false">  
324 - <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/WxPay.Config.php"> 234 + <file leaf-file-name="index.php" pinned="false" current-in-tab="false">
  235 + <entry file="file://$PROJECT_DIR$/public/index.php">
325 <provider selected="true" editor-type-id="text-editor"> 236 <provider selected="true" editor-type-id="text-editor">
326 - <state relative-caret-position="468">  
327 - <caret line="104" column="85" lean-forward="true" selection-start-line="104" selection-start-column="85" selection-end-line="104" selection-end-column="85" /> 237 + <state relative-caret-position="210">
  238 + <caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" />
328 </state> 239 </state>
329 </provider> 240 </provider>
330 </entry> 241 </entry>
331 </file> 242 </file>
332 - <file leaf-file-name="index.php" pinned="false" current-in-tab="false">  
333 - <entry file="file://$PROJECT_DIR$/public/index.php"> 243 + <file leaf-file-name="CommentController.php" pinned="false" current-in-tab="true">
  244 + <entry file="file://$PROJECT_DIR$/app/user/controller/CommentController.php">
334 <provider selected="true" editor-type-id="text-editor"> 245 <provider selected="true" editor-type-id="text-editor">
335 - <state relative-caret-position="210">  
336 - <caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" /> 246 + <state relative-caret-position="357">
  247 + <caret line="77" column="64" selection-start-line="77" selection-start-column="64" selection-end-line="77" selection-end-column="64" />
  248 + <folding>
  249 + <element signature="e#825#1441#0#PHP" />
  250 + <element signature="e#1465#2474#0#PHP" />
  251 + <element signature="e#3341#3620#0#PHP" />
  252 + <element signature="e#3649#4531#0#PHP" />
  253 + <element signature="e#2498#3504#0#PHP" />
  254 + <element signature="e#3530#4205#0#PHP" />
  255 + </folding>
337 </state> 256 </state>
338 </provider> 257 </provider>
339 </entry> 258 </entry>
@@ -369,8 +288,6 @@ @@ -369,8 +288,6 @@
369 <component name="IdeDocumentHistory"> 288 <component name="IdeDocumentHistory">
370 <option name="CHANGED_PATHS"> 289 <option name="CHANGED_PATHS">
371 <list> 290 <list>
372 - <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/xinwen_acticle.htm" />  
373 - <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/hezuo_jiuda.htm" />  
374 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/hezuo_huigu.htm" /> 291 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/hezuo_huigu.htm" />
375 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/chanye_shoucangpin.htm" /> 292 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/chanye_shoucangpin.htm" />
376 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/enter_jituanjiagou [2].htm" /> 293 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/enter_jituanjiagou [2].htm" />
@@ -384,7 +301,6 @@ @@ -384,7 +301,6 @@
384 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/scps_fc_acticle.htm" /> 301 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/scps_fc_acticle.htm" />
385 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/SysconfigController.php" /> 302 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/SysconfigController.php" />
386 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/https_www.ishowx.com.conf" /> 303 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/https_www.ishowx.com.conf" />
387 - <option value="$PROJECT_DIR$/public/themes/simpleboot3/user/yuyue/my_yuyue_coach.html" />  
388 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/OrderController.php" /> 304 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/OrderController.php" />
389 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/sucai.html" /> 305 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/sucai.html" />
390 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/data_edit.html" /> 306 <option value="$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/data_edit.html" />
@@ -419,6 +335,9 @@ @@ -419,6 +335,9 @@
419 <option value="$PROJECT_DIR$/public/index.php" /> 335 <option value="$PROJECT_DIR$/public/index.php" />
420 <option value="$PROJECT_DIR$/app/user/controller/ProfileController.php" /> 336 <option value="$PROJECT_DIR$/app/user/controller/ProfileController.php" />
421 <option value="$PROJECT_DIR$/app/user/controller/YuyueController.php" /> 337 <option value="$PROJECT_DIR$/app/user/controller/YuyueController.php" />
  338 + <option value="$PROJECT_DIR$/public/themes/simpleboot3/user/yuyue/my_yuyue_coach.html" />
  339 + <option value="$PROJECT_DIR$/public/themes/simpleboot3/user/comment/my_ping.html" />
  340 + <option value="$PROJECT_DIR$/public/themes/simpleboot3/user/comment/look_ping.html" />
422 <option value="$PROJECT_DIR$/app/user/controller/CommentController.php" /> 341 <option value="$PROJECT_DIR$/app/user/controller/CommentController.php" />
423 </list> 342 </list>
424 </option> 343 </option>
@@ -496,6 +415,45 @@ @@ -496,6 +415,45 @@
496 <path> 415 <path>
497 <item name="dm161xueche" type="b2602c69:ProjectViewProjectNode" /> 416 <item name="dm161xueche" type="b2602c69:ProjectViewProjectNode" />
498 <item name="dm161xueche" type="462c0819:PsiDirectoryNode" /> 417 <item name="dm161xueche" type="462c0819:PsiDirectoryNode" />
  418 + <item name="public" type="462c0819:PsiDirectoryNode" />
  419 + <item name="themes" type="462c0819:PsiDirectoryNode" />
  420 + </path>
  421 + <path>
  422 + <item name="dm161xueche" type="b2602c69:ProjectViewProjectNode" />
  423 + <item name="dm161xueche" type="462c0819:PsiDirectoryNode" />
  424 + <item name="public" type="462c0819:PsiDirectoryNode" />
  425 + <item name="themes" type="462c0819:PsiDirectoryNode" />
  426 + <item name="simpleboot3" type="462c0819:PsiDirectoryNode" />
  427 + </path>
  428 + <path>
  429 + <item name="dm161xueche" type="b2602c69:ProjectViewProjectNode" />
  430 + <item name="dm161xueche" type="462c0819:PsiDirectoryNode" />
  431 + <item name="public" type="462c0819:PsiDirectoryNode" />
  432 + <item name="themes" type="462c0819:PsiDirectoryNode" />
  433 + <item name="simpleboot3" type="462c0819:PsiDirectoryNode" />
  434 + <item name="user" type="462c0819:PsiDirectoryNode" />
  435 + </path>
  436 + <path>
  437 + <item name="dm161xueche" type="b2602c69:ProjectViewProjectNode" />
  438 + <item name="dm161xueche" type="462c0819:PsiDirectoryNode" />
  439 + <item name="public" type="462c0819:PsiDirectoryNode" />
  440 + <item name="themes" type="462c0819:PsiDirectoryNode" />
  441 + <item name="simpleboot3" type="462c0819:PsiDirectoryNode" />
  442 + <item name="user" type="462c0819:PsiDirectoryNode" />
  443 + <item name="comment" type="462c0819:PsiDirectoryNode" />
  444 + </path>
  445 + <path>
  446 + <item name="dm161xueche" type="b2602c69:ProjectViewProjectNode" />
  447 + <item name="dm161xueche" type="462c0819:PsiDirectoryNode" />
  448 + <item name="public" type="462c0819:PsiDirectoryNode" />
  449 + <item name="themes" type="462c0819:PsiDirectoryNode" />
  450 + <item name="simpleboot3" type="462c0819:PsiDirectoryNode" />
  451 + <item name="user" type="462c0819:PsiDirectoryNode" />
  452 + <item name="yuyue" type="462c0819:PsiDirectoryNode" />
  453 + </path>
  454 + <path>
  455 + <item name="dm161xueche" type="b2602c69:ProjectViewProjectNode" />
  456 + <item name="dm161xueche" type="462c0819:PsiDirectoryNode" />
499 <item name="simplewind" type="462c0819:PsiDirectoryNode" /> 457 <item name="simplewind" type="462c0819:PsiDirectoryNode" />
500 </path> 458 </path>
501 <path> 459 <path>
@@ -562,21 +520,7 @@ @@ -562,21 +520,7 @@
562 <workItem from="1536326693570" duration="30018000" /> 520 <workItem from="1536326693570" duration="30018000" />
563 <workItem from="1536496471879" duration="16852000" /> 521 <workItem from="1536496471879" duration="16852000" />
564 <workItem from="1536677895835" duration="7811000" /> 522 <workItem from="1536677895835" duration="7811000" />
565 - <workItem from="1536940132237" duration="9678000" />  
566 - </task>  
567 - <task id="LOCAL-00030" summary="我的订单详情标题">  
568 - <created>1535634119952</created>  
569 - <option name="number" value="00030" />  
570 - <option name="presentableId" value="LOCAL-00030" />  
571 - <option name="project" value="LOCAL" />  
572 - <updated>1535634119952</updated>  
573 - </task>  
574 - <task id="LOCAL-00031" summary="我的订单详情标题">  
575 - <created>1535634366456</created>  
576 - <option name="number" value="00031" />  
577 - <option name="presentableId" value="LOCAL-00031" />  
578 - <option name="project" value="LOCAL" />  
579 - <updated>1535634366456</updated> 523 + <workItem from="1536940132237" duration="13704000" />
580 </task> 524 </task>
581 <task id="LOCAL-00032" summary="我的订单详情标题"> 525 <task id="LOCAL-00032" summary="我的订单详情标题">
582 <created>1535634457149</created> 526 <created>1535634457149</created>
@@ -907,17 +851,31 @@ @@ -907,17 +851,31 @@
907 <option name="project" value="LOCAL" /> 851 <option name="project" value="LOCAL" />
908 <updated>1536983829524</updated> 852 <updated>1536983829524</updated>
909 </task> 853 </task>
910 - <option name="localTasksCounter" value="79" /> 854 + <task id="LOCAL-00079" summary="提交评价限制一次哦">
  855 + <created>1536986695538</created>
  856 + <option name="number" value="00079" />
  857 + <option name="presentableId" value="LOCAL-00079" />
  858 + <option name="project" value="LOCAL" />
  859 + <updated>1536986695538</updated>
  860 + </task>
  861 + <task id="LOCAL-00080" summary="教练评价">
  862 + <created>1536987676288</created>
  863 + <option name="number" value="00080" />
  864 + <option name="presentableId" value="LOCAL-00080" />
  865 + <option name="project" value="LOCAL" />
  866 + <updated>1536987676288</updated>
  867 + </task>
  868 + <option name="localTasksCounter" value="81" />
911 <servers /> 869 <servers />
912 </component> 870 </component>
913 <component name="TimeTrackingManager"> 871 <component name="TimeTrackingManager">
914 - <option name="totallyTimeSpent" value="149260000" /> 872 + <option name="totallyTimeSpent" value="153286000" />
915 </component> 873 </component>
916 <component name="ToolWindowManager"> 874 <component name="ToolWindowManager">
917 <frame x="-7" y="-7" width="1550" height="838" extended-state="6" /> 875 <frame x="-7" y="-7" width="1550" height="838" extended-state="6" />
918 <editor active="true" /> 876 <editor active="true" />
919 <layout> 877 <layout>
920 - <window_info content_ui="combo" id="Project" order="0" weight="0.16085792" /> 878 + <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.20442359" />
921 <window_info anchor="bottom" id="TODO" order="6" /> 879 <window_info anchor="bottom" id="TODO" order="6" />
922 <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" /> 880 <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
923 <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" /> 881 <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
@@ -979,21 +937,16 @@ @@ -979,21 +937,16 @@
979 <MESSAGE value="登录处理" /> 937 <MESSAGE value="登录处理" />
980 <MESSAGE value="预约时间错误" /> 938 <MESSAGE value="预约时间错误" />
981 <MESSAGE value="统计学时问题修复" /> 939 <MESSAGE value="统计学时问题修复" />
982 - <option name="LAST_COMMIT_MESSAGE" value="统计学时问题修复" /> 940 + <MESSAGE value="提交评价限制一次哦" />
  941 + <MESSAGE value="教练评价" />
  942 + <option name="LAST_COMMIT_MESSAGE" value="教练评价" />
983 </component> 943 </component>
984 <component name="XDebuggerManager"> 944 <component name="XDebuggerManager">
985 <breakpoint-manager> 945 <breakpoint-manager>
986 - <option name="time" value="3" /> 946 + <option name="time" value="4" />
987 </breakpoint-manager> 947 </breakpoint-manager>
988 </component> 948 </component>
989 <component name="editorHistoryManager"> 949 <component name="editorHistoryManager">
990 - <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/data_edit.html" />  
991 - <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/data_addpic.html" />  
992 - <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/BannerController.php" />  
993 - <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/index.html" />  
994 - <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/ProfileController [6].php" />  
995 - <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/data_list.html" />  
996 - <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/kemu [2].html" />  
997 <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/common [2].php" /> 950 <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/common [2].php" />
998 <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/SubjectController.php" /> 951 <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/SubjectController.php" />
999 <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/data_edit_single.html" /> 952 <entry file="file://$USER_HOME$/Documents/NetSarang/Xftp/Temporary/Temporary/data_edit_single.html" />
@@ -1279,52 +1232,106 @@ @@ -1279,52 +1232,106 @@
1279 </state> 1232 </state>
1280 </provider> 1233 </provider>
1281 </entry> 1234 </entry>
  1235 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/user/comment/look_jindu.html">
  1236 + <provider selected="true" editor-type-id="text-editor" />
  1237 + </entry>
  1238 + <entry file="file://$PROJECT_DIR$/app/admin/controller/CommentController.php">
  1239 + <provider selected="true" editor-type-id="text-editor">
  1240 + <state relative-caret-position="-168">
  1241 + <caret line="17" column="51" lean-forward="true" selection-start-line="17" selection-start-column="51" selection-end-line="17" selection-end-column="51" />
  1242 + <folding>
  1243 + <element signature="e#913#1483#0#PHP" />
  1244 + <element signature="e#1058#1144#0#PHP" />
  1245 + <element signature="e#1214#1288#0#PHP" />
  1246 + <element signature="e#1504#1567#0#PHP" />
  1247 + <element signature="e#1572#2192#0#PHP" />
  1248 + <element signature="e#1676#1721#1#PHP" />
  1249 + <element signature="e#1732#2186#0#PHP" />
  1250 + <element signature="e#1810#2186#0#PHP" />
  1251 + <element signature="e#2037#2176#0#PHP" />
  1252 + <element signature="e#2118#2176#0#PHP" />
  1253 + <element signature="e#2213#2576#0#PHP" />
  1254 + <element signature="e#2305#2539#0#PHP" />
  1255 + <element signature="e#2488#2539#0#PHP" />
  1256 + <element signature="e#2581#3244#0#PHP" />
  1257 + <element signature="e#2687#2732#1#PHP" />
  1258 + <element signature="e#2743#3238#0#PHP" />
  1259 + <element signature="e#2821#3238#0#PHP" />
  1260 + <element signature="e#3089#3228#0#PHP" />
  1261 + <element signature="e#3170#3228#0#PHP" />
  1262 + <element signature="e#3258#3632#0#PHP" />
  1263 + <element signature="e#3514#3626#0#PHP" />
  1264 + <element signature="e#3576#3626#0#PHP" />
  1265 + <element signature="e#3664#4401#0#PHP" />
  1266 + <element signature="e#3803#3880#0#PHP" />
  1267 + <element signature="e#3956#4028#0#PHP" />
  1268 + <element signature="e#4082#4134#0#PHP" />
  1269 + <element signature="e#4082#4185#0#PHP" />
  1270 + <element signature="e#4082#4212#0#PHP" />
  1271 + <element signature="e#4082#4240#0#PHP" />
  1272 + <element signature="e#4082#4267#0#PHP" />
  1273 + <element signature="e#4407#4766#0#PHP" />
  1274 + <element signature="e#4509#4562#0#PHP" />
  1275 + <element signature="e#4648#4760#0#PHP" />
  1276 + <element signature="e#4710#4760#0#PHP" />
  1277 + <element signature="e#4783#5496#0#PHP" />
  1278 + <element signature="e#4922#5002#0#PHP" />
  1279 + <element signature="e#5078#5150#0#PHP" />
  1280 + <element signature="e#5167#5220#0#PHP" />
  1281 + <element signature="e#5167#5266#0#PHP" />
  1282 + <element signature="e#5167#5293#0#PHP" />
  1283 + <element signature="e#5167#5335#0#PHP" />
  1284 + <element signature="e#5167#5362#0#PHP" />
  1285 + <element signature="e#5502#5862#0#PHP" />
  1286 + <element signature="e#5604#5657#0#PHP" />
  1287 + <element signature="e#5744#5856#0#PHP" />
  1288 + <element signature="e#5806#5856#0#PHP" />
  1289 + </folding>
  1290 + </state>
  1291 + </provider>
  1292 + </entry>
  1293 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/user/comment/go_ping.html">
  1294 + <provider selected="true" editor-type-id="text-editor">
  1295 + <state relative-caret-position="-2247" />
  1296 + </provider>
  1297 + </entry>
  1298 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/user/yuyue/my_yuyue.html">
  1299 + <provider selected="true" editor-type-id="text-editor">
  1300 + <state relative-caret-position="-3906" />
  1301 + </provider>
  1302 + </entry>
  1303 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/user/comment/look_ping.html">
  1304 + <provider selected="true" editor-type-id="text-editor">
  1305 + <state relative-caret-position="210">
  1306 + <caret line="21" column="44" selection-start-line="21" selection-start-column="44" selection-end-line="21" selection-end-column="44" />
  1307 + </state>
  1308 + </provider>
  1309 + </entry>
  1310 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/user/comment/my_ping.html">
  1311 + <provider selected="true" editor-type-id="text-editor">
  1312 + <state relative-caret-position="84">
  1313 + <caret line="27" column="48" selection-start-line="27" selection-start-column="48" selection-end-line="27" selection-end-column="48" />
  1314 + </state>
  1315 + </provider>
  1316 + </entry>
  1317 + <entry file="file://$PROJECT_DIR$/public/themes/simpleboot3/user/yuyue/my_yuyue_coach.html">
  1318 + <provider selected="true" editor-type-id="text-editor">
  1319 + <state relative-caret-position="3696">
  1320 + <caret line="244" column="24" selection-start-line="244" selection-start-column="24" selection-end-line="247" selection-end-column="30" />
  1321 + </state>
  1322 + </provider>
  1323 + </entry>
1282 <entry file="file://$PROJECT_DIR$/app/user/controller/CommentController.php"> 1324 <entry file="file://$PROJECT_DIR$/app/user/controller/CommentController.php">
1283 <provider selected="true" editor-type-id="text-editor"> 1325 <provider selected="true" editor-type-id="text-editor">
1284 - <state relative-caret-position="315">  
1285 - <caret line="49" column="9" selection-start-line="49" selection-start-column="9" selection-end-line="49" selection-end-column="9" /> 1326 + <state relative-caret-position="357">
  1327 + <caret line="77" column="64" selection-start-line="77" selection-start-column="64" selection-end-line="77" selection-end-column="64" />
1286 <folding> 1328 <folding>
1287 - <element signature="e#821#1437#0#PHP" />  
1288 - <element signature="e#982#1035#0#PHP" />  
1289 - <element signature="e#1543#1618#0#PHP" />  
1290 - <element signature="e#2165#2309#0#PHP" />  
1291 - <element signature="e#2237#2309#0#PHP" />  
1292 - <element signature="e#3208#4141#0#PHP" />  
1293 - <element signature="e#3305#3358#0#PHP" />  
1294 - <element signature="e#3398#3441#0#PHP" />  
1295 - <element signature="e#3398#3492#0#PHP" />  
1296 - <element signature="e#3398#3551#0#PHP" />  
1297 - <element signature="e#3398#3587#0#PHP" />  
1298 - <element signature="e#3680#3722#0#PHP" />  
1299 - <element signature="e#3680#3773#0#PHP" />  
1300 - <element signature="e#3680#3840#0#PHP" />  
1301 - <element signature="e#3680#3870#0#PHP" />  
1302 - <element signature="e#4164#5267#0#PHP" />  
1303 - <element signature="e#4264#4317#0#PHP" />  
1304 - <element signature="e#4357#4400#0#PHP" />  
1305 - <element signature="e#4357#4457#0#PHP" />  
1306 - <element signature="e#4357#4516#0#PHP" />  
1307 - <element signature="e#4357#4552#0#PHP" />  
1308 - <element signature="e#4655#4697#0#PHP" />  
1309 - <element signature="e#4655#4748#0#PHP" />  
1310 - <element signature="e#4655#4815#0#PHP" />  
1311 - <element signature="e#4655#4845#0#PHP" />  
1312 - <element signature="e#5292#6190#0#PHP" />  
1313 - <element signature="e#5479#5522#0#PHP" />  
1314 - <element signature="e#5479#5574#0#PHP" />  
1315 - <element signature="e#5479#5619#0#PHP" />  
1316 - <element signature="e#5479#5662#0#PHP" />  
1317 - <element signature="e#5479#5747#0#PHP" />  
1318 - <element signature="e#5479#5783#0#PHP" />  
1319 - <element signature="e#5824#5871#0#PHP" />  
1320 - <element signature="e#5824#5928#0#PHP" />  
1321 - <element signature="e#5824#5997#0#PHP" />  
1322 - <element signature="e#5824#6032#0#PHP" />  
1323 - <element signature="e#6504#7386#0#PHP" />  
1324 - <element signature="e#6730#7380#0#PHP" />  
1325 - <element signature="e#7141#7301#0#PHP" />  
1326 - <element signature="e#7221#7301#0#PHP" />  
1327 - <element signature="e#7311#7380#0#PHP" /> 1329 + <element signature="e#825#1441#0#PHP" />
  1330 + <element signature="e#1465#2474#0#PHP" />
  1331 + <element signature="e#3341#3620#0#PHP" />
  1332 + <element signature="e#3649#4531#0#PHP" />
  1333 + <element signature="e#2498#3504#0#PHP" />
  1334 + <element signature="e#3530#4205#0#PHP" />
1328 </folding> 1335 </folding>
1329 </state> 1336 </state>
1330 </provider> 1337 </provider>
@@ -18,7 +18,10 @@ use think\Db; @@ -18,7 +18,10 @@ use think\Db;
18 18
19 class CommentController extends UserBaseController 19 class CommentController extends UserBaseController
20 { 20 {
21 - //去评价 21 + /**
  22 + * 学生评价部分
  23 + */
  24 + //学员去评价教练
22 public function index(){ 25 public function index(){
23 $id = $this->request->param("id", 0, "intval"); 26 $id = $this->request->param("id", 0, "intval");
24 $yuyue_id = $this->request->param("yuyue_id", 0, "intval"); 27 $yuyue_id = $this->request->param("yuyue_id", 0, "intval");
@@ -35,7 +38,7 @@ class CommentController extends UserBaseController @@ -35,7 +38,7 @@ class CommentController extends UserBaseController
35 $this->assign("yuyue_id", $yuyue_id); 38 $this->assign("yuyue_id", $yuyue_id);
36 return $this->fetch('go_ping'); 39 return $this->fetch('go_ping');
37 } 40 }
38 - //评价提交接口 41 + //学员去评价教练提交接口
39 public function comment_do_by_stu(){ 42 public function comment_do_by_stu(){
40 $data = $this->request->param(); 43 $data = $this->request->param();
41 if(!$data){ 44 if(!$data){
@@ -61,7 +64,64 @@ class CommentController extends UserBaseController @@ -61,7 +64,64 @@ class CommentController extends UserBaseController
61 }else{ 64 }else{
62 return json(['code'=>'0','msg'=>'抱歉,评价失败']); 65 return json(['code'=>'0','msg'=>'抱歉,评价失败']);
63 } 66 }
64 - } //评价提交接口 67 + }
  68 + //评价详情--对教练的评价
  69 + public function show_stu(){
  70 + $id = $this->request->param("yuyue_id", 0, "intval");
  71 + if(!$id){
  72 + $this->error('数据异常');
  73 + }
  74 + //获取预约信息
  75 + $yuyue_data = Db::name('yuyue')
  76 + ->alias('yy')
  77 + ->join('qnb_user qu','qu.id = yy .teach_id')
  78 + ->field('yy.*,qu.user_nickname,qu.headimgurl,qu.kemu')
  79 + ->where(['yy.id'=>$id])
  80 + ->find();
  81 + $teach_id = $yuyue_data['teach_id'];
  82 + //获取标签
  83 + $rre = Db::name('commente')->where(['teach_id'=>$teach_id])->find();
  84 + $rree = Db::name('commente_tag')->where(['id'=>['in',$rre['comment_tag']]])->field('name')->select()->toArray();
  85 +
  86 + $this->assign("yuyue",$yuyue_data);
  87 + $this->assign("ctdata",$rree);
  88 + $this->assign("cdata",$rre);
  89 + return $this->fetch('look_ping');
  90 + }
  91 +
  92 + /**
  93 + * 教练评价部分
  94 + */
  95 + public function pingjia_by_coach(){
  96 + $id = $this->request->param("yuyue_id", 0, "intval");
  97 + $uid = $this->request->param("id", 0, "intval");
  98 + $this->assign('yuyue_id',$id);
  99 + $this->assign('uid',$uid);
  100 + return $this->fetch('ping_stu');
  101 + }
  102 + //对学生的评价放到commente1
  103 + public function pingjia_by_coach_do(){
  104 + $id = $this->request->param("yuyue_id", 0, "intval");
  105 + $uid = $this->request->param("uid", 0, "intval");
  106 + $comment = $this->request->param("comment");
  107 + if($id && $uid){
  108 + $data['uid'] = $uid;
  109 + $data['yuyue_id'] = $id;
  110 + $data['teach_id'] = session('user.id');
  111 + $data['comment'] = $comment;
  112 + $data['create_time'] = time();
  113 + $re = DB::name('commente1')->insert($data);
  114 + $res = Db::name('yuyue')->where(['id'=>$data['yuyue_id']])->update(['status'=>'3','pingjia_xueyuan'=>'1']);
  115 + if($re){
  116 + return json(['code'=>'1','msg'=>'评价成功']);
  117 + }else{
  118 + return json(['code'=>'0','msg'=>'抱歉,评价失败']);
  119 + }
  120 + }else{
  121 + return json(['code'=>'0','msg'=>'数据异常']);
  122 + }
  123 + }
  124 + //教练对学生的评价提交
65 public function comment_do(){ 125 public function comment_do(){
66 $data = $this->request->param(); 126 $data = $this->request->param();
67 if(!$data){ 127 if(!$data){
@@ -71,7 +131,7 @@ class CommentController extends UserBaseController @@ -71,7 +131,7 @@ class CommentController extends UserBaseController
71 $dataa['teach_id'] = $data['teach_id']; 131 $dataa['teach_id'] = $data['teach_id'];
72 $dataa['yuyue_id'] = $data['yuyue_id']; 132 $dataa['yuyue_id'] = $data['yuyue_id'];
73 $dataa['uid'] = session('user.id'); 133 $dataa['uid'] = session('user.id');
74 - $yiping = Db::name('commente')->where($dataa)->find(); 134 + $yiping = Db::name('commente1')->where($dataa)->find();
75 if($yiping){ 135 if($yiping){
76 return json(['code'=>'1','msg'=>'您已经评价']); 136 return json(['code'=>'1','msg'=>'您已经评价']);
77 } 137 }
@@ -81,7 +141,7 @@ class CommentController extends UserBaseController @@ -81,7 +141,7 @@ class CommentController extends UserBaseController
81 $dataa['comment_tag'] = $data['comment_tag']; 141 $dataa['comment_tag'] = $data['comment_tag'];
82 $dataa['comment'] = $data['comment']; 142 $dataa['comment'] = $data['comment'];
83 $dataa['type'] = $data['type']; 143 $dataa['type'] = $data['type'];
84 - $re = Db::name('commente')->insert($dataa); 144 + $re = Db::name('commente1')->insert($dataa);
85 $res = Db::name('yuyue')->where(['id'=>$data['yuyue_id']])->update(['status'=>'3','pingjia_xueyuan'=>'1']); 145 $res = Db::name('yuyue')->where(['id'=>$data['yuyue_id']])->update(['status'=>'3','pingjia_xueyuan'=>'1']);
86 //echo Db::name('yuyue')->getLastSql(); 146 //echo Db::name('yuyue')->getLastSql();
87 147
@@ -91,7 +151,7 @@ class CommentController extends UserBaseController @@ -91,7 +151,7 @@ class CommentController extends UserBaseController
91 return json(['code'=>'0','msg'=>'抱歉,评价失败']); 151 return json(['code'=>'0','msg'=>'抱歉,评价失败']);
92 } 152 }
93 } 153 }
94 - //评价详情--对学生的评价 154 + //评价详情--教练对学生的评价
95 public function show(){ 155 public function show(){
96 $id = $this->request->param("yuyue_id", 0, "intval"); 156 $id = $this->request->param("yuyue_id", 0, "intval");
97 157
@@ -102,54 +162,22 @@ class CommentController extends UserBaseController @@ -102,54 +162,22 @@ class CommentController extends UserBaseController
102 $yuyue_data = Db::name('yuyue') 162 $yuyue_data = Db::name('yuyue')
103 ->alias('yy') 163 ->alias('yy')
104 ->join('qnb_user qu','qu.id = yy.uid') 164 ->join('qnb_user qu','qu.id = yy.uid')
105 - ->field('yy.*,qu.user_nickname,qu.headimgurl') 165 + ->field('yy.*,qu.user_nickname,qu.headimgurl,qu.kemu')
106 ->where(['yy.id'=>$id]) 166 ->where(['yy.id'=>$id])
107 ->find(); 167 ->find();
108 $uid = $yuyue_data['uid']; 168 $uid = $yuyue_data['uid'];
109 - //获取学车的资料  
110 - $gname = Db::name('goods')  
111 - ->alias('g')  
112 - ->join('qnb_order qo','qo.gid = g.id')  
113 - ->where(['qo.uid'=>$yuyue_data['uid'],'qo.status'=>1])  
114 - ->value('g.name');  
115 //获取评价 169 //获取评价
116 $cdata = Db::name('commente1')->where(['uid'=>$uid,'yuyue_id'=>$id])->find(); 170 $cdata = Db::name('commente1')->where(['uid'=>$uid,'yuyue_id'=>$id])->find();
117 171
118 - $this->assign("gname",$gname);  
119 $this->assign("yuyue",$yuyue_data); 172 $this->assign("yuyue",$yuyue_data);
120 $this->assign("cdata",$cdata); 173 $this->assign("cdata",$cdata);
121 return $this->fetch('my_ping'); 174 return $this->fetch('my_ping');
122 } 175 }
123 - //评价详情--教练的评价  
124 - public function show_stu(){  
125 - $id = $this->request->param("yuyue_id", 0, "intval");  
126 - if(!$id){  
127 - $this->error('数据异常');  
128 - }  
129 - //获取预约信息  
130 - $yuyue_data = Db::name('yuyue')  
131 - ->alias('yy')  
132 - ->join('qnb_user qu','qu.id = yy .teach_id')  
133 - ->field('yy.*,qu.user_nickname,qu.headimgurl')  
134 - ->where(['yy.id'=>$id])  
135 - ->find();  
136 - //获取学车的资料  
137 - $teach_id = $yuyue_data['teach_id'];  
138 - $gname = Db::name('goods')  
139 - ->alias('g')  
140 - ->join('qnb_order qo','qo.gid = g.id')  
141 - ->where(['qo.uid'=>$yuyue_data['uid'],'qo.status'=>1])  
142 - ->value('g.name');  
143 - //获取标签  
144 - $rre = Db::name('commente')->where(['teach_id'=>$teach_id])->find();  
145 - $rree = Db::name('commente_tag')->where(['id'=>['in',$rre['comment_tag']]])->field('name')->select()->toArray();  
146 176
147 - $this->assign("gname",$gname);  
148 - $this->assign("yuyue",$yuyue_data);  
149 - $this->assign("ctdata",$rree);  
150 - $this->assign("cdata",$rre);  
151 - return $this->fetch('look_ping');  
152 - } 177 +
  178 +
  179 +
  180 +
153 181
154 //评价详情--对教练的评价 182 //评价详情--对教练的评价
155 public function jindu(){ 183 public function jindu(){
@@ -178,36 +206,6 @@ class CommentController extends UserBaseController @@ -178,36 +206,6 @@ class CommentController extends UserBaseController
178 206
179 } 207 }
180 208
181 - public function pingjia_by_coach(){  
182 - $id = $this->request->param("yuyue_id", 0, "intval");  
183 - $uid = $this->request->param("id", 0, "intval");  
184 - $this->assign('yuyue_id',$id);  
185 - $this->assign('uid',$uid);  
186 - return $this->fetch('ping_stu');  
187 - }  
188 - //对学生的评价放到commente1  
189 - public function pingjia_by_coach_do(){  
190 - $id = $this->request->param("yuyue_id", 0, "intval");  
191 - $uid = $this->request->param("uid", 0, "intval");  
192 - $comment = $this->request->param("comment");  
193 - if($id && $uid){  
194 - $data['uid'] = $uid;  
195 - $data['yuyue_id'] = $id;  
196 - $data['teach_id'] = session('user.id');  
197 - $data['comment'] = $comment;  
198 - $data['create_time'] = time();  
199 - $re = DB::name('commente1')->insert($data);  
200 - $res = Db::name('yuyue')->where(['id'=>$data['yuyue_id']])->update(['status'=>'3','pingjia_xueyuan'=>'1']);  
201 - if($re){  
202 - return json(['code'=>'1','msg'=>'评价成功']);  
203 - }else{  
204 - return json(['code'=>'0','msg'=>'抱歉,评价失败']);  
205 - }  
206 - }else{  
207 - return json(['code'=>'0','msg'=>'数据异常']);  
208 - }  
209 - }  
210 -  
211 209
212 210
213 211
@@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
19 <img src="{$yuyue.headimgurl}" class="yu_user_head"/> 19 <img src="{$yuyue.headimgurl}" class="yu_user_head"/>
20 <div class="yu_user_info"> 20 <div class="yu_user_info">
21 <b class="user_name">{$yuyue.user_nickname}</b> 21 <b class="user_name">{$yuyue.user_nickname}</b>
22 - <i class="user_fun">{$gname}</i> 22 + <i class="user_fun">{$yuyue.kemu}</i>
23 </div> 23 </div>
24 <div class="yu_date"> 24 <div class="yu_date">
25 <b class="yu_week">{$yuyue.yuyue_week}</b> 25 <b class="yu_week">{$yuyue.yuyue_week}</b>
@@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
25 <img src="{$yuyue.headimgurl}" class="yu_user_head"/> 25 <img src="{$yuyue.headimgurl}" class="yu_user_head"/>
26 <div class="yu_user_info"> 26 <div class="yu_user_info">
27 <b class="user_name">{$yuyue.user_nickname}</b> 27 <b class="user_name">{$yuyue.user_nickname}</b>
28 - <i class="user_fun">{$gname}</i> 28 + <i class="user_fun">{$yuyue.kemu}</i>
29 </div> 29 </div>
30 <div class="yu_date"> 30 <div class="yu_date">
31 <b class="yu_week">{$yuyue.yuyue_week}</b> 31 <b class="yu_week">{$yuyue.yuyue_week}</b>