01 2022 档案
摘要:开启邮件smtp服务 设置授权码 引入phpmailer类,smtp类 下载地址https://github.com/PHPMailer/PHPMailer include_once 'PHPMailer.php';include_once 'SMTP.php';$mail = new PHPMai
阅读全文
摘要:public function login(){ $urlencode = urlencode("http://www.zhangxuhui.com/index/Index/callback"); $url = "https://graph.qq.com/oauth2.0/authorize?res
阅读全文
摘要:public function curl($url, $params = false, $ispost = 0){ $httpInfo = array(); //初始化 $ch = curl_init(); /*CURL_HTTP_VERSION_NONE (默认值,让 cURL 自己判断使用哪个版
阅读全文
摘要:function getTree($items){ $arr = []; foreach ($items as $item){ //判断item是否有父分类,如果有把该item放入到父分类的son里面,如果没有把该id放入到arr中 if(isset($items[$item['auth_pid']
阅读全文
摘要:function juheHttpRequest($url, $params = false, $ispost = 0){ $httpInfo = array(); $ch = curl_init(); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP
阅读全文
摘要:class Wechat{ public function __construct(){// $this->checkSignature(); } private function checkSignature() { $signature = $_GET["signature"]; // 加密签名
阅读全文
浙公网安备 33010602011771号