소스 검색

fix: 修改金额数据类型

Destiny 5 달 전
부모
커밋
0cd7b0ab2c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ios/Runner/FlutterMethodChannelManager.swift

+ 1 - 1
ios/Runner/FlutterMethodChannelManager.swift

@@ -94,7 +94,7 @@ class FlutterMethodChannelManager: NSObject {
                 self.initAttribution()
             case "addASAPayReport":
                 if let args = call.arguments as? [String: Any],
-                   let price = args["price"] as? Float {
+                   let price = args["price"] as? Double {
                     AsaManager.shared.addEventAttribution(eventDict: ["event_name": "pay", "event_val": price])
                 } else {
                     result(FlutterError(code: "INVALID_ARGUMENTS", message: "无效的参数", details: nil))