fix:调整
This commit is contained in:
parent
e2e2880514
commit
8b42c41bc5
|
@ -72,6 +72,7 @@ func (l *UploadCallbackLogic) UploadCallback(req *types.UploadCallbackReq, useri
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var version string = "0.0.1"
|
||||||
var fsResource = &gmodel.FsResource{}
|
var fsResource = &gmodel.FsResource{}
|
||||||
fsResource.UserId = &userId
|
fsResource.UserId = &userId
|
||||||
fsResource.GuestId = &guestId
|
fsResource.GuestId = &guestId
|
||||||
|
@ -81,6 +82,7 @@ func (l *UploadCallbackLogic) UploadCallback(req *types.UploadCallbackReq, useri
|
||||||
fsResource.Metadata = &req.Metadata
|
fsResource.Metadata = &req.Metadata
|
||||||
fsResource.ApiType = &req.ApiType
|
fsResource.ApiType = &req.ApiType
|
||||||
fsResource.BucketName = bucketName
|
fsResource.BucketName = bucketName
|
||||||
|
fsResource.Version = &version
|
||||||
if resourceInfo.ResourceId == "" {
|
if resourceInfo.ResourceId == "" {
|
||||||
_, err = resourceModelTS.Create(ctx, fsResource)
|
_, err = resourceModelTS.Create(ctx, fsResource)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user