#if编译判断

#if isEnableXMPP

[[IMWebInterface sharedInstance] sendMediaResourceRequest:msghistory.Sender to:msghistory.Receiver data:[NSData dataWithContentsOfFile:msghistory.MediaURL] fileType:@"2" type:[NSString stringWithFormat:@"%d", msghistory.NotifyType] andMsgID:msghistory.MessageId andAudioTime:[NSString stringWithFormat:@"%d", msghistory.Duration] andProcessView:data.progressView picShotData:nil];

#else

/*******************************调用云信 发送消息**********************************/

self.localMsgId = msghistory.MessageId;

NIMMessage *message = [[NIMMessage alloc] init];

NIMAudioObject *audioObj = [[NIMAudioObject alloc] initWithSourcePath:tempAudioFilePath];

message.text = @"receive a record"; //这个文字显示在推送上面

message.messageObject = audioObj;

[self sendMessage:message];

/*******************************调用云信 发送消息**********************************/

#endif

你可能感兴趣的:(#if编译判断)