From 1e6baa01a8baf79ea2514dde30110dbe93e2cf33 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Thu, 11 Dec 2025 16:27:18 +0800 Subject: [PATCH] 1 --- app/common/service/SkuAttributeService.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/common/service/SkuAttributeService.php b/app/common/service/SkuAttributeService.php index 7b2e615..c25b095 100644 --- a/app/common/service/SkuAttributeService.php +++ b/app/common/service/SkuAttributeService.php @@ -85,11 +85,11 @@ class SkuAttributeService */ public function beforeServiceUpdate($data, Request $request) { -// $options = []; -// foreach ($data['options_json'] as $v){ -// $options[] = $v['value']; -// } -// $data['options_json'] = json_encode($options, JSON_UNESCAPED_UNICODE); + $options = []; + foreach ($data['options_json'] as $v){ + $options[] = $v['value']; + } + $data['options_json'] = json_encode($options, JSON_UNESCAPED_UNICODE); return $data; }