|
@@ -21,6 +21,9 @@ func RegQueenMeshes(router *GinRouter) {
|
|
|
if len(hub.Name) < 1 {
|
|
|
return nil, NewError("参数不合法!")
|
|
|
}
|
|
|
+ if len(hub.Thumbnail) < 1 {
|
|
|
+ return nil, NewError("没有模型封面")
|
|
|
+ }
|
|
|
hub.CreateTime = time.Now()
|
|
|
hub.UserId, _ = primitive.ObjectIDFromHex(apictx.User.Parent)
|
|
|
if hub.UserId == primitive.NilObjectID {
|