From 5b42bdd11139a5d35ef458bd2b07bca9c553bd32 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Wed, 10 Jan 2024 00:37:03 +0800 Subject: [PATCH] by Robin at 20230110; fix --- app/mix/service/service.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/mix/service/service.go b/app/mix/service/service.go index 6b1bf93b..76adef72 100644 --- a/app/mix/service/service.go +++ b/app/mix/service/service.go @@ -1455,6 +1455,20 @@ func (s *Service) OpUpdateStreamer(ctx *gin.Context, req *streamerproto.OpUpdate ec = errcode.ErrCodeStreamerSrvFail return } + + err = _DefaultVas.UpdateWechat(ctx, &vasproto.UpdateWechatReq{ + BaseRequest: base.BaseRequest{ + Mid: util.DerefInt64(req.Streamer.Mid), + }, + WechatLockType: util.DerefInt32(req.Streamer.WechatLockType), + WechatContact: util.DerefString(req.Streamer.WechatContact), + WechatCoinPrice: util.DerefInt64(req.Streamer.WechatCoinPrice), + }) + if err != nil { + logger.Error("UpdateWechat fail, mid: %v, err: %v", err) + ec = errcode.ErrCodeStreamerSrvFail + return + } return }