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

Reviewed-on: #50
This commit is contained in:
chenhao 2024-01-10 00:37:23 +08:00
commit 8545955ac0
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
}