iOS calls QQ client for temporary chat

if([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"mqq://"]]) {//有安装QQ
   
    //用来接收临时消息的客服QQ号码(注意此QQ号需开通QQ推广功能,否则陌生人向他发送消息会失败)
    NSString *url = [NSString stringWithFormat:@"mqq://im/chat?chat_type=wpa&uin=%@&version=1&src_type=web",@"1336486114"];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
    
}else{
    
    //提示:未安装QQ客户端
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325022724&siteId=291194637