diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index 9191dc1c..2735244a 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -544,12 +544,12 @@ class Server if ($result && !empty($result['category_list'])) { $category_list = $result['category_list']; foreach ($category_list as $value) { - $first_class = !empty($value['first_class']) ?? ''; - $second_class = !empty($value['second_class']) ?? ''; - $third_class = !empty($value['third_class']) ?? ''; - $first_id = !empty($value['first_id']) ?? ''; - $second_id = !empty($value['second_id']) ?? ''; - $third_id = !empty($value['third_id']) ?? ''; + $first_class = !empty($value['first_class']) ? $value['first_class'] : ''; + $second_class = !empty($value['second_class']) ? $value['second_class'] : ''; + $third_class = !empty($value['third_class']) ? $value['third_class'] : ''; + $first_id = !empty($value['first_id']) ? $value['first_id'] : ''; + $second_id = !empty($value['second_id']) ? $value['second_id'] : ''; + $third_id = !empty($value['third_id']) ? $value['third_id'] : ''; $data[] = [ 'first_class' => $first_class, 'second_class' => $second_class,