shish 3 jaren geleden
bovenliggende
commit
e8985b7f25
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 3 1
      app-pt/controllers/LjhController.php

+ 3 - 1
app-pt/controllers/LjhController.php

@@ -21,6 +21,7 @@ class LjhController extends BaseController
         if (empty($list)) {
             echo '暂无报名';
         }
+        $apiHost = Yii::$app->params['hdImgHost'];
         echo "<table border='1'>";
         echo "<tr><th>花店名称</th><th>姓名</th><th>手机号</th><th>头像</th><th>报名费</th><th>地址</th></tr>";
         foreach ($list as $custom) {
@@ -30,9 +31,10 @@ class LjhController extends BaseController
             $cover = $custom['cover'] ?? '';
             $actPrice = $custom['actPrice'] ?? 0;
             $address = $custom['address'] ?? '';
+            $url = $apiHost . $cover;
             echo "<tr>";
             echo "<td>{$shopName}</td><td>{$adminName}</td><td>{$mobile}</td>";
-            echo "<td><img src='{$cover}' style='width:30px;height:auto;' /></td><td>{$actPrice}</td><td>{$address}</td>";
+            echo "<td><img src='{$url}' style='width:30px;height:auto;' /></td><td>{$actPrice}</td><td>{$address}</td>";
             echo "</tr>";
         }
         echo "</table>";