socket没连接上直接发消息,会闪退,方法static void fillTMessage(mars::stn::TMessage &tmsg, WFCCConversation *conv, WFCCMessageContent *content) {
tmsg.conversationType = (int)conv.type;
tmsg.target = conv.target ? [conv.target UTF8String] : "";
tmsg.line = conv.line;
tmsg.from = [[WFCCNetworkService sharedInstance].userId UTF8String];
tmsg.status = mars::stn::MessageStatus::Message_Status_Sending;
tmsg.timestamp = time(NULL)*1000;
tmsg.direction = 0;
fillTMessageContent(tmsg.content, content);
}
中[[WFCCNetworkService sharedInstance].userId UTF8String]用户ID为空时会直接闪退