弹幕不分页

This commit is contained in:
2025-12-17 14:30:10 +08:00
parent eaf3249376
commit 4f1486056f
4 changed files with 29 additions and 3 deletions
+4 -2
View File
@@ -86,8 +86,10 @@ class SkuAttributeService
public function beforeServiceUpdate($data, Request $request)
{
$options = [];
foreach ($data['options_json'] as $v){
$options[] = $v['value'];
if (!empty($data['options_json'])) {
foreach ($data['options_json'] as $v){
$options[] = $v['value'];
}
}
$data['options_json'] = json_encode($options, JSON_UNESCAPED_UNICODE);
return $data;