- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 laravel nginx配置
nginx:记录 laravel 使用swoole的配置 #swoole 负载均衡配置 upstream swoole { # Connect IP:Port server 0.0.0.0:5200 weight=5 max_fails=3 fail_timeout=30s; keepalive 16; } server { listen 8080; server_name api.pan.co...
2019-11-30 14:23:17 317
原创 nginx 错误页面替换成json格式返回
可以直接在server配置 server { error_page 403 /respon_403.json; location = /respon_403.json { default_type application/json; return 403 '{"code":"403","status":"error","message":"Forbidden"}'; ...
2019-11-28 17:06:01 1393
原创 yii2 使用mysql case when进行条件排序
$model->orderBy([‘status’ => SORT_ASC, ‘case when status = 3 then create_time end’ => SORT_DESC]) 比如 status 为 1,2,3,如果让 status为3的字段按照其他字段的大小排序,可以 , ‘case when status = 3 then create_time end’...
2019-06-04 11:34:03 1812
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人