QQ客服代碼移動版


mqqwpa://im/chat?chat_type=wpa&uin=910521727&version=1&src_type=web&web_src=qq.com

 

mqqwpa://im/chat?chat_type=wpa&uin=910521727&version=1

 

是的,你也許見過強行聊天的代碼:

 tencent://Message/?Uin=910521727&websiteName=www.qq.com&Menu=yes

 

但是你應該不知道,還有強行加好友的代碼:

tencent://AddContact/?fromId=45&fromSubId=1&subcmd=all&uin=910521727&fuin=938065079&website=www.qq.com

 

 

Android:

 

String url="mqqwpa://im/chat?chat_type=wpa&uin=501863587";
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));

 

 

iOS:

 

UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectZero];
NSURL *url = [NSURL URLWithString:@"mqq://im/chat?chat_type=wpa&uin=501863587&version=1&src_type=web"];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
webView.delegate = self;
[webView loadRequest:request];
[self.view addSubview:webView];


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM