Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
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
方斌
51business
Commits
d3803a5b
Commit
d3803a5b
authored
Nov 19, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix user_sid substr 5
parent
fe703cdc
Pipeline
#16608
passed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
helper.js
app/extend/helper.js
+2
-1
No files found.
app/extend/helper.js
View file @
d3803a5b
...
@@ -438,7 +438,8 @@ module.exports = {
...
@@ -438,7 +438,8 @@ module.exports = {
decodeUserSid
(
code
)
{
decodeUserSid
(
code
)
{
const
rand
=
'OU1WjLvZCrRJ7Yo0gE2XDjuuaSAUuaH1bhHPuMymcdfEeKz0igRhXQkMuLTm1'
;
const
rand
=
'OU1WjLvZCrRJ7Yo0gE2XDjuuaSAUuaH1bhHPuMymcdfEeKz0igRhXQkMuLTm1'
;
const
begin
=
code
.
substr
(
5
).
slice
(
0
,
1
);
code
=
code
.
substr
(
5
);
const
begin
=
code
.
slice
(
0
,
1
);
let
rtn
=
''
;
let
rtn
=
''
;
const
codelen
=
rand
.
slice
(
0
,
11
);
const
codelen
=
rand
.
slice
(
0
,
11
);
const
codenums
=
rand
.
slice
(
11
,
23
);
const
codenums
=
rand
.
slice
(
11
,
23
);
...
...
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