Ver código fonte

没有分配mk生成二维码提示

icole 4 anos atrás
pai
commit
3b77ee1ab1

+ 3 - 0
internal/logic/acquirer_mkt_qr/acquirer_mkt_qr_update_logic.go

@@ -71,6 +71,9 @@ func (l *AcquirerMktQrUpdateLogic) AcquirerMktQrUpdate(r *http.Request) (*types.
 		if partUser.Id == 0 {
 			return &types.Response{500, "请先申请成为兼职", nil}, nil
 		}
+		if partUser.MkId == "" {
+			return &types.Response{500, "请联系管理员,分配mk", nil}, nil
+		}
 		erpUser, err := model.GetErpUser("", partUser.MkId, l.svcCtx.Transformer)
 		if err != nil {
 			logx.Error(err.Error())