Commit ac71646a authored by chenweijian's avatar chenweijian

开斋节活动

parent c8a31614
...@@ -49,7 +49,7 @@ func init() { ...@@ -49,7 +49,7 @@ func init() {
} }
// 活动积分增加 fType: 1.上麦 2.ludo游戏完成 3.slots游戏完成 4.fruit游戏完成 5.特定座驾进入房间 // 活动积分增加 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() defer utils.CheckGoPanic()
type Response struct { type Response struct {
Code int `json:"code"` Code int `json:"code"`
...@@ -59,6 +59,7 @@ func AddActPoint(model *domain.Model, userId mysql.ID, fType mysql.Type) error { ...@@ -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{ resp, err := HttpPostForm(model, _url, nil, map[string]string{
"userId": fmt.Sprintf("%d", userId), "userId": fmt.Sprintf("%d", userId),
"fType": fmt.Sprintf("%d", fType), "fType": fmt.Sprintf("%d", fType),
"roomId": fmt.Sprintf("%d", roomId),
}) })
if err != nil { if err != nil {
model.Log.Errorf("AddActPoint fail:%v", err) model.Log.Errorf("AddActPoint fail:%v", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment