瀏覽代碼

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))