- 博客(6)
- 收藏
- 关注
原创 Thinkphp5.0解决跨域问题
Thinkphp5.0解决跨域问题 在api模块新建behavior目录 在behavior目录下边创建COSR.php类 <?php namespace app\h5\behavior; class CORS { public function appInit(){ header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Methods:*'); hea
2021-11-17 11:23:22
842
原创 MySQL查询小技巧
1.查询指定月的数据 $where = []; if (!empty($this->param['time'])) { $month_start = strtotime($this->param['time']);//指定月份月初时间戳 $month_end = mktime(23, 59, 59, date('m', strtotime($this->param['time']))+1, 00);//指定月份月末时间戳 $where[] = ['leave.create_time'
2021-04-16 14:44:02
134
原创 php使用curl获取有赞商城access_token
public function getAccessToken($data=[]){ $url = 'https://open.youzanyun.com/auth/token'; $data = [ 'client_id' => 'xxxxxxxxxxxxxxx', 'client_secret' => '448bd8f34xxxxxxxxxxxxxxxx', 'authorize...
2020-12-09 10:25:24
499
原创 Nginx隐藏入口文件配置
index index.php index.html index.htm; location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; break; } }
2020-09-28 11:32:58
466
原创 @ 用Jquery实现添加用户表单验证功能
用Jquery实现添加用户(用户注册登录同理)表单验证功能 form表单部分 <!-- onsubmitb表单提交事件把 CheckFrom() 的结果 return 回来 如果是false的话阻止表单提交 --> <form action="" method="post" enctype="multipart/form-data" onsubmit="return Check...
2020-03-27 02:28:55
549
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人