Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
5c6613be
Commit
5c6613be
authored
Oct 15, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
98603707
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
authCheck.ts
src/utils/authCheck.ts
+4
-1
No files found.
src/utils/authCheck.ts
View file @
5c6613be
...
...
@@ -14,10 +14,13 @@ export function authCheck(cb: Function) {
export
async
function
chatAuthCheck
(
cb
:
Function
,
cb2
?:
Function
)
{
const
msg
=
getUserMsg
()
if
(
msg
?.
role
===
eRole
.
user
)
return
true
if
(
msg
?.
role
===
eRole
.
user
)
{
cb
();
}
else
if
(
msg
?.
role
===
eRole
.
staff
)
{
const
ret
=
await
getStaffOnDutyStatus
()
if
(
ret
.
code
===
200
&&
ret
.
data
)
{
console
.
log
(
'cb'
);
cb
()
}
else
{
cb2
&&
cb2
()
...
...
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