Browse Source

自助建站-皮肤管理-修改删除皮肤的接口

15313670163 2 ngày trước cách đây
mục cha
commit
1b5a664532
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {