CodePudding user response:
1. Register WeChat development account, add the SDK WeChat to the program2. 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, lettersCodePudding user response:
You should need to develop the sharing function, need to manually click share functionCodePudding 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 specifiedCodePudding 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>
<body>Need to code for free to contact me QQ: 3220192183 & lt;/div>
Jump again & lt;/a>
<script> Window. The location. Href="weixin://dl/business/? Ticket=& lt; ? PHP echo $www_url? & gt; "; </script>