Browse Source

Merge branch '20250522_diywebfr'

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

+ 2 - 0
app/JsonRpc/PublicRpcService.php

@@ -831,6 +831,7 @@ class PublicRpcService implements PublicRpcServiceInterface
         if ($template) {
             return Result::error("皮肤名称或者皮肤编号已存在,不可添加!", 0);
         }
+        $data['template_keyword'] = json_encode($data['template_keyword']) ?? '';
         $result = Template::insertGetId($data);
         if(empty($result)){
             return Result::error("创建失败", 0);
@@ -873,6 +874,7 @@ class PublicRpcService implements PublicRpcServiceInterface
         if ($template) {
             return Result::error("皮肤名称或者皮肤编号已存在,不可编辑!", 0);
         }
+        $data['template_keyword'] = json_encode($data['template_keyword']) ?? '';
         $result = Template::where('id', $data['id'])->update($data);
         var_dump($result, '-------------------update');
         if (!$result) {