Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
hujiebin
hilo-group
Commits
ca28998e
Commit
ca28998e
authored
Jun 13, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create test.lua
parent
ad450920
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
test.lua
test/test.lua
+7
-0
No files found.
test/test.lua
0 → 100644
View file @
ca28998e
local
flag
=
redis
.
call
(
'EXISTS'
,
'group_user_in_mic_88913f81dc704b9e8e0a8b38956ee8b3'
)
if
flag
==
0
then
local
flag1
=
redis
.
call
(
'SET'
,
'group_mic_user_HTGS#a91394382_1'
,
'{"GroupUuid":"HTGS#a91394382","I":1,"ExternalId":"88913f81dc704b9e8e0a8b38956ee8b3","UserId":7642,"CpUserId":4549,"Forbid":false,"Timestamp":1686305425}'
,
'ex'
,
'43200'
,
'nx'
)
if
flag1
~=
false
then
redis
.
call
(
'SETEX'
,
'group_user_in_mic_88913f81dc704b9e8e0a8b38956ee8b3'
,
'43200'
,
'{"GroupUuid":"HTGS#a91394382","I":1,"UserId":7642}'
)
return
1
end
return
2
end
return
3
\ No newline at end of file
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