更新地址查询
This commit is contained in:
parent
bb9ed8442b
commit
7e97caab01
@ -70,7 +70,7 @@ class City extends BaseController
|
||||
];
|
||||
if ($pinyin == 1) {
|
||||
$temp = [
|
||||
'pinyin' => (new Pinyin)->abbr($v['village_name'])[0] ?? '-',
|
||||
'pinyin' => strtoupper((new Pinyin)->abbr($v['village_name'])[0] ?? '-'),
|
||||
'data' => [
|
||||
'type' => 'village',
|
||||
'id' => $v['village_id'],
|
||||
@ -92,7 +92,7 @@ class City extends BaseController
|
||||
];
|
||||
if ($pinyin == 1) {
|
||||
$temp = [
|
||||
'pinyin' => (new Pinyin)->abbr($v['street_name'])[0] ?? '-',
|
||||
'pinyin' => strtoupper((new Pinyin)->abbr($v['street_name'])[0] ?? '-'),
|
||||
'data' => [
|
||||
'type' => 'street',
|
||||
'id' => $v['street_id'],
|
||||
@ -114,7 +114,7 @@ class City extends BaseController
|
||||
];
|
||||
if ($pinyin == 1) {
|
||||
$temp = [
|
||||
'pinyin' => (new Pinyin)->abbr($v['area_name'])[0] ?? '-',
|
||||
'pinyin' => strtoupper((new Pinyin)->abbr($v['area_name'])[0] ?? '-'),
|
||||
'data' => [
|
||||
'type' => 'area',
|
||||
'id' => $v['area_id'],
|
||||
@ -136,7 +136,7 @@ class City extends BaseController
|
||||
];
|
||||
if ($pinyin == 1) {
|
||||
$temp = [
|
||||
'pinyin' => (new Pinyin)->abbr($v['city_name'])[0] ?? '-',
|
||||
'pinyin' => strtoupper((new Pinyin)->abbr($v['city_name'])[0] ?? '-'),
|
||||
'data' => [
|
||||
'type' => 'city',
|
||||
'id' => $v['city_id'],
|
||||
@ -158,7 +158,7 @@ class City extends BaseController
|
||||
];
|
||||
if ($pinyin == 1) {
|
||||
$temp = [
|
||||
'pinyin' => (new Pinyin)->abbr($v['province_name'])[0] ?? '-',
|
||||
'pinyin' => strtoupper((new Pinyin)->abbr($v['province_name'])[0] ?? '-'),
|
||||
'data' => [
|
||||
'type' => 'province',
|
||||
'id' => $v['province_id'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user