This commit is contained in:
xiaoyu
2025-05-11 22:44:14 +08:00
parent 31b2d7047e
commit bc78828cc0
3 changed files with 9 additions and 8 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ class Score extends HD_Controller
$groups_string = implode(',', [App_licheb_users_model::GROUP_BIZ, App_licheb_users_model::GROUP_MANAGER]);
$where = [
"group_id in ({$groups_string})" => null,
'status' => 1
'status' => 1,
'biz_id in (SELECT id from lc_biz where status = 1 and type in (1,2))' => null
];
$biz_id && $where['biz_id'] = $biz_id;
$uid && $where['id'] = $uid;
+1 -1
View File
@@ -138,7 +138,7 @@ class Customers extends Wxapp
'brand' => ['id' => $row['brand_id'], 'name' => $brand['name']],
'series_id' => $row['series_id'],
'cf_pid' => $row['cf_pid'],
'cf_name' => $paic_user['name'] ?: '',
'cf_name' => $paic_user['name'] ? $paic_user['name'] : '',
];
return $data;
}
+6 -6
View File
@@ -151,7 +151,7 @@ class OpenApi extends Wxapp
'status' => $status,
'status2' => $status2,
'status_cn' => $status_map[$status]['title'],
'status2_cn' => $status_map[$status]['list'][$status2] ?: ''
'status2_cn' => $status_map[$status]['list'][$status2] ? $status_map[$status]['list'][$status2] : ''
];
}
}
@@ -165,17 +165,17 @@ class OpenApi extends Wxapp
throw new Exception('参数错误', API_CODE_FAIL);
}
$row = $this->biz_model->get(['id' => $biz_id]);
$address = $row['address'] ?: '';
$address = $row['address'] ? $row['address'] : '';
if ($row['county_id']) {
$areas = $this->area_model->get(['county_id' => $row['county_id']]);
$address = $areas['province_name'] . $areas['city_name'] . $areas['county_name'] . $address;
}
$data = [
'id' => $row['id'] ?: '',
'biz_name' => $row['biz_name'] ?: '',
'id' => $row['id'] ? $row['id'] : '',
'biz_name' => $row['biz_name'] ? $row['biz_name'] : '',
'address' => $address,
'lat' => $row['lat'] ?: '',
'lng' => $row['lng'] ?: '',
'lat' => $row['lat'] ? $row['lat'] : '',
'lng' => $row['lng'] ? $row['lng'] : '',
];
return $data;
}