...
|
...
|
@@ -62,16 +62,18 @@ class ListProcess |
|
|
$filters = array('classify' => array());
|
|
|
|
|
|
// tar modified 1606151500 返回数据中没有gender时要添加gender
|
|
|
switch ($gender) {
|
|
|
case '1,3':
|
|
|
$data['gender'] = array('1,3' => 'BOYS');
|
|
|
break;
|
|
|
case '2,3':
|
|
|
$data['gender'] = array('2,3' => 'GIRLS');
|
|
|
break;
|
|
|
default:
|
|
|
$data['gender'] = array('1,3' => 'BOYS', '2,3' => 'GIRLS');
|
|
|
break;
|
|
|
if (empty($data['gender'])) {
|
|
|
switch ($gender) {
|
|
|
case '1,3':
|
|
|
$data['gender'] = array('1,3' => 'BOYS');
|
|
|
break;
|
|
|
case '2,3':
|
|
|
$data['gender'] = array('2,3' => 'GIRLS');
|
|
|
break;
|
|
|
default:
|
|
|
$data['gender'] = array('1,3' => 'BOYS', '2,3' => 'GIRLS');
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$num = 1;
|
...
|
...
|
@@ -221,17 +223,15 @@ class ListProcess |
|
|
)
|
|
|
);
|
|
|
|
|
|
// tar add 1606151500 处理性别参数
|
|
|
switch ($gender) {
|
|
|
case '1,3':
|
|
|
array_push($result['subs'], array('dataId' => '1,3', 'name' => 'BOYS'));
|
|
|
break;
|
|
|
case '2,3':
|
|
|
array_push($result['subs'], array('dataId' => '2,3', 'name' => 'GIRLS'));
|
|
|
break;
|
|
|
default:
|
|
|
array_push($result['subs'], array('dataId' => '1,3', 'name' => 'BOYS'), array('dataId' => '2,3', 'name' => 'GIRLS'));
|
|
|
break;
|
|
|
foreach ($data as $key => $value) {
|
|
|
switch ($key) {
|
|
|
case '1,3':
|
|
|
case '2,3':
|
|
|
array_push($result['subs'], array('dataId' => $key, 'name' => $value));
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 处理选中状态
|
...
|
...
|
|