fix:申请入驻接口增加微信昵称审核
This commit is contained in:
parent
ac659dbc6c
commit
d738c8c840
|
@ -1160,6 +1160,11 @@ func (s *Service) ApiGetStreamerAuthApprovalBasicHisList(ctx *gin.Context, req *
|
||||||
|
|
||||||
func (s *Service) ApiCreateStreamerAuthApprovalDetails(ctx *gin.Context, req *streamerauthapprovaldetailsproto.ApiCreateReq) (ec errcode.ErrCode) {
|
func (s *Service) ApiCreateStreamerAuthApprovalDetails(ctx *gin.Context, req *streamerauthapprovaldetailsproto.ApiCreateReq) (ec errcode.ErrCode) {
|
||||||
ec = errcode.ErrCodeStreamerAuthApprovalDetailsSrvOk
|
ec = errcode.ErrCodeStreamerAuthApprovalDetailsSrvOk
|
||||||
|
// 禁止设置[wxid_]开头的初始微信号
|
||||||
|
if strings.HasPrefix(req.GetWechatContact(), "wxid_") {
|
||||||
|
ec = errcode.ErrCodeStreamerWxIdSetError
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if ec = s.ApiCreateStreamerAuthApprovalDetailsBusinessValidate(ctx, req); ec != errcode.ErrCodeStreamerAuthApprovalSrvOk {
|
if ec = s.ApiCreateStreamerAuthApprovalDetailsBusinessValidate(ctx, req); ec != errcode.ErrCodeStreamerAuthApprovalSrvOk {
|
||||||
return
|
return
|
||||||
|
|
|
@ -129,6 +129,13 @@ func (p *StreamerAuthApprovalDetails) GetApproveStatus() int64 {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (p *StreamerAuthApprovalDetails) GetWechatContact() string {
|
||||||
|
if p == nil || p.WechatContact == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return *p.WechatContact
|
||||||
|
}
|
||||||
|
|
||||||
type StreamerAuthApprovalVersion struct {
|
type StreamerAuthApprovalVersion struct {
|
||||||
Id int64 `json:"id" bson:"_id"` //id,主播的mid
|
Id int64 `json:"id" bson:"_id"` //id,主播的mid
|
||||||
Version int64 `json:"version" bson:"version"` //版本号
|
Version int64 `json:"version" bson:"version"` //版本号
|
||||||
|
|
Loading…
Reference in New Issue