示例
示例 // 模拟数据 $userData = [ 'userCode' => 1000, 'userName' => 'test' ]; // 将数据注入到Request对象中 request()->offsetSet('userInfo', $userData);
备注本规则适用接口数据传输,签名验证,等 加密方法 // 传入用户ID和token过期时间 function encodeToken($userCode = 0, $time = 0) { // 计算长度 $strlen = strlen($userCode.$time); // 需要加密的子串 ...
mac配置 1.打开终端进入.ssh目录(cd ~/.ssh) 2.在终端输入 ssh-keygen -t rsa -C "${自定义表示}" 备注:如果.ssh目录里已经有了 id_rsa 和 id_rsa.pub 文件 使用命令(ssh-keygen -t rsa) 生成新的id_rsa 和 id_rsa.pub 文件 linux配置 ...
先安装brew软件,如果已经安装,先brew update,保证brew是最新版本。网址:http://brew.sh/nginx安装 brew install nginx 如果要升级nginx版本请 brew upgrade nginx 运行nginx -V的时候,可以看到nginx的配置文件所在位置 mysql安装 去mysql官网下载mac mysq...
<?php function http($url,$data = '',$method = 'GET',$headers = array()) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADE...
var jinzhi=0; $('.zhezhao').click(function(){ $('.zhezhao').css('display','none'); $('body').css('overflow','auto'); jinzhi = 1; document.removeEventListener("touchmove")...
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, use...
最新版<?php class Sms { const URL = 'http://sms.market.alicloudapi.com'; const METHOD = 'GET'; const URI = '/singleSendSms'; const APPCODE = '0540660bc62749d9a6dbec9079bdb4aa'; ...