|
|
@@ -78,7 +78,7 @@ class Product extends Controller
|
|
|
$result['data'][$key]['product_specs'] = $product_specs ? array_filter($product_specs) : '';
|
|
|
$sampling_cycle = isset($value['sampling_cycle']) ? explode(',', $value['sampling_cycle']) : '';
|
|
|
$result['data'][$key]['sampling_cycle'] = $sampling_cycle ? array_filter($sampling_cycle) : '';
|
|
|
- $round_number_config = isset($value['round_number_config']) ? explode(',', $value['round_number_config']) : '';
|
|
|
+ $round_number_config = isset($value['round_number_config']) ? json_decode($value['round_number_config'],true) : '';
|
|
|
$result['data'][$key]['round_number_config'] = $round_number_config ? array_filter($round_number_config) : '';
|
|
|
}
|
|
|
}
|
|
|
@@ -218,7 +218,7 @@ class Product extends Controller
|
|
|
$data->product_specs = $product_specs ? array_filter($product_specs) : '';
|
|
|
$sampling_cycle = isset($data->sampling_cycle) ? explode(',', $data->sampling_cycle) : '';
|
|
|
$data->sampling_cycle = $sampling_cycle ? array_filter($sampling_cycle) : '';
|
|
|
- $round_number_config = isset($data->round_number_config) ? explode(',', $data->round_number_config) : '';
|
|
|
+ $round_number_config = isset($data->round_number_config) ? json_decode($data->round_number_config,true) : '';
|
|
|
$data->round_number_config = $round_number_config ? array_filter($round_number_config) : '';
|
|
|
// 加载模板
|
|
|
return json_send(['code' => 'success', 'msg' => '获取成功', 'data' => $data]);
|