摘要: $subQuery = M("zstar_apply_goods") ->join("LEFT JOIN shop_products ON zstar_apply_goods.ShopToken = shop_products.ShopToken") ->where($where) ->field("zstar_apply_goods.ShopToken") ->... 阅读全文
posted @ 2018-03-03 16:26 王静文 阅读(130) 评论(0) 推荐(0)
摘要: try{ if($result==false){ throw new \Exception("错误提示信息"); } $data['status'] = "200"; $data['message'] = "SUCCESS"; } catch(\Exception $e){ $data['status'] = "201"; $data['message'] = $e->getMessage();... 阅读全文
posted @ 2018-03-03 16:25 王静文 阅读(181) 评论(0) 推荐(0)
摘要: $ere['lng'] = array('between',array($lng-1,$lng+1)); $ere['lat'] = array('between',array($lat-1,$lat+1)); $str = "ROUND(6378.138 * 2 * ASIN(SQRT(POW(SIN(($lat* PI() / 180 - lat * PI() / 180) / 2), 2)... 阅读全文
posted @ 2018-03-03 15:43 王静文 阅读(1043) 评论(0) 推荐(0)
摘要: php方法 PHP使用方法 阅读全文
posted @ 2018-03-03 15:40 王静文 阅读(172) 评论(0) 推荐(0)
摘要: $getDatas = $_POST; if(empty($getDatas)) $getDatas = file_get_contents("php://input"); $getDatas = json_decode($getDatas,true); 阅读全文
posted @ 2018-03-03 15:40 王静文 阅读(177) 评论(0) 推荐(0)
摘要: join(" ",str_split(“125689564896665”,4)) 阅读全文
posted @ 2018-03-03 15:38 王静文 阅读(421) 评论(0) 推荐(0)
摘要: 1.在代码没有错的情况下,检查是否为香港服务器,如果是香港服务器原因如下 阅读全文
posted @ 2017-10-30 11:51 王静文 阅读(670) 评论(0) 推荐(0)
摘要: //在视图中引入方法 $pages, 'nextPageLabel' => '下一页', 'prevPageLabel' => '上一页', 'firstPageLabel' => false, 'lastPageLabel' => false, ]); ?> //方法中的写法 $order = AdminShopOrders::find(); $pagina... 阅读全文
posted @ 2017-10-30 11:35 王静文 阅读(128) 评论(0) 推荐(0)
摘要: function Getzimu($str) { $str= iconv("UTF-8","gb2312", $str);//如果程序是gbk的,此行就要注释掉 if (preg_match("/^[\x7f-\xff]/", $str)) { $fchar=ord($str{0}); if($fchar>=ord("A") and $fc... 阅读全文
posted @ 2017-10-30 11:32 王静文 阅读(1101) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-10-30 11:25 王静文 阅读(2747) 评论(0) 推荐(0)