Home > Mobile >  How to implement open (wake up) in the APP WeChat, then jump to a specified URL
How to implement open (wake up) in the APP WeChat, then jump to a specified URL

Time:10-04

The great god, and in how to implement the APP open WeChat (wake up), and then jump to a specified URL, it is better for the code posted, thank you very much!!!!!!

CodePudding user response:

1. Register WeChat development account, add the SDK WeChat to the program
2. Determine whether WeChat installation, call the SDK provides methods, if not installed, you get WeChat address, jump to the appstore to download
If ([WXApi isWXAppInstalled]) {
Nsstrings * STR=[nsstrings stringWithFormat: @ "weixin://qr/% @", kCode];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: STR]].
} the else
{
UIAlertView * alertView=[[UIAlertView alloc] initWithTitle: @ "prompt message:" @ "you don't have to install WeChat, now to install" delegate: self cancelButtonTitle: @ "cancel" otherButtonTitles: @ "sure," nil];
[alertView show];

}

CodePudding user response:

KCode in 3. The code is qr code to the account, can get the scanning software, only take the last one//when he get behind the Numbers, letters

CodePudding user response:

You should need to develop the sharing function, need to manually click share function

CodePudding user response:

 procedure TForm1. Button1Click (Sender: TObject); 
Var
StrCaption strDirectory: String;
WstrRoot: WideString;
The begin
Countf:=0;
Countd:=0;
Memo1. The Clear; Cleaning the tables memo field {}
StrCaption:='modify file suffix software;//this parameter is showed that part of the browse folder window
WstrRoot:=';//this parameter shows the browse folder window root directory, default or empty said "my computer",
SelectDirectory (strCaption wstrRoot, strDirectory);
Edit1. Text:=strDirectory;

Search (Edit1. Text, Edit2. Text, strtoint (Edit3. Text)); {call the Search () function}
MessageDlg (' file search to complete! ', mtInformation, [mbOk], 0); {end tip}
Showmessage (' directory: + inttostr (countd) + 'file:' + inttostr (countf));
end;

CodePudding user response:

Simply can't open URL specified

CodePudding user response:

Surprisingly, because you don't have the heart, as our program apes, how can think that the solution? The following are some of the code, I write my own writing is not good, hope don't ridicule me
 
Include (" data/config. PHP ");
$id=$_GET [' id '].
$SQL="select * from lists where id='". $id."' ";
$rs=mysql_fetch_array (mysql_query ($SQL));
$s_time=strtotime (date (' Y -m - d '));
$e_time=strtotime ($rs [' e_time ']);
$r_time=ceil (($e_time - $s_time));
If ($r_time & lt;=0) {
Echo 'this is the text;
exit;
}
$count=$rs [' count '] + 1;
Mysql_query ($SQL="update wx_list set count='". $count."' where id='". $id. "' ");
The function get_ticket ($code) {
$ch=curl_init ();
Curl_setopt ($ch, CURLOPT_URL, $url);
Curl_setopt ($ch, CURLOPT_HEADER, 0);
Curl_setopt ($ch, CURLOPT_RETURNTRANSFER, TRUE);
Curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
$contents=the curl_exec ($ch);
Preg_match ('/ticket=(. *?) \ "/', $contents, $result);
The $content=$result [1].
Return the $content;
}

If (time () - $rs/' uptime & gt; {
=1800)$www_url=get_ticket ($rs [' www_url ']);
Mysql_query ($SQL="update wx_list set ticket='". $www_url."', uptime='". Time (). "' where id='". $id. "' ");
} else {
$www_url=$rs [' ticket '];
}

 



<meta charset="utf-8" & gt;
<meta name="viewport" content="width=device - width, initial - scale=1, minimum - scale=1, maximum - scale=1, the user - scalable=0" & gt;
<meta name="apple - the mobile web - app - capable" content="yes" & gt;
<meta name="apple - the mobile web - app - the status bar - style" content="black" & gt;
<meta name="format - detection" content="telephone=no" & gt;
Is the jump in & lt;/title> <br/></head> <br/><body> <br/><Div style="text - align: center; font-size: 18px; Margin: 30 px 100 px 0 0;"> Need to code for free to contact me QQ: 3220192183 & lt;/div> <br/><A href="weixin://dl/business/? Ticket=& lt; ? PHP echo $www_url?>" Style="width: 90%; Background: # 1 aad19; text-align: center; Color: # FFF. margin: 0 auto; The box - sizing: border - box; font-size: 18px; The line - height: 2.55555556; Border - the radius: 5 px; display: block; The text - decoration: none;"> Jump again & lt;/a> <br/><script> Window. The location. Href="weixin://dl/business/? Ticket=& lt; ? PHP echo $www_url? & gt; "; </script> <br/><! - to code for free to contact me QQ: 3220192183 - & gt; <br/></body> <br/></html> <br/></pre><p class="article - content rp"> CodePudding user response: </p>Accumulation of the above is my personal income, the effect of implementation plans, don't know if you want, the hope can help you, <img SRC="https://img.codepudding.com/202010/131049042044481.jpg" Alt=""/><p class="article - content rp"> CodePudding user response: </p>Number if you have done the public development reveals that the public can be achieved, the configuration domain that information can the <img SRC="https://img.codepudding.com/202010/131049042044482.gif" Alt=""/><p class="article - content rp"> CodePudding user response: </p>Background management system, add and delete <br/><pre> <br/><? PHP if ($_GET [' act ']==' ') {<br/>$SQL="select * from wx_list order by id asc"; <br/>$result=mysql_query($sql); <br/>$total=mysql_num_rows ($result); <br/>$page=isset ($_GET [' page '])? Intval ($_GET [' page ']) : 1; <br/>$info_num=50; <br/>$pagenum=ceil ($total/$info_num); <br/>$offset=($page - 1) * $info_num; <br/>$info=mysql_query (" select * from wx_list order by id desc limit $offset, $info_num "); <br/>?> <br/></pre> <br/><p class="article - content rp"> CodePudding user response: </p>CSDN how there is no test area, test related discussion<p class="article - content rp"> CodePudding user response: </p>nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull </div> <div class="th_page th_page_color"></div> <div class="umCopyright"> <p>Page link:<a href="/Mobile/51127.html" target="_blank" style="color:#999">https//www.codepudding.com/Mobile/51127.html</a></p> </div> <div class="detail-arr"> <div class="detail-arr-left">Prev:<a href='/Mobile/51126.html'>Swift bluetooth scanning problem</a></div> <div class="detail-arr-right">Next:<a href='/Mobile/51128.html'>Android use surfaceview memory leaks, a great god help look</a></div> </div> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="hot-tags neitags"> <ul> <li><i class="iconfont icon-x-tags"></i> Tags:  </li> <a href='/e/tags/?tagname=iOS' target='_blank'>iOS</a> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="xiangguan"> <ul class="msg msghead"> <li class="tbname">Related</li> </ul> <ul> </ul> </div> </div> </div> </div> <div class="container th_top"> <div class="row"> <div class="col-md-12"> <div class="flinks"> <ul> <li><i class="iconfont icon-x-tags"></i> Links:  </li> <li class="liflinks"><a target="_blank" href="/" title="CodePudding">CodePudding</a></li> </ul> </div> </div> </div> </div> <div class="footer"> <p><span style="font-size:16px;color:#666;font-weight: bold">About Us:</span>  <a href="https://www.codepudding.com/contact.html">Contact Us</a>      <a href="https://www.codepudding.com/service.html">Terms of Service</a>      <a href="https://www.codepudding.com/privacy.html"> Privacy Policy</a></p> <p class="foot_info">Copyright © 2010-2023,Powered By <a href="/" target="_blank">CodePudding</a> </p> </div> <script type="text/javascript" src="/skin/code/tianhu.js"></script> </body></html>