Explorar o código

Merge branch '20250522_diywebfr'

15313670163 hai 4 días
pai
achega
96e306efc3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {