moonsflyer 4 달 전
부모
커밋
0ff5dbed8a
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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;
             }