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
213d1a03
Commit
213d1a03
authored
Jun 19, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
827a90c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
Performance.php
application/api_broker/controller/Performance.php
+7
-7
PerformanceService.php
application/api_broker/service/PerformanceService.php
+2
-2
config.php
application/config.php
+1
-1
No files found.
application/api_broker/controller/Performance.php
View file @
213d1a03
...
...
@@ -182,22 +182,22 @@ class Performance extends Basic
public
function
housingResource
()
{
$params
=
$this
->
params
;
/*
$params = array(
$params
=
array
(
"type"
=>
1
,
//1个人,2经纪人
"agent_id" =>
1
,
"start_time" => "2018-0
4
-12",
"end_time" => "2018-0
4-12
",
"agent_id"
=>
80
,
"start_time"
=>
"2018-0
6
-12"
,
"end_time"
=>
"2018-0
6-19
"
,
"page_no"
=>
1
,
"page_size"
=>
15
);
*/
);
$checkResult
=
$this
->
validate
(
$params
,
"PerformanceValidate.verify"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
}
//默认排序一周
$end_day
=
!
empty
(
$params
[
"end_
day"
])
?
$params
[
"end_day
"
]
:
date
(
"Y-m-d"
,
strtotime
(
"-1 day"
));
$start_day
=
!
empty
(
$params
[
"start_
day"
])
?
$params
[
"start_day
"
]
:
date
(
"Y-m-d"
,
strtotime
(
"-7 day"
));
$end_day
=
!
empty
(
$params
[
"end_
time"
])
?
$params
[
"end_time
"
]
:
date
(
"Y-m-d"
,
strtotime
(
"-1 day"
));
$start_day
=
!
empty
(
$params
[
"start_
time"
])
?
$params
[
"start_time
"
]
:
date
(
"Y-m-d"
,
strtotime
(
"-7 day"
));
$page_no
=
empty
(
$params
[
'page_no'
])
?
1
:
$params
[
'page_no'
];
$page_size
=
empty
(
$params
[
'page_size'
])
?
15
:
$params
[
'page_size'
];
...
...
application/api_broker/service/PerformanceService.php
View file @
213d1a03
...
...
@@ -529,12 +529,12 @@ class PerformanceService
$addHouseList
=
$this
->
houseModel
->
getAddHouseList
(
$params
,
$field
,
$page_no
,
$page_size
);
//获取图片信息
foreach
(
$addHouseList
as
$key
=>
$val
)
{
$addHouseList
[
$key
][
"api_path"
]
=
CK_IMG_URL
.
'images/'
;
$addHouseList
[
$key
][
"rent_price"
]
=
$val
[
"rent_price"
]
*
0.01
;
$param
[
"house_id"
]
=
$val
[
"id"
];
$param
[
"img_type"
]
=
1
;
//默认主图
$addHouseList
[
$key
][
"images"
]
=
$this
->
gHousesImgModel
->
getHouseImages
(
$param
,
1
);
$imgArr
=
$this
->
gHousesImgModel
->
getHouseImages
(
$param
,
1
);
$addHouseList
[
$key
][
"images"
]
=
!
empty
(
$imgArr
[
0
][
"img_name"
])
?
CK_IMG_URL
.
'images/'
.
$imgArr
[
0
][
"img_name"
]
:
null
;
}
return
[
"code"
=>
200
,
"date"
=>
$addHouseList
];
}
...
...
application/config.php
View file @
213d1a03
...
...
@@ -18,7 +18,7 @@ define('CURRENT_URL', 'https://'.$_SERVER['HTTP_HOST'].'/'); //取当前域名
define
(
'HEADERIMGURL'
,
CURRENT_URL
.
'static'
.
DS
.
'head_portrait/'
);
//头像地址
define
(
'AGENTHEADERIMGURL'
,
CURRENT_URL
.
'static'
.
DS
.
'user_header/'
);
//头像地址
define
(
'CHAT_IMG_URL'
,
CURRENT_URL
.
'static'
.
DS
.
'chat_image/'
);
//聊天图片地址
define
(
'CK_IMG_URL'
,
CURRENT_URL
.
'
/
resource/lib/Attachments/'
);
//ck 资源文件
define
(
'CK_IMG_URL'
,
CURRENT_URL
.
'resource/lib/Attachments/'
);
//ck 资源文件
define
(
'_POOLKEY'
,
'FC100000022056027'
);
//隐私号码
define
(
'_TLSYPoolKey'
,
'FC100000022056027'
);
//隐私号码池
define
(
'WEEK_WORK_IMG'
,
CURRENT_URL
.
'static'
.
DS
.
'week_work_img/'
);
//周报日报目录
...
...
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