摘要: Your local changes to the following files would be overwritten by mergeerror: Your local changes to the following files would be overwritten by merge: 阅读全文
posted @ 2022-05-16 08:44 zlf2000 阅读(354) 评论(0) 推荐(0) 编辑
摘要: // 1 $c = call_user_func('array_merge', $reds);// 2 $c = array_merge(...$reds);// 3 array_map(function ($v) use (&$c) { $c[array_keys($v)[0]] = array_ 阅读全文
posted @ 2022-02-22 18:43 zlf2000 阅读(116) 评论(0) 推荐(0) 编辑
摘要: function code 微信 iv 偶现 encryptedData 41003 encodeURIComponent 关于小程序微信授权登录提示41003 文章简介 原因一(iv和encryptedData转码问题) 原因二(wx.login()获取code顺序问题) 结尾 文章简介 之前做项 阅读全文
posted @ 2021-05-12 09:06 zlf2000 阅读(82) 评论(0) 推荐(0) 编辑
摘要: public function getList($data,$user) { $list = \app\common\model\ChinaArea::getCityList(); $province = \app\common\model\ChinaArea::where("level",1)-> 阅读全文
posted @ 2021-03-09 10:13 zlf2000 阅读(162) 评论(0) 推荐(0) 编辑
摘要: <?php/** * 精确加法 * @param [type] $a [description] * @param [type] $b [description] */function math_add($a,$b,$scale = '2') { return bcadd($a,$b,$scale) 阅读全文
posted @ 2021-03-05 14:44 zlf2000 阅读(266) 评论(0) 推荐(0) 编辑
摘要: public static function formatTime($time){ if (is_int($time)) { $time = intval($time); } elseif ($time instanceof Carbon) { $time = intval(strtotime($t 阅读全文
posted @ 2021-01-30 19:41 zlf2000 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 接到一个项目项目案例相册是这种结构 大佬建议 sql 查询 groip 进行时间统计今天 field根据mysql 时间查询进行统计 今天多少条 新增多少条相册 计算天数 $lists = Album::group("from_unixtime(create_time, '%Y-%m-%d')") 阅读全文
posted @ 2020-11-27 13:58 zlf2000 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 配置 小程序的时候配置请求的是 https://xxx 不是http://xxx 前端请求的链接都是https 阅读全文
posted @ 2020-06-13 08:49 zlf2000 阅读(122) 评论(0) 推荐(0) 编辑
摘要: https://packagist.org/packages/phpoffice/phpexcel 使用: composer require phpoffice/phpexcel 控制器引入 //引入phpoffice use PHPExcel; use PHPExcel_IOFactory; 导出 阅读全文
posted @ 2020-05-25 17:18 zlf2000 阅读(698) 评论(0) 推荐(0) 编辑
摘要: /** * 递归加引用实现无限极分类 * @param $items * @return array */ public function getTree2($items) { $array = []; foreach ($items as $item) { if(isset($items[$ite 阅读全文
posted @ 2020-04-21 19:46 zlf2000 阅读(164) 评论(0) 推荐(0) 编辑