Browse Source

1.update sourceId/rootSourceId

wenweiwei 2 years ago
parent
commit
5a297db479
1 changed files with 5 additions and 1 deletions
  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 = ""