Merge pull request 'by Robin at 20230110; fix' (#51) from feat-20240109-001-Robin into main

Reviewed-on: #51
This commit is contained in:
chenhao 2024-01-10 01:43:29 +08:00
commit 439f80db54
1 changed files with 14 additions and 0 deletions

View File

@ -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
}