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
748ffb7c
Commit
748ffb7c
authored
Jun 22, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
a240d34c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
Register.php
application/api/controller/Register.php
+3
-3
Users.php
application/model/Users.php
+2
-3
route.php
application/route.php
+1
-1
No files found.
application/api/controller/Register.php
View file @
748ffb7c
...
...
@@ -104,9 +104,9 @@ class Register extends Basic
public
function
removeBinding
()
{
$params
=
$this
->
params
;
/*
$params = array(
"buyer_id" =>
1
,
"user_id" =>
12
,
/*
$params = array(
"buyer_id" =>
5
,
"user_id" =>
25983
,
);*/
$checkResult
=
$this
->
validate
(
$params
,
"RegisterValidate.removeBind"
);
if
(
true
!==
$checkResult
)
{
...
...
application/model/Users.php
View file @
748ffb7c
...
...
@@ -652,14 +652,13 @@ class Users extends Model
*/
public
function
unbundlingWx
(
$params
)
{
$where_
=
[];
if
(
!
isset
(
$params
[
"buyer_id"
]))
{
if
(
isset
(
$params
[
"buyer_id"
]))
{
$where_
[
"buyer_id"
]
=
$params
[
"buyer_id"
];
}
else
{
//防止传入错误参数修改掉大面积数据此字段必填
return
0
;
}
if
(
!
isset
(
$params
[
"user_id"
]))
{
if
(
isset
(
$params
[
"user_id"
]))
{
$where_
[
"id"
]
=
$params
[
"user_id"
];
}
return
$this
->
where
(
$where_
)
->
setField
(
"buyer_id"
,
0
);
...
...
application/route.php
View file @
748ffb7c
...
...
@@ -317,7 +317,7 @@ Route::group('api', [
'sendCode'
=>
[
'api/Register/registerSendCode'
,
[
'method'
=>
'POST'
]
],
'userVerify'
=>
[
'api/Register/registerVerify'
,
[
'method'
=>
'POST'
]
],
'removeBind'
=>
[
'api/Register/removeBinding'
,
[
'method'
=>
'POST'
]
],
'removeBind'
=>
[
'api/Register/removeBinding'
,
[
'method'
=>
'POST
|GET
'
]
],
]);
...
...
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