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
643665d2
Commit
643665d2
authored
Jul 09, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4d65a249
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
UserAgentService.php
application/index/service/UserAgentService.php
+4
-5
UserService.php
application/index/service/UserService.php
+1
-2
No files found.
application/index/service/UserAgentService.php
View file @
643665d2
...
...
@@ -104,18 +104,17 @@ class UserAgentService
* 处理老数据
*/
public
function
moveHouse
(){
$limit
=
100
;
$limit
=
100
0
;
$user_count
=
$this
->
moveHouseCount
();
$total_page
=
intval
(
$user_count
/
$limit
)
+
((
$user_count
%
$limit
==
0
)
?
0
:
1
);
for
(
$page
=
1
;
$page
<=
$total_page
;
$page
++
)
{
// $res = $s_user_agent->moveHouse($page,$limit);
// if($page == 10){
// exit;
// }
$res
=
$this
->
moveHouseSaveData
(
$page
,
$limit
);
big_log
(
$res
);
}
return
;
}
/**
...
...
application/index/service/UserService.php
View file @
643665d2
...
...
@@ -74,7 +74,7 @@ class UserService
$data
[
'protect_time'
]
=
$future_time
;
}
else
{
$user_data
=
$this
->
user
->
getUserById
(
'id,agent_id,referrer_id,referrer_source,user_name,
site_ids,entrust_type'
,
$id
);
site_ids,entrust_type
,concrete_industry,price_demand,area_demand
'
,
$id
);
if
(
empty
(
$user_data
[
'id'
]))
{
$result
[
'status'
]
=
'fail'
;
...
...
@@ -83,7 +83,6 @@ class UserService
}
$user_agent_res
=
$s_user_agent
->
findUserAgent
(
$site_id
,
0
,
$id
);
$agent_id_old
=
empty
(
$user_agent_res
[
'agent_id'
])
?
0
:
$user_agent_res
[
'agent_id'
];
$referrer_id_old
=
empty
(
$user_data
[
'referrer_id'
])
?
0
:
$user_data
[
'referrer_id'
];
...
...
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