|
@@ -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) {
|