wang hou sheng 8 months ago
parent 62a84ecafd
commit 4e2ef78296
  1. 19
      app/common/library/wxserver/Server.php

@ -543,15 +543,20 @@ class Server
$result = json_decode($result, true);
if ($result && !empty($result['category_list'])) {
$category_list = $result['category_list'];
return $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']) ?? '';
$data[] = [
'first_class' => $value['first_class'],
'second_class' => $value['second_class'],
'third_class' => $value['third_class'],
'first_id' => $value['first_id'],
'second_id' => $value['second_id'],
'third_id' => $value['third_id'],
'first_class' => $first_class,
'second_class' => $second_class,
'third_class' => $third_class,
'first_id' => $first_id,
'second_id' => $second_id,
'third_id' => $third_id,
];
}
}

Loading…
Cancel
Save