2018年2月26日

摘要: phpstorm2017.1 快捷键 windows快捷键 mac快捷键 主题 插件 使用技巧 Live Template xdebug远程调试 一、监听调试(需要浏览器插件,火狐->The easiest Xdebug,谷歌->xdebug helper) 二、主动调试 阅读全文

posted @ 2018-02-26 17:02 小阿杉 阅读(152) 评论(0) 推荐(0) 编辑

2017年8月9日

摘要: <?php $xml_weixin = file_get_contents('php://input'); $app=str_replace("<![CDATA[", "", $xml_weixin); $app=str_replace("]]>", "", $app); $xml_array=si 阅读全文

posted @ 2017-08-09 17:42 小阿杉 阅读(159) 评论(0) 推荐(0) 编辑

2017年5月8日

摘要: /** * 利用phpqrcode来实现生成带有logo的二维码图片 */ public function getQrCode(Request $request){ $type = $request->input('type');//传递的类型 ios | android require_once( 阅读全文

posted @ 2017-05-08 17:44 小阿杉 阅读(2429) 评论(0) 推荐(0) 编辑

2017年4月27日

摘要: <?phpnamespace App\Http\Controllers;use App\User;use Validator;use App\Http\Controllers\Controller;use Laravel\Socialite\Facades\Socialite;use Illumin 阅读全文

posted @ 2017-04-27 14:21 小阿杉 阅读(495) 评论(0) 推荐(0) 编辑

摘要: php 微信 统一下单 接口实例 <?phpclass wechatAppPay { //接口API URL前缀 const API_URL_PREFIX = 'https://api.mch.weixin.qq.com'; //下单地址URL const UNIFIEDORDER_URL = "/ 阅读全文

posted @ 2017-04-27 14:13 小阿杉 阅读(590) 评论(0) 推荐(0) 编辑

2017年3月28日

摘要: 我们从S函数分析ThinkPHP框架缓存机制,像快速缓存、查询缓存、SQL解析缓存、静态缓存根本上都是在这种机制下运行,只是切入方式不同。 首先,看下S函数定义:/*** 缓存管理* @param mixed $name 缓存名称,如果为数组表示进行缓存设置* @param mixed $value 阅读全文

posted @ 2017-03-28 16:02 小阿杉 阅读(893) 评论(0) 推荐(0) 编辑

摘要: 首先在数据库中添加access_token表: SET FOREIGN_KEY_CHECKS=0; -- -- Table structure for access_token -- DROP TABLE IF EXISTS `access_token`; CREATE TABLE `access_ 阅读全文

posted @ 2017-03-28 16:01 小阿杉 阅读(504) 评论(0) 推荐(0) 编辑