Ver código fonte

Merge branch '20250522_diywebfr'

15313670163 2 dias atrás
pai
commit
7ff3e2703a
1 arquivos alterados com 13 adições e 0 exclusões
  1. 13 0
      app/JsonRpc/WebsiteService.php

+ 13 - 0
app/JsonRpc/WebsiteService.php

@@ -2752,6 +2752,19 @@ class WebsiteService implements WebsiteServiceInterface
             return Result::success($result);
         }
     }
+    /**
+     * 静态资源管理-修改图片别名
+     * @param array $data
+     */
+    public function upStaticResource(array $data): array
+    {
+        $result = WebsiteImg::where('id', $data['id'])->update(['img_alias' => $data['img_alias']]);
+        if (empty($result)) {
+            return Result::error("修改失败", 0);
+        }
+        return Result::success($result);
+
+    }
     // --自助建站-----------20250522fr----------------------end
 
     /**