From ac71646a457c0aeeaf08d224cf95ce2954b6b463 Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Tue, 18 Apr 2023 17:25:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E6=96=8B=E8=8A=82=E6=B4=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rpc/activity.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpc/activity.go b/rpc/activity.go index 3fd9227..5487c9d 100644 --- a/rpc/activity.go +++ b/rpc/activity.go @@ -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) -- 2.22.0