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