Browse Source

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

15313670163 2 days ago
parent
commit
6d7ca0a65f
1 changed files with 13 additions and 0 deletions
  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
 }