弹幕屏蔽

This commit is contained in:
2025-12-11 16:26:00 +08:00
parent 291d06fd94
commit 69a30ae5e4
5 changed files with 83 additions and 8 deletions
+5 -5
View File
@@ -72,11 +72,11 @@ class SkuAttributeService
*/
public function beforeServiceStore($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;
}