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
3027b532
Commit
3027b532
authored
Aug 27, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
98b8353d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
LookShop.php
application/api_broker/controller/LookShop.php
+6
-8
Performance.php
application/api_broker/controller/Performance.php
+1
-1
AAgents.php
application/model/AAgents.php
+1
-0
No files found.
application/api_broker/controller/LookShop.php
View file @
3027b532
...
...
@@ -142,16 +142,14 @@ class LookShop extends Basic
$lookNum
=
$data
[
"agent_shop_num"
];
}
//todo 1.返回剩余铺数等于多少 if 0 判断是否升级过 ,升级过 显示已升级,没升级过 升级可以点击效果 else 不等于0 灰色的升级
foreach
(
$agentList
as
$key
=>
$item
)
{
Log
::
write
(
$item
[
"id"
],
'看铺经纪人ID'
);
//记录日志
$residue_num
=
$this
->
lookShopService_
->
isLookShop
(
$item
[
"id"
]);
Log
::
write
(
$residue_num
,
'residue_num看铺-升级'
);
//记录日志
if
(
$residue_num
<=
0
)
{
//是否升级
$agentList
[
$key
][
"is_upgrade"
]
=
true
;
}
else
{
$agentList
[
$key
][
"is_upgrade"
]
=
false
;
}
$can_look_num
=
$this
->
lookShopService_
->
isLookShop
(
$item
[
"id"
]);
$is_upgrade
=
$this
->
lookShopService_
->
getAgentUpNum
(
$item
[
"id"
]);
$agentList
[
$key
][
"can_look_num"
]
=
$can_look_num
;
$agentList
[
$key
][
"is_upgrade"
]
=
$is_upgrade
;
//等于1 升级过 0 没有
}
$result
[
"look_num"
]
=
$lookNum
;
$result
[
"list"
]
=
$agentList
;
...
...
application/api_broker/controller/Performance.php
View file @
3027b532
...
...
@@ -616,7 +616,7 @@ class Performance extends Basic
$page_no
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$page_size
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
// dump($params);
$result
=
$this
->
service_
->
getTeamNumPcInfo
(
$params
[
"id"
],
$params
[
"type"
],
$start_day
,
$end_day
,
$page_no
,
$page_size
);
if
(
$result
[
"code"
]
==
101
)
{
return
$this
->
response
(
"101"
,
$result
[
"date"
]);
...
...
application/model/AAgents.php
View file @
3027b532
...
...
@@ -581,6 +581,7 @@ class AAgents extends BaseModel
->
limit
(
$page_size
)
->
page
(
$page_no
)
->
select
();
//echo $this->getLastSql();
return
$result
;
}
...
...
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