Commit 839c2d8adac92d4da9aa6a4e59d5636e4855fe78

Authored by luoyanshou
1 parent bf344577

【留言板】附件展示页面修改

Showing 1 changed file with 19 additions and 1 deletions
trunk/www/mess_admin/detail.php
... ... @@ -15,13 +15,22 @@ if ($mid !== null) {
15 15 if ($mess_res) {
16 16 $mess_detail = json_decode($mess_res,true)['result'];
17 17 }
  18 +
  19 + $a_path = file_get_contents("http://lys.com/wx5019b9c455ea9c81/Message/Apicp/Message/AttaDetail/Detial/?mid={$mid}");
  20 +
  21 + if ($a_path) {
  22 + $mess_detail['a_path'] = json_decode($a_path,true)['result']['a_path'];
  23 + }
  24 +
18 25 }
19 26  
20 27 $scenario = isset($_GET['scenario']) ? $_GET['scenario'] : 'detail';
21   -$cap = '留言详细内容';
  28 +
22 29 if ($scenario == 'detail') {
  30 + $cap = '留言详细内容';
23 31 $title = '留言详细';
24 32 }else if ($scenario == 'audit') {
  33 + $cap = '留言审核';
25 34 $title = '留言审核';
26 35 }
27 36  
... ... @@ -136,6 +145,15 @@ if ($scenario == 'detail') {
136 145 </td>
137 146 </tr>
138 147 <?php } ?>
  148 + <?php if ($mess_detail['a_path']) { ?>
  149 + <tr>
  150 + <td>
  151 + &nbsp;&nbsp;&nbsp;&nbsp;
  152 + <label>附件路径:</label>
  153 + <label><?php echo "http://lys.com".$mess_detail['a_path']; ?></label>
  154 + </td>
  155 + </tr>
  156 + <?php } ?>
139 157 <tr>
140 158 <td>
141 159 &nbsp;&nbsp;&nbsp;&nbsp;
... ...