Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
haishi
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
haishi
Commits
e957ad74
Commit
e957ad74
authored
Feb 14, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小站同步
parent
059582a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
api/Appapi/Api/Login.php
+3
-3
api/Appapi/Model/Login.php
+1
-1
api/Appapi/Model/User.php
+1
-1
No files found.
api/Appapi/Api/Login.php
View file @
e957ad74
...
@@ -611,12 +611,12 @@ class Api_Login extends PhalApi_Api {
...
@@ -611,12 +611,12 @@ class Api_Login extends PhalApi_Api {
return
$rs
;
return
$rs
;
}
}
$where
=
"
user_login
='
{
$mobile
}
'"
;
$where
=
"
mobile
='
{
$mobile
}
'"
;
$checkuser
=
checkUser
(
$where
);
$checkuser
=
checkUser
(
$where
);
if
(
!
$checkuser
){
if
(
$checkuser
){
$rs
[
'code'
]
=
1004
;
$rs
[
'code'
]
=
1004
;
$rs
[
'msg'
]
=
'该手机号
未
注册'
;
$rs
[
'msg'
]
=
'该手机号
已
注册'
;
return
$rs
;
return
$rs
;
}
}
...
...
api/Appapi/Model/Login.php
View file @
e957ad74
...
@@ -369,7 +369,7 @@ class Model_Login extends PhalApi_Model_NotORM {
...
@@ -369,7 +369,7 @@ class Model_Login extends PhalApi_Model_NotORM {
public
function
userBind
(
$params
)
public
function
userBind
(
$params
)
{
{
return
DI
()
->
notorm
->
users
->
where
(
'id = ?'
,
$params
[
'id'
])
->
update
([
'mobile'
=>
$params
[
'mobile'
]]);
return
DI
()
->
notorm
->
users
->
where
(
'id = ?'
,
$params
[
'id'
])
->
update
([
'
user_login'
=>
$params
[
'mobile'
],
'
mobile'
=>
$params
[
'mobile'
]]);
}
}
public
function
userLogin2
(
$user_login
)
{
public
function
userLogin2
(
$user_login
)
{
...
...
api/Appapi/Model/User.php
View file @
e957ad74
...
@@ -1008,7 +1008,7 @@ class Model_User extends PhalApi_Model_NotORM {
...
@@ -1008,7 +1008,7 @@ class Model_User extends PhalApi_Model_NotORM {
return
1
;
return
1
;
}
}
$L
iang
->
where
(
"uid=
{
$params
[
'uid'
]
}
"
)
->
update
(
array
(
'state'
=>
0
)
);
DI
()
->
notorm
->
l
iang
->
where
(
"uid=
{
$params
[
'uid'
]
}
"
)
->
update
(
array
(
'state'
=>
0
)
);
$setstatus
=
$params
[
'state'
]
?
0
:
1
;
$setstatus
=
$params
[
'state'
]
?
0
:
1
;
$data
=
array
(
$data
=
array
(
...
...
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