弹幕不分页
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user