Explorar el Código

固定图片路径,以后需修改(测试)

master
suiyi-effer hace 2 años
padre
commit
19ea8e69b1
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      app/services/system/attachment/SystemAttachmentServices.php

+ 1
- 0
app/services/system/attachment/SystemAttachmentServices.php Ver fichero

@@ -56,6 +56,7 @@ class SystemAttachmentServices extends BaseServices
[$page, $limit] = $this->getPageValue();
$list = $this->dao->getList($where, $page, $limit);
$site_url = sys_config('site_url');
$site_url='http://192.168.1.120:3302';
foreach ($list as &$item) {
if ($site_url) {
$item['satt_dir'] = (strpos($item['satt_dir'], $site_url) !== false || strstr($item['satt_dir'], 'http') !== false) ? $item['satt_dir'] : $site_url . $item['satt_dir'];

Cargando…
Cancelar
Guardar