Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-common
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-common
Commits
ac71646a
Commit
ac71646a
authored
Apr 18, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开斋节活动
parent
c8a31614
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
activity.go
rpc/activity.go
+2
-1
No files found.
rpc/activity.go
View file @
ac71646a
...
...
@@ -49,7 +49,7 @@ func init() {
}
// 活动积分增加 fType: 1.上麦 2.ludo游戏完成 3.slots游戏完成 4.fruit游戏完成 5.特定座驾进入房间
func
AddActPoint
(
model
*
domain
.
Model
,
userId
mysql
.
ID
,
fType
mysql
.
Type
)
error
{
func
AddActPoint
(
model
*
domain
.
Model
,
userId
mysql
.
ID
,
fType
mysql
.
Type
,
roomId
int64
)
error
{
defer
utils
.
CheckGoPanic
()
type
Response
struct
{
Code
int
`json:"code"`
...
...
@@ -59,6 +59,7 @@ func AddActPoint(model *domain.Model, userId mysql.ID, fType mysql.Type) error {
resp
,
err
:=
HttpPostForm
(
model
,
_url
,
nil
,
map
[
string
]
string
{
"userId"
:
fmt
.
Sprintf
(
"%d"
,
userId
),
"fType"
:
fmt
.
Sprintf
(
"%d"
,
fType
),
"roomId"
:
fmt
.
Sprintf
(
"%d"
,
roomId
),
})
if
err
!=
nil
{
model
.
Log
.
Errorf
(
"AddActPoint fail:%v"
,
err
)
...
...
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