Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media-resource
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨昕
media-resource
Commits
59e21c17
Commit
59e21c17
authored
Jul 20, 2020
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改更新token,bug
parent
28f4ce5f
Pipeline
#9959
passed with stages
in 35 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
UsersController.php
app/Http/Controllers/Api/Client/UsersController.php
+2
-1
No files found.
app/Http/Controllers/Api/Client/UsersController.php
View file @
59e21c17
...
@@ -109,7 +109,6 @@ class UsersController extends Controller
...
@@ -109,7 +109,6 @@ class UsersController extends Controller
'organization_id'
=>
0
,
'organization_id'
=>
0
,
'status'
=>
0
,
'status'
=>
0
,
'create_time'
=>
date
(
'Y-m-d H:i:s'
,
time
()),
'create_time'
=>
date
(
'Y-m-d H:i:s'
,
time
()),
'user_type'
=>
0
];
];
$user
=
DB
::
connection
(
'mongodb'
)
//选择使用mongodb
$user
=
DB
::
connection
(
'mongodb'
)
//选择使用mongodb
...
@@ -117,8 +116,10 @@ class UsersController extends Controller
...
@@ -117,8 +116,10 @@ class UsersController extends Controller
$token
=
$this
->
generateToken
();
$token
=
$this
->
generateToken
();
if
(
!
empty
(
$user
)){
if
(
!
empty
(
$user
)){
$data
[
'user_type'
]
=
$user
[
'user_type'
];
$idArr
=
(
$user
[
'_id'
])
->
jsonSerialize
();
$idArr
=
(
$user
[
'_id'
])
->
jsonSerialize
();
}
else
{
}
else
{
$data
[
'user_type'
]
=
0
;
$id
=
DB
::
connection
(
"mongodb"
)
->
collection
(
"users"
)
->
insertGetId
(
$data
);
$id
=
DB
::
connection
(
"mongodb"
)
->
collection
(
"users"
)
->
insertGetId
(
$data
);
if
(
!
$id
){
if
(
!
$id
){
...
...
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