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
2eb26475
Commit
2eb26475
authored
Apr 04, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
812358cb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Shop.php
application/api_broker/controller/Shop.php
+1
-1
Users.php
application/model/Users.php
+1
-1
No files found.
application/api_broker/controller/Shop.php
View file @
2eb26475
...
@@ -145,7 +145,7 @@ class Shop extends Basic
...
@@ -145,7 +145,7 @@ class Shop extends Basic
$order_
=
"id desc"
;
$order_
=
"id desc"
;
break
;
break
;
default
:
default
:
$this
->
response
(
"101"
,
"请求数据异常"
);
return
$this
->
response
(
"101"
,
"请求数据异常"
);
}
}
if
(
!
empty
(
$conditions
)
)
{
if
(
!
empty
(
$conditions
)
)
{
$conditions
[
'status'
]
=
array
(
'eq'
,
1
);
//只显示上架
$conditions
[
'status'
]
=
array
(
'eq'
,
1
);
//只显示上架
...
...
application/model/Users.php
View file @
2eb26475
...
@@ -22,7 +22,7 @@ class Users extends Model
...
@@ -22,7 +22,7 @@ class Users extends Model
*/
*/
public
function
selectUser
(
$userId
,
$fields
=
'id,user_phone'
)
public
function
selectUser
(
$userId
,
$fields
=
'id,user_phone'
)
{
{
$param
[
"status"
]
=
array
(
"
eq"
,
0
);
$param
[
"status"
]
=
array
(
"
in"
,
[
-
1
,
0
]
);
$data
=
$this
->
field
(
$fields
)
$data
=
$this
->
field
(
$fields
)
->
where
(
$param
)
->
where
(
$param
)
->
find
(
$userId
);
->
find
(
$userId
);
...
...
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