浏览代码

1.update sourceId/rootSourceId

wenweiwei 2 年之前
父节点
当前提交
5a297db479
共有 1 个文件被更改,包括 5 次插入1 次删除
  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 = ""