|
@@ -589,7 +589,12 @@ class FormService implements FormServiceInterface
|
|
|
return Result::error('表单不存在');
|
|
|
}
|
|
|
$query = Db::connection('global')->table($globalTable->table);
|
|
|
-
|
|
|
+ $data['data'] = array_map(function ($value) {
|
|
|
+ if (is_array($value)) {
|
|
|
+ return json_encode($value, JSON_UNESCAPED_UNICODE);
|
|
|
+ }
|
|
|
+ return $value;
|
|
|
+ }, $data['data']);
|
|
|
$query->insert($data['data']);
|
|
|
return Result::success([]);
|
|
|
}catch (\Throwable $e){
|