|
@@ -2694,7 +2694,9 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
*/
|
|
|
public function upStaticResource(array $data): array
|
|
|
{
|
|
|
- $result = WebsiteImg::where('id', $data['id'])->update(['img_alias' => $data['img_alias']]);
|
|
|
+ $id = $data['id'];
|
|
|
+ unset($data['id']);
|
|
|
+ $result = WebsiteImg::where('id', $id)->update($data);
|
|
|
if (empty($result)) {
|
|
|
return Result::error("修改失败", 0);
|
|
|
}
|