Parcourir la source

Merge branch '20250522_diywebfr'

15313670163 il y a 4 jours
Parent
commit
96e306efc3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/JsonRpc/PublicRpcService.php

+ 1 - 1
app/JsonRpc/PublicRpcService.php

@@ -908,7 +908,7 @@ class PublicRpcService implements PublicRpcServiceInterface
             return Result::error("此皮肤不存在!", 0);
         }
         $web_template = WebsiteTemplateInfo::where('template_id', $template['template_id'])->first();
-        if (empty($web_template)) {
+        if (!empty($web_template)) {
             return Result::error("此皮肤已被绑定网站,不可删除", 0);
         }
         if ($template->type == 1) {