惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
GbyAI
GbyAI
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
U
Unit 42
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
Google DeepMind News
Google DeepMind News
Vercel News
Vercel News
美团技术团队
雷峰网
雷峰网
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
D
DataBreaches.Net
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
罗磊的独立博客
MyScale Blog
MyScale Blog
博客园_首页
IT之家
IT之家
F
Fortinet All Blogs
博客园 - Franky

博客园 - 小馬過河﹎

一些有用的javascript函数 layui多文件上传表格 layui静态表格防止被内容撑开变形 php使用mysql-text字段存取json字符串 ThinkPHP3 系统常量__SELF__在生产模式(debug=false)下不更新 PHP将数据表里的两个字段映射成对象的键和值 普通表格table样式美化 PHP通用请求函数sendCurl 查看证书/apk指纹md5/sha1/sha256 php跨域 javascript使用正则表达式高亮关键字 博文阅读密码验证 - 博客园 [转载]php递归生成树形结构(几种常见的数据结构) PHP二维数组排序|PHP二维数组去重 textarea中禁止使用换行(回车) php json_encode 斜杠 反斜杠 转义处理 ThinkPHP获取当前url js获取url中的查询参数 layui多图片上传
ThinkPHP接收header自定义参数
小馬過河﹎ · 2022-12-24 · via 博客园 - 小馬過河﹎
// 请求拦截,配置Token等参数
Vue.prototype.$u.http.interceptor.request = (config) => {
config.header['content-type'] = 'application/x-www-form-urlencoded'
config.header.token = uni.getStorageSync('token') || ''
return config
}
function __construct() {
	parent::__construct();
	$paylod = (new Jwt)->verifyToken(I('SERVER.HTTP_TOKEN'));
	$this->currentUserId = (int)$paylod['user_id'];
}

posted on 2022-12-24 10:36  小馬過河﹎  阅读(837)  评论(0)    收藏  举报

刷新页面返回顶部