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