소스 검색

Merge branch '20250522_diywebfr'

15313670163 1 주 전
부모
커밋
8174c3e8bc
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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) {