@aigens/aigens-sdk-core 5.0.1 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -243,6 +243,10 @@ public class WebContainerActivity extends BridgeActivity {
|
|
243
243
|
String sign = url.contains("?") ? "&" : "?";
|
244
244
|
getIntent().putExtra("url", url + sign + "channel=app");
|
245
245
|
}
|
246
|
+
String url2 = getIntent().getStringExtra("url");
|
247
|
+
String sign2 = url2.contains("?") ? "&" : "?";
|
248
|
+
getIntent().putExtra("url", url2 + sign2 + "ts=" + String.valueOf(System.currentTimeMillis()));
|
249
|
+
|
246
250
|
}
|
247
251
|
}
|
248
252
|
|
@@ -232,6 +232,8 @@ public class CorePlugin: CAPPlugin {
|
|
232
232
|
let r = ["closedData": data]
|
233
233
|
WebContainerViewController.closeCB?(r)
|
234
234
|
CorePlugin.dismissCall?.resolve(r)
|
235
|
+
}else {
|
236
|
+
WebContainerViewController.closeCB?(["closedData": [:]])
|
235
237
|
}
|
236
238
|
|
237
239
|
//let value = call.getString("value") ?? ""
|
@@ -343,6 +345,8 @@ public class CorePlugin: CAPPlugin {
|
|
343
345
|
let r = ["closedData": data]
|
344
346
|
WebContainerViewController.closeCB?(r)
|
345
347
|
CorePlugin.dismissCall?.resolve(r)
|
348
|
+
}else {
|
349
|
+
WebContainerViewController.closeCB?(["closedData": [:]])
|
346
350
|
}
|
347
351
|
|
348
352
|
//let value = call.getString("value") ?? ""
|
@@ -89,12 +89,20 @@ import Capacitor
|
|
89
89
|
}
|
90
90
|
private func addChannel() {
|
91
91
|
if let urlString = self.options?["url"] as? String {
|
92
|
-
|
93
92
|
if !urlString.contains("&channel=app") && !urlString.contains("?channel=app") {
|
94
93
|
let sign = urlString.contains("?") ? "&" : "?"
|
95
94
|
self.options?["url"] = urlString + sign + "channel=app"
|
96
95
|
}
|
96
|
+
|
97
97
|
}
|
98
|
+
|
99
|
+
if let urlString = self.options?["url"] as? String {
|
100
|
+
let sign = urlString.contains("?") ? "&" : "?"
|
101
|
+
let timestamp = Int(Date().timeIntervalSince1970 * 1000)
|
102
|
+
self.options?["url"] = urlString + sign + "ts=\(timestamp)"
|
103
|
+
}
|
104
|
+
|
105
|
+
|
98
106
|
}
|
99
107
|
|
100
108
|
private func clearCache() {
|