Explorar o código

1.update sourceId/rootSourceId

wenweiwei %!s(int64=2) %!d(string=hai) anos
pai
achega
0ee11f1102
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      BFStuckPointKit/Classes/BFUtils/PQThirdPlatformUtil.swift

+ 5 - 1
BFStuckPointKit/Classes/BFUtils/PQThirdPlatformUtil.swift

@@ -168,7 +168,11 @@ public class PQSingletoWXApiUtil: NSObject {
 
                 } else {
                     let webpageObject = WXWebpageObject()
-                    webpageObject.webpageUrl = path ?? ""
+                    var webpageUrl = path ?? ""
+                    if (webpageUrl.count > 0) {
+                        webpageUrl = webpageUrl + "&sourceId=\(sourceId ?? "")&rootSourceId=\(rootSourceId ?? "")"
+                    }
+                    webpageObject.webpageUrl = webpageUrl
                     message.mediaObject = webpageObject
                     if type == 4 {
                         message.description = ""