feat: update wallet punch point and report success
This commit is contained in:
@ -317,14 +317,14 @@ final class WildPhotographerReportSubmitViewModel {
|
||||
submitProgressText = "正在提交举报"
|
||||
notifyStateChange()
|
||||
|
||||
try await api.submitReport(buildSubmitRequest(
|
||||
let submitResponse = try await api.submitReport(buildSubmitRequest(
|
||||
scenicId: scenicId,
|
||||
scenicName: scenicName,
|
||||
evidences: evidenceRequests,
|
||||
paymentScreenshots: paymentRequests
|
||||
))
|
||||
|
||||
let record = buildSubmittedRecord()
|
||||
let record = buildSubmittedRecord(response: submitResponse)
|
||||
let result = WildReportSubmitResult(
|
||||
record: record,
|
||||
imageCount: images.count,
|
||||
@ -503,11 +503,11 @@ final class WildPhotographerReportSubmitViewModel {
|
||||
)
|
||||
}
|
||||
|
||||
private func buildSubmittedRecord() -> WildReportRecord {
|
||||
private func buildSubmittedRecord(response: WildReportSubmitResponse) -> WildReportRecord {
|
||||
let parsedContact = WildReportContactParser.parse(contact)
|
||||
return WildReportRecord(
|
||||
serverID: nil,
|
||||
id: "",
|
||||
serverID: response.id > 0 ? response.id : nil,
|
||||
id: response.complaintNo,
|
||||
title: "摄影师举报",
|
||||
reportType: selectedReportType ?? WildReportType(value: 0, label: ""),
|
||||
status: .pending,
|
||||
|
||||
Reference in New Issue
Block a user