上一页 1 ··· 108 109 110 111 112 113 114 115 116 ··· 133 下一页
摘要: https://www.daixiaorui.com/ 阅读全文
posted @ 2018-09-17 09:47 盘思动 阅读(137) 评论(0) 推荐(0)
摘要: $insertId = Db::name('user_address')->insertGetId($data);会插入数据,返回插入的 id //$flag = Db::name('user_address')->insert($data);插入数据,如果成功返回1; 阅读全文
posted @ 2018-09-13 10:29 盘思动 阅读(697) 评论(0) 推荐(0)
摘要: $insertId = Db::name('user_address')->insertGetId($data); //add=>insert, insert 返回值不再是插入的id;if ($_REQUEST['is_default'] == '1'){ Db::name('user_addres 阅读全文
posted @ 2018-09-12 17:43 盘思动 阅读(7299) 评论(0) 推荐(0)
摘要: 「花与剑: https://blog.csdn.net/wbbott/article/details/53107009」————————— 阅读全文
posted @ 2018-09-12 15:29 盘思动 阅读(222) 评论(0) 推荐(0)
摘要: $(".good_info").on('click',function () { var id = $(this).data('id'); var string='http://qr.liantu.com/api.php?text=https://5hao.sheep.squmo.com/wx.ph 阅读全文
posted @ 2018-09-11 18:02 盘思动 阅读(506) 评论(0) 推荐(0)
摘要: $map = [ 'status' => 1, 'is_show' => 1,];$result = Db::name('coupon') ->where($map) ->where('total_number','exp',Db::raw('>`send_number`')) ->whereTim 阅读全文
posted @ 2018-09-11 11:57 盘思动 阅读(2241) 评论(0) 推荐(0)
摘要: 第一步:在框架根目录config里面新建redis.php文件配置ip及端口:如下: 第二步:在根目录extend里新建module目录,并在其里面建Redis.php文件,文件内容如下: 第三步:在项目根目录thinkphp目录里helper.php里设置redis助手函数,加入如下内容: 第四步 阅读全文
posted @ 2018-09-09 18:15 盘思动 阅读(8053) 评论(1) 推荐(0)
摘要: $('#mkcode').on('click',function(){ $.ajax({ type : 'POST', url : '__URL__/mkcode', data : {}, dataType: 'json', //~~这里是dataTye 写成datatye 或没写json会接受不到 阅读全文
posted @ 2018-09-08 15:29 盘思动 阅读(284) 评论(0) 推荐(0)
摘要: $baseGoodIds_arr = [1,2,3,4,5,6,7,8,9];$relate_gimgs = D('GoodsImages')->where(['good_id' => ['in',$baseGoodIds_arr]])->limit($gimgs_limit)->group('we 阅读全文
posted @ 2018-09-07 17:48 盘思动 阅读(1800) 评论(2) 推荐(0)
摘要: //获取图片大小 public function getimgweight(){ $url = 'http://cdn.caomall.net/1536240025614144138.jpeg'; $len = $this->getUriLen($url); echo $len;exit; } fu 阅读全文
posted @ 2018-09-07 11:24 盘思动 阅读(813) 评论(0) 推荐(0)
上一页 1 ··· 108 109 110 111 112 113 114 115 116 ··· 133 下一页