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
dd6a2278
Commit
dd6a2278
authored
Apr 21, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数量限制
parent
5941cb98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
UserService.php
application/index/service/UserService.php
+5
-4
Users.php
application/model/Users.php
+1
-1
No files found.
application/index/service/UserService.php
View file @
dd6a2278
...
@@ -637,10 +637,7 @@ class UserService
...
@@ -637,10 +637,7 @@ class UserService
if
(
count
(
$user_bind
)
>
0
){
if
(
count
(
$user_bind
)
>
0
){
return
3
;
//存在绑定关系
return
3
;
//存在绑定关系
}
}
$b_user_bind
=
$this
->
userBindInfo
(
$bind_id
);
if
(
count
(
$b_user_bind
)
>
3
){
return
4
;
}
$b_user_info
=
$this
->
user
->
getUserById
(
$field
=
'bind_id'
,
$bind_id
);
$b_user_info
=
$this
->
user
->
getUserById
(
$field
=
'bind_id'
,
$bind_id
);
if
(
$b_user_info
[
'bind_id'
]
==
0
){
if
(
$b_user_info
[
'bind_id'
]
==
0
){
$bind_id_
=
$bind_id
;
$bind_id_
=
$bind_id
;
...
@@ -648,6 +645,10 @@ class UserService
...
@@ -648,6 +645,10 @@ class UserService
$bind_id_
=
$b_user_info
[
'bind_id'
];
$bind_id_
=
$b_user_info
[
'bind_id'
];
}
}
}
}
$bind_count
=
$this
->
userBindInfo
(
$bind_id_
);
if
(
count
(
$bind_count
)
>
3
){
return
4
;
}
$params_
[
'bind_id'
]
=
$bind_id_
;
$params_
[
'bind_id'
]
=
$bind_id_
;
$res
=
$this
->
user
->
updateUsers
(
$user_id
,
$params_
);
$res
=
$this
->
user
->
updateUsers
(
$user_id
,
$params_
);
if
(
$res
==
1
){
if
(
$res
==
1
){
...
...
application/model/Users.php
View file @
dd6a2278
...
@@ -1035,7 +1035,7 @@ class Users extends Model
...
@@ -1035,7 +1035,7 @@ class Users extends Model
$result
=
Db
::
table
(
$this
->
table
)
$result
=
Db
::
table
(
$this
->
table
)
->
where
(
$where_
)
->
where
(
$where_
)
->
count
();
->
count
();
dump
(
$this
->
getLastSql
());
//
dump($this->getLastSql());
return
$result
;
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