摘要: arr.includes() 阅读全文
posted @ 2021-12-04 10:42 孙皓月 阅读(66) 评论(0) 推荐(0)
摘要: 解决方案(一) 重启宝塔计划任务 /bin/systemctl restart crond.service 查状态 /bin/systemctl status crond.service 解决方案(二) 停止再启动宝塔计划任务 /bin/systemctl stop crond.service /b 阅读全文
posted @ 2021-02-18 11:18 孙皓月 阅读(1083) 评论(0) 推荐(0)
摘要: field('*, ( 6371 * acos( cos( radians(' . $latitude . ') ) * cos( radians( latitude ) ) * cos( radians( longitude ) - radians(' . $longitude . ') ) + 阅读全文
posted @ 2021-02-02 12:02 孙皓月 阅读(206) 评论(0) 推荐(0)
摘要: $point=[ 'lng'=>121.23035, 'lat'=>31.218608 ]; $arr=[ [ 'lng'=>121.23036, 'lat'=>31.218609 ], [ 'lng'=>121.233666, 'lat'=>31.210579 ], [ 'lng'=>121.24 阅读全文
posted @ 2021-01-27 11:45 孙皓月 阅读(142) 评论(0) 推荐(0)
摘要: /** * desription 压缩图片 * @param sting $imgsrc 图片路径 * @param string $imgdst 压缩后保存路径 */ public function compressedImage($imgsrc, $imgdst) { list($width, 阅读全文
posted @ 2021-01-21 09:29 孙皓月 阅读(128) 评论(0) 推荐(0)
摘要: 在 thinkphp/library/think/db/Query.php 下添加一个方法 //关闭数据库 public function close() { $this->connection->close(); } 在需要的关闭的地方引入Db调用 use think\Db; Db::close( 阅读全文
posted @ 2021-01-06 11:02 孙皓月 阅读(784) 评论(1) 推荐(0)