Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
14678274
Commit
14678274
authored
Oct 26, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
217ad078
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
BatchProcessing.php
application/index/controller/BatchProcessing.php
+1
-5
No files found.
application/index/controller/BatchProcessing.php
View file @
14678274
...
...
@@ -31,15 +31,12 @@ class BatchProcessing extends Basic
$house_service
=
new
HouseService
();
$field
=
'id,name,city,longitude'
;
$get_params
=
''
;
$get_params
[
'longitude'
]
=
''
;
$model_res
=
$model
->
getBusinessDistrict
(
$field
,
$get_params
);
$success_num
=
0
;
$fail
=
0
;
foreach
(
$model_res
as
$key
=>
$v
)
{
if
(
!
$v
[
'longitude'
]){
//dump($v['name']);
//dump($v['city']);
$id
=
$v
[
'id'
];
$address
=
$v
[
'name'
];
$city
=
$v
[
'city'
];
...
...
@@ -65,7 +62,6 @@ class BatchProcessing extends Basic
$log_text
=
'商圈:'
.
$v
[
'name'
]
.
' 城市: '
.
$v
[
'city'
]
.
' 经度: '
.
$longitude
.
' 纬度: '
.
$latitude
.
' 数据库写入返回值: '
.
$res
;
Log
::
write
(
$log_text
,
'获取商圈经纬度'
);
//记录日志
}
}
return
$this
->
response
(
"200"
,
"处理完成"
,[
'成功数'
=>
$success_num
,
'失败数'
=>
$fail
]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment