Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
176ab1e2
...
176ab1e2f40251b37586e5edbde3631c16711a18
authored
2022-12-05 17:32:08 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
生成token
1 parent
f90266f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
app/Models/Legal/User.php
app/Services/PropertyTrackService.php
app/Models/Legal/User.php
0 → 100644
View file @
176ab1e
<?php
namespace
App\Models\Legal
;
use
App\Models\BaseModel
;
use
Illuminate\Database\Eloquent\Factories\HasFactory
;
use
Illuminate\Database\Eloquent\SoftDeletes
;
/**
* Class User
* @package App\Models\Legal
*/
class
User
extends
BaseModel
{
use
HasFactory
,
SoftDeletes
;
}
app/Services/PropertyTrackService.php
View file @
176ab1e
...
...
@@ -193,8 +193,7 @@ class PropertyTrackService extends Service
];
$token
=
getToken
(
mt_rand
());
RedisClient
::
instance
()
->
set
(
$token
,
json_encode
(
$info
),
null
,
null
,
86400
);
return
Response
::
success
();
RedisClient
::
instance
()
->
set
(
$token
,
json_encode
(
$info
),
'EX'
,
86400
);
return
Response
::
success
([
'token'
=>
$token
]);
}
}
...
...
Please
register
or
sign in
to post a comment