为旅拍 OTG 上传增加 client_photo_id,并按服务端已登记 ID 同步本地上传状态。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-16 19:13:19 +08:00
parent 3d5ad8a614
commit b019e1e494
11 changed files with 323 additions and 115 deletions

View File

@ -421,13 +421,19 @@ final class WildReportRiskMapViewController: BaseViewController {
let avatarWrap = UIView()
avatarWrap.backgroundColor = AppColor.success.withAlphaComponent(0.12)
avatarWrap.layer.cornerRadius = 28
let avatar = UIImageView(image: UIImage(systemName: clue.avatar ?? "person.crop.circle.fill"))
let placeholder = UIImage(systemName: "person.crop.circle.fill")
let avatar = UIImageView(image: placeholder)
avatar.tintColor = AppColor.success
avatar.contentMode = .scaleAspectFit
avatar.contentMode = .scaleAspectFill
avatar.clipsToBounds = true
avatar.layer.cornerRadius = 28
let avatarURLString = clue.avatar?.trimmingCharacters(in: .whitespacesAndNewlines) ?? ""
if let avatarURL = URL(string: avatarURLString), !avatarURLString.isEmpty {
avatar.kf.setImage(with: avatarURL, placeholder: placeholder)
}
avatarWrap.addSubview(avatar)
avatar.snp.makeConstraints { make in
make.center.equalToSuperview()
make.size.equalTo(42)
make.edges.equalToSuperview()
}
avatarWrap.snp.makeConstraints { make in
make.size.equalTo(56)