Browse Source

Merge branch '20250522_diywebfr'

15313670163 1 week ago
parent
commit
ed4d177a74
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/JsonRpc/PublicRpcService.php

+ 2 - 1
app/JsonRpc/PublicRpcService.php

@@ -718,7 +718,7 @@ class PublicRpcService implements PublicRpcServiceInterface
         $where = [
         $where = [
             'id' => $data['id'],
             'id' => $data['id'],
         ];
         ];
-        $template_class = TemplateClass::where('id', $data['id'])->first();
+        $template_class = TemplateClass::where($where)->first();
         if (empty($template_class)) {
         if (empty($template_class)) {
             return Result::error("未查询到风格", 0);
             return Result::error("未查询到风格", 0);
         }
         }
@@ -735,6 +735,7 @@ class PublicRpcService implements PublicRpcServiceInterface
         $updateData = [
         $updateData = [
             'name' => $data['name'],
             'name' => $data['name'],
             'keyword' => json_encode($data['keyword']),
             'keyword' => json_encode($data['keyword']),
+            'class_id' => $data['class_id'],
         ];
         ];
         $result = TemplateClass::where($where)->update($updateData);
         $result = TemplateClass::where($where)->update($updateData);
         if (empty($result)) {
         if (empty($result)) {