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
01fd0556
Commit
01fd0556
authored
Jun 19, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
d41de24c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Users.php
application/model/Users.php
+5
-3
No files found.
application/model/Users.php
View file @
01fd0556
...
@@ -41,14 +41,12 @@ class Users extends Model
...
@@ -41,14 +41,12 @@ class Users extends Model
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\DbException
*/
*/
public
function
getUserByWhere
(
$pa
geNo
,
$pageSize
,
$pa
ram
,
$fields
=
'id,user_phone'
)
public
function
getUserByWhere
(
$param
,
$fields
=
'id,user_phone'
)
{
{
$data
=
$this
$data
=
$this
->
field
(
$fields
)
->
field
(
$fields
)
->
where
(
$param
)
->
where
(
$param
)
->
order
(
'create_time desc'
)
->
order
(
'create_time desc'
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
select
();
->
select
();
return
$data
;
return
$data
;
}
}
...
@@ -603,6 +601,10 @@ class Users extends Model
...
@@ -603,6 +601,10 @@ class Users extends Model
}
}
}
}
/**
* @param $buyer_id
* @return int
*/
public
function
unbundlingWx
(
$buyer_id
)
public
function
unbundlingWx
(
$buyer_id
)
{
{
return
$this
->
where
(
"buyer_id"
,
$buyer_id
)
->
setField
(
"buyer_id"
,
0
);
return
$this
->
where
(
"buyer_id"
,
$buyer_id
)
->
setField
(
"buyer_id"
,
0
);
...
...
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