会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
CanyingV
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
下一页
2020年12月26日
api接口限流策略
该文被密码保护。
阅读全文
posted @ 2020-12-26 12:01 CanyingV
阅读(2)
评论(0)
推荐(0)
2020年12月5日
获取关联模型的部分字段
摘要: $lists = Orders::with(['goods:order_id,name']) //外键order_id必须有 ->select(['id','order_no']) ->paginate(10) ->toArray();
阅读全文
posted @ 2020-12-05 17:40 CanyingV
阅读(119)
评论(0)
推荐(0)
查询最近执行的sql
摘要: \DB::enableQueryLog(); \DB::table('fa_wx_article') ->select('id','c_id','title','visit','add_time') ->get(); return \DB::getQueryLog(); [ { "query": "
阅读全文
posted @ 2020-12-05 17:05 CanyingV
阅读(101)
评论(0)
推荐(0)
2020年12月2日
docker-容器
摘要: 创建并进入容器 docker run -it centos /bin/bash 创建并后台运行 docker run -d centos /bin/bash 查看运行中的容器 docker ps 查看所有容器 docker ps -a 在容器中退出容器 1. exit 停止并退出容器 2. ctrl
阅读全文
posted @ 2020-12-02 14:07 CanyingV
阅读(36)
评论(0)
推荐(0)
2020年11月21日
判断一个经纬度是否在一个围栏内
摘要: public function is_point_in_polygon($point, $pts) { $N = count($pts); $boundOrVertex = true; //如果点位于多边形的顶点或边上,也算做点在多边形内,直接返回true $intersectCount = 0;/
阅读全文
posted @ 2020-11-21 17:35 CanyingV
阅读(907)
评论(0)
推荐(0)
百度高德经纬度转换
摘要: if(! function_exists('bdEncrypt')) { //GCJ-02(火星,高德)坐标转换成BD-09(百度)坐标 //@param $longitude 高德经度 //@param $latitude 高德纬度 function bdEncrypt($longitude,$l
阅读全文
posted @ 2020-11-21 17:30 CanyingV
阅读(361)
评论(0)
推荐(0)
2020年11月19日
laravel 扩展包
摘要: 1.模型代码提示 composer require barryvdh/laravel-ide-helper 2.debug工具 composer require barryvdh/laravel-debugbar
阅读全文
posted @ 2020-11-19 14:39 CanyingV
阅读(83)
评论(0)
推荐(0)
2020年10月24日
curl
摘要: public function curlrequest($url,$data,$method = 'GET',$type='json',$headers=[]) { try{ //初始化 $ch = curl_init(); $headers[] = "cache-control: no-cache
阅读全文
posted @ 2020-10-24 16:01 CanyingV
阅读(73)
评论(0)
推荐(0)
2020年10月11日
天气
摘要: <iframe src="http://i.tianqi.com/index.php?c=code&id=7" ></iframe>
阅读全文
posted @ 2020-10-11 16:10 CanyingV
阅读(54)
评论(0)
推荐(0)
2020年9月16日
ajax
摘要: $.ajax({ url:"{:url('user')}", data:{"group_id":data.value}, type:'post', dataType:'json', success:function (res) { console.log(res); for(var i=0;i<re
阅读全文
posted @ 2020-09-16 08:59 CanyingV
阅读(92)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
下一页
公告