摘要: composer 安装JWT composer require firebase/php-jwt 首先在应用公共文件中引入JWT use Firebase\JWT\JWT; 创建token /** * 创建 token * @param array $data 必填 自定义参数数组 * @param 阅读全文
posted @ 2020-08-05 19:04 孤陌 阅读(3758) 评论(0) 推荐(0) 编辑
摘要: //以下方法仅供参考1、返回上一页,不刷新history.html window.history.go(-1); javascript:window.history.go(-1) 2、返回上一页并刷新页面 avascript:location.replace(this.href);event.ret 阅读全文
posted @ 2020-08-05 18:47 孤陌 阅读(3004) 评论(0) 推荐(0) 编辑
摘要: allowField 也可以直接带更新条件来更新数据 $user = new User; // save方法第二个参数为更新条件 $user->save([ 'name' => 'thinkphp', 'email' => 'thinkphp@qq.com' ],['id' => 1]); 如果需要 阅读全文
posted @ 2020-08-05 18:44 孤陌 阅读(1109) 评论(0) 推荐(0) 编辑