|
|
@@ -23,8 +23,8 @@ class Service extends BaseModel
|
|
|
'type' => $type,
|
|
|
'status' => \E_BASE_STATUS::Normal,
|
|
|
];
|
|
|
- if (isset($params['p_code']) && $params['p_code'] > 0) {
|
|
|
- $where['p_code'] = $params['p_code'];
|
|
|
+ if (isset($params['city_code']) && $params['city_code'] > 0) {
|
|
|
+ $where['p_code'] = parse_area($params['city_code'])['p_code'];
|
|
|
}
|
|
|
if (isset($params['category_id']) && $params['category_id'] > 0)
|
|
|
$where['category_id'] = $params['category_id'];
|