上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
摘要: 需求:显示用户订单,且每一条订单显示相应的商品,且分页 环境:数据库目前订单表只有一个,订单的商品列表储存在这条订单中booklist字段中,以逗号隔开商品ID,字符串的形式保存 后台代码 $where = ['money_type'=>0]; $list = Db::table('xxxdingd 阅读全文
posted @ 2020-03-18 15:09 super久违 阅读(529) 评论(0) 推荐(0) 编辑
摘要: tp5 + layui https://www.cnblogs.com/feixiablog/p/8946650.html 阅读全文
posted @ 2020-03-17 15:58 super久违 阅读(367) 评论(0) 推荐(0) 编辑
摘要: windows环境下,百度官网,下载exe 安装目录选择本地环境php.exe 然后一直下一步就好了 最后安装成功,打开cmd,输入composer出现欢迎界面。 首先切换国内镜像,这样下载扩展包的时候速度会快 然后打开https://packagist.org/ 上面那个网址可以理解为手机的应用商 阅读全文
posted @ 2020-03-17 11:24 super久违 阅读(148) 评论(0) 推荐(0) 编辑
摘要: {volist name="goodman" id="vo" length='12' } <li> <a href="/book/{$vo.id}"> <img src="__STATIC__/upload/{$vo.upload_img}" alt=""> <p class="">{$vo.boo 阅读全文
posted @ 2020-03-17 11:16 super久违 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 自定义还需在提炼一下 // 格式化关键字 protected function formatting_keyword($txt) { $txt = trim($txt); $arr = [',',',','、',';',':','|',';']; //这里放要过滤的 foreach ($arr as 阅读全文
posted @ 2020-03-16 15:39 super久违 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 突然有了一个显示倒计时的需求,本来想着小问题,找段js插进去就好了。 <span id="span_dt_dt"></span> <script> function show_time(){ window.setTimeout("show_time()", 1000); BirthDay=new D 阅读全文
posted @ 2020-03-13 15:58 super久违 阅读(2002) 评论(0) 推荐(0) 编辑
摘要: 应用场景:给前台cookie加密 使用环境:tp5 使用方法 以下代码在extend\Lib\Haxi.php <?php namespace lib; use think\Controller; class Haxi extends Controller{ //加密函数(参数:数组,返回值:字符串 阅读全文
posted @ 2020-03-12 19:22 super久违 阅读(1442) 评论(1) 推荐(0) 编辑
摘要: tip谈不上倒是老是忽略这个东西,去操作的数据究竟是一个数组还是一个数据 阅读全文
posted @ 2020-03-12 17:40 super久违 阅读(133) 评论(0) 推荐(0) 编辑
摘要: $time = date("Y-m-d H:i:s");$res['time'] = ceil((strtotime($time)-strtotime($res['time']))/86400); 阅读全文
posted @ 2020-03-12 15:04 super久违 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 最近写了一个推送接口的工作需求,来记录一下 需要传输自定义header头,输出格式和秘钥 $header= array('Content-Type:application/json','Access-Id:'.$this->ak,'Authorization:'.$sign);//准备自定义head 阅读全文
posted @ 2020-03-12 11:25 super久违 阅读(592) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页