moonsflyer hai 4 meses
pai
achega
0ff5dbed8a
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      phalapi/src/app/functions.php

+ 5 - 1
phalapi/src/app/functions.php

@@ -4477,7 +4477,11 @@ namespace App;
                     ->select("gc_id,gc_name,gc_icon")
                     ->where("gc_id", $classid_arr)  // NotORM支持数组形式的IN查询
                     ->fetchAll();
-
+                foreach ($res as &$v){
+                    if(empty($v['gc_icon'])){
+                        $v['gc_icon'] = get_upload_path('2025090216113264.png%@%cloudtype=2');
+                    }
+                }
                 $list = $res;
             }