Explorar o código

静态资源管理-修改图片别名

15313670163 hai 3 días
pai
achega
6d7ca0a65f
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      app/JsonRpc/WebsiteService.php

+ 13 - 0
app/JsonRpc/WebsiteService.php

@@ -2688,5 +2688,18 @@ 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
 }