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
232aa613
Commit
232aa613
authored
Aug 16, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
09892332
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
CollectHouse.php
application/api_broker/controller/CollectHouse.php
+1
-1
User.php
application/api_broker/controller/User.php
+6
-1
ACollectHouse.php
application/model/ACollectHouse.php
+1
-1
No files found.
application/api_broker/controller/CollectHouse.php
View file @
232aa613
...
@@ -119,8 +119,8 @@ class CollectHouse extends Basic
...
@@ -119,8 +119,8 @@ class CollectHouse extends Basic
$res
=
$this
->
aCollectHouse
->
getCollectList
(
$pageNo
,
$pageSize
,
$field
,
$get_params
);
$res
=
$this
->
aCollectHouse
->
getCollectList
(
$pageNo
,
$pageSize
,
$field
,
$get_params
);
$res_total
=
$this
->
aCollectHouse
->
getCollectListTotal
(
$field
,
$get_params
);
$res_total
=
$this
->
aCollectHouse
->
getCollectListTotal
(
$field
,
$get_params
);
$look_shop_service
=
new
LookShopService
();
$look_shop_service
=
new
LookShopService
();
foreach
(
$res
as
$key
=>
$val
)
{
foreach
(
$res
as
$key
=>
$val
)
{
$isLook
=
$look_shop_service
->
isLooked
(
$params
[
"agents_id"
],
$val
[
"id"
]);
$isLook
=
$look_shop_service
->
isLooked
(
$params
[
"agents_id"
],
$val
[
"id"
]);
$res
[
$key
][
"is_look"
]
=
$isLook
;
$res
[
$key
][
"is_look"
]
=
$isLook
;
$res
[
$key
][
"rent_price"
]
=
$val
[
"rent_price"
]
*
0.01
;
$res
[
$key
][
"rent_price"
]
=
$val
[
"rent_price"
]
*
0.01
;
...
...
application/api_broker/controller/User.php
View file @
232aa613
...
@@ -204,7 +204,7 @@ class User extends Basic
...
@@ -204,7 +204,7 @@ class User extends Basic
$where
[
'id'
]
=
[
'lt'
,
$params
[
'user_id'
]
];
$where
[
'id'
]
=
[
'lt'
,
$params
[
'user_id'
]
];
$order
=
'id desc'
;
$order
=
'id desc'
;
}
}
$field
=
'id,user_nick,agent_id,vip'
;
$field
=
'id,user_nick,agent_id,vip
,create_time
'
;
$user
=
new
Users
();
$user
=
new
Users
();
$user_res
=
$user
->
getLastOrNextUserID
(
$where
,
$field
,
$limit
=
1
,
$order
);
$user_res
=
$user
->
getLastOrNextUserID
(
$where
,
$field
,
$limit
=
1
,
$order
);
if
(
!
$user_res
)
{
if
(
!
$user_res
)
{
...
@@ -224,6 +224,11 @@ class User extends Basic
...
@@ -224,6 +224,11 @@ class User extends Basic
return
$this
->
response
(
"201"
,
"当天被拨打超过5次"
,
[
'user_id'
=>
$user_res
[
0
][
'id'
]]);
return
$this
->
response
(
"201"
,
"当天被拨打超过5次"
,
[
'user_id'
=>
$user_res
[
0
][
'id'
]]);
}
}
// 判断是否24小时保护期内
if
((
time
()
-
strtotime
(
$user_res
[
0
][
'create_time'
]))
<
(
60
*
60
*
24
)){
return
$this
->
response
(
"201"
,
"24小时保护期内"
,
[
'user_id'
=>
$user_res
[
0
][
'id'
]]);
}
$where
=
[];
$where
=
[];
$where
[
'city'
]
=
trim
(
$this
->
city
);
$where
[
'city'
]
=
trim
(
$this
->
city
);
$field
=
'max(id) as max_id'
;
$field
=
'max(id) as max_id'
;
...
...
application/model/ACollectHouse.php
View file @
232aa613
...
@@ -57,7 +57,7 @@ class ACollectHouse extends Model
...
@@ -57,7 +57,7 @@ class ACollectHouse extends Model
$result
=
Db
::
table
(
$this
->
table
)
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
field
(
$field
)
->
alias
(
'CollectUser'
)
->
alias
(
'CollectUser'
)
->
join
(
'g_houses Houses'
,
'CollectUser.house_id = Houses.id'
,
'
lef
t'
)
->
join
(
'g_houses Houses'
,
'CollectUser.house_id = Houses.id'
,
'
righ
t'
)
->
where
(
$params
)
->
where
(
$params
)
->
limit
(
$pageSize
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
page
(
$pageNo
)
...
...
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