add latitude & longitude

This commit is contained in:
2023-07-05 17:33:22 +08:00
parent 4bf330f824
commit 32464cb494
14 changed files with 581 additions and 31 deletions

View File

@@ -389,7 +389,7 @@ public class EventApiController : BaseController
};
AddPhotoItem(p);
await WriteToFile(user.Id, record.FlowerId, file, token);
await WriteToFile(record.FlowerId, file, token);
});
}
catch (Exception ex)
@@ -483,7 +483,7 @@ public class EventApiController : BaseController
};
AddPhotoItem(p);
await WriteToFile(user.Id, record.FlowerId, file, token);
await WriteToFile(record.FlowerId, file, token);
}
}
});
@@ -555,7 +555,7 @@ public class EventApiController : BaseController
if (photo.Record != null)
{
DeleteFile(user.Id, photo.Record.FlowerId, photo.Path);
DeleteFile(photo.Record.FlowerId, photo.Path);
}
return NoContent();
@@ -613,7 +613,7 @@ public class EventApiController : BaseController
{
if (photo.Record != null)
{
DeleteFile(user.Id, photo.Record.FlowerId, photo.Path);
DeleteFile(photo.Record.FlowerId, photo.Path);
}
}