Forráskód Böngészése

预生产环境-分享QQ分享失败--链接没写对

huangxiaodong 1 éve%!(EXTRA string=óta)
szülő
commit
32c5f3a2b5

+ 1 - 1
创维盒子/双子星云手机/AppDelegate/PrefixHeader.pch

@@ -103,7 +103,7 @@ isBangsScreen; \
 
 //预生产环境
 #define CloudService   @"http://testprivacy.phone.androidscloud.com:10900"
-#define shareService   @" http://testprivacy.phone.androidscloud.com:10900/h5/#/pages/fileSharing/index?productType=Private-X&token="
+#define shareService   @"http://testprivacy.phone.androidscloud.com:10900/h5/#/pages/fileSharing/index?productType=Private-X&token="
 
 //生产环境
 //#define CloudService   @"http://hiboxde.armclouding.com:7780"

+ 5 - 2
创维盒子/双子星云手机/Helpers/customShareManageTool.m

@@ -36,6 +36,9 @@
 - (void)shareType:(NSInteger)type withShareUrl:(NSString*)shareUrl withShareTitle:(NSString*)shareTitle  withShareContent:(NSString*)shareContent
 {
     //[[iToast makeText:@"接入云游戏的APP分享请在这里添加代码实现"] show];
+    
+    //HLog(@"type:%ld---shareUrl:%@---shareTitle:%@",type,shareUrl,shareTitle)
+    
     if(type == 3)
     {
         [self shareQQwithShareUrl:shareUrl withShareTitle:shareTitle withShareContent:shareContent];
@@ -60,9 +63,9 @@
     UIImage *shareImage = [UIImage imageNamed:@"AppIcon"];
 
     /*分享文字+连接*/
-
+    NSURL*curUrl = [NSURL URLWithString:shareUrl];
     QQApiNewsObject *newsObj = [QQApiNewsObject
-    objectWithURL:[NSURL URLWithString:shareUrl]
+    objectWithURL:curUrl
     title:shareTitle
     description:shareContent
     previewImageData:UIImagePNGRepresentation(shareImage)];