zhangqian
2023-10-17 b45b8ce8051e2ad9c80aafa42d1a5892f6a36bce
api/v1/subOrder.go
@@ -34,6 +34,13 @@
      return
   }
   if subOrder.MemberId == 0 {
      userInfo := utils.GetUserInfo(c)
      if userInfo.UserType == constvar.UserTypeSub {
         subOrder.MemberId = userInfo.CrmUserId
      }
   }
   errCode = subOrderService.AddSubOrder(&subOrder)
   if errCode != ecode.OK {
      ctx.Fail(errCode)