当我尝试将带有description
参数的链接或图片发送到 WeChatMoments 或 WeChatSession 时,说明永远不会显示。除描述外,其他每个参数都正确显示。也没有错误。这是我的代码,请注意description
已填充:
WXMediaMessage *message = [WXMediaMessage message];
message.title = @"Perfect Title";
message.description = @"Amazing Graphic";
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString* path = [documentsDirectory stringByAppendingPathComponent:[NSString stringWithUTF8String:thumbnailPath]];
[message setThumbImage:[UIImage imageWithContentsOfFile:path]];
WXImageObject *ext = [WXImageObject object];
NSString* filePath = [documentsDirectory stringByAppendingPathComponent:[NSString stringWithUTF8String:contentPath]];
ext.imageData = [NSData dataWithContentsOfFile:filePath] ;
message.mediaObject = ext;
SendMessageToWXReq* req = [[[SendMessageToWXReq alloc] init]autorelease];
req.bText = NO;
req.message = message;
req.scene = (true)?WXSceneTimeline:WXSceneSession;
[WXApi sendReq:req];
我已尝试过来自WeChatDeveloper documentation的代码示例,即使填写了description
paremeter,它也只会显示标题/图形的链接。
我的问题是,任何人都面临同样的问题,并且有任何缺少描述字段的解决方案吗?
可能会出现问题,因为我的应用尚未验证?