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
ed864f56
Commit
ed864f56
authored
Dec 19, 2017
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一些小bug
parent
3a24233a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
AttentionShop.php
application/api/controller/AttentionShop.php
+8
-11
AttentionModel.php
application/model/AttentionModel.php
+1
-0
JournalAccounts.php
application/model/JournalAccounts.php
+3
-2
No files found.
application/api/controller/AttentionShop.php
View file @
ed864f56
...
...
@@ -57,11 +57,11 @@ class AttentionShop extends Basic
public
function
attentionList
()
{
$params
=
$this
->
params
;
/* $params = array(
"user_id" => 47,
"pageNo" => 1,
"pageSize" => 15,
);*/
/* $params = array(
"user_id" => 47,
"pageNo" => 1,
"pageSize" => 15,
);*/
$pageNo
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$pageSize
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
...
...
@@ -83,12 +83,9 @@ class AttentionShop extends Basic
$result
[
$key
][
"api_path"
]
=
IMG_PATH
;
$imgParam
[
"house_id"
]
=
$val
[
"house_id"
];
$imgParam
[
"imgtype"
]
=
1
;
//默认主图
$imgArr
=
$this
->
dbImg
->
getHouseImages
(
$imgParam
,
1
);
if
(
count
(
$imgArr
)
>
0
){
$result
[
$key
][
"images"
]
=
$imgArr
[
0
];
}
else
{
$result
[
$key
][
"images"
]
=
""
;
}
$imgArr
=
$this
->
dbImg
->
getHouseImages
(
$imgParam
,
1
);
$result
[
$key
][
"images"
]
=
$imgArr
;
}
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
...
...
application/model/AttentionModel.php
View file @
ed864f56
...
...
@@ -88,6 +88,7 @@ class AttentionModel extends Model
public
function
myAttentionList
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
,
$param
)
{
$params
[
"a.user_id"
]
=
$param
[
"user_id"
];
$params
[
"a.is_del"
]
=
$param
[
"is_del"
];
//$params["b.room_num_left"] = array( "<>", 0 ); //剩余数为0 的商品不显示
$params
[
"b.show_all"
]
=
array
(
"eq"
,
0
);
//只显示公开的楼盘
return
$this
->
field
(
$field
)
...
...
application/model/JournalAccounts.php
View file @
ed864f56
...
...
@@ -110,8 +110,9 @@ class JournalAccounts extends Model
/**
* 查询当前经纪人的成交记录
*
* @param type $param
* @return type
* @param $fields
* @param $agent_id
* @return $result
*/
public
function
getJournalHouseInfoId
(
$fields
=
''
,
$agent_id
)
{
if
(
$agent_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