- 博客(7)
- 收藏
- 关注
原创 Xdebug
1. xdebug官网2. 粘贴PHPinfo里面的东西(查看源码)3. 下载的php_xdebug-3.0.4-7.3-vc15-nts-x86_64放到下面的路径上4.修改inixdebug.remote_enable=1xdebug.remote_handler = "dbgp"xdebug.remote_host = "localhost"xdebug.remote_mode = "req"xdebug.remote_port = 9000xdebug.idekey = "PHP
2021-05-15 11:07:53
104
原创 解密微信手机号 thinkphp
必备appid //小程序id$sessionKey //登录时候获取的key这个key是有时间限制的但是三天之内应该没什么问题前端获取encryptedData(Base64_Decode加密的)iv(Base64_Decode加密的)// 控制器里面的写法public function decrypt(){ $appid = 'wxdb29abf88a2ab5e9'; $sessionKey = $this->session_key;
2021-04-09 11:05:59
309
原创 微信支付thinkphp 小坑坑
<?phpnamespace app\mouth\controller;use app\mouth\controller\OrderApi;use think\Controller;/** *订单控制器 */class WxPay extends Controller { /** * 微信小程序支付 * @param $total_fee 订单总金额(单位为分) * @param $out_trade_no 我方订单号(不可重复)
2021-04-07 16:57:40
121
原创 微信小程序thinkphp开发登录
public function login(){// 前端获取code的微信id必须是开发者不然获取不到openid// 本地也可以获取到openid $APPID = $this->APPID;//必填 $AppSecret = $this->AppSecret;//必填 $code = input('code');//前端获取传过来的 $url = "https://api.weixin.qq.com/sns/jscode2sessi
2021-01-25 17:20:41
176
原创 登录
session判断用户不需要重复登录,如果有记录直接跳转用户中心判断uuid(取自session)(哈希唯一值)是否正确,不正确说明在其他地方登陆过,删除数据从新登录用cookie判断用户是否记住了密码,如果记住直接进入登录流程cookie过期跳转登录页面判断cookie用户信息和密码判断正常就写入UUID 设置过期时间 保存信息到session 跳转首页否则进入正常登录流程接收数据验证数据写入UUID设置过期时间 保存信息到session 跳转首页...
2020-12-23 11:22:59
73
原创 Thinkphp5.0Excel导入导出
文件位置第三方库链接:https://pan.baidu.com/s/19DizLfm3nAwOef_ghSZluA提取码:zibm代码<?phpnamespace app\admin\controller;use think\Controller;use think\Db;use think\Request;use think\Session;class Excel extends Controller{ public function index(){
2020-11-05 10:48:39
305
原创 PHP获取微信token
<?php header("Content-type:text/html;charset=utf-8"); date_default_timezone_set("PRC"); $signature = $_GET["signature"]; $timestamp = $_GET["timestamp"]; $nonce = $_GET["nonce"]; $echostr = $_GET["echostr"];
2020-07-15 21:36:35
373
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人