Bläddra i källkod

修改b端接口:修改网站头部基础信息(将网站标识同步到广告位管理及自助建站模板数据)

15313670163 2 dagar sedan
förälder
incheckning
5f9153a9d1
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      app/JsonRpc/WebsiteService.php

+ 4 - 4
app/JsonRpc/WebsiteService.php

@@ -136,10 +136,10 @@ class WebsiteService implements WebsiteServiceInterface
      */
     public function updateWebsite(int $id, array $data): array
     {
-        $website = Website::where('id', $id)->first();
-        if (empty($website)) {
-            return Result::error("网站不存在", 0);
-        }
+        $website = Website::where('id', $id)->first(); 
+        if (empty($website)) { 
+            return Result::error("网站不存在", 0); 
+        } 
         $insertData = [
             'website_name' => $data['website_name'],
             'logo' => $data['logo'] ?? '',