会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
php毛宏历的博客
博客园
首页
新随笔
联系
管理
订阅
1
2
3
4
5
下一页
2023年12月13日
二维数组页码分页
摘要: $param = $this->request->param(); $data = [ ['id' => 1, 'name' => '11'], ['id' => 2, 'name' => '22'], ['id' => 3, 'name' => '33'], ['id' => 1, 'name'
阅读全文
posted @ 2023-12-13 10:46 php毛宏历的博客
阅读(19)
评论(0)
推荐(0)
2023年9月12日
excel导入
摘要: $fileName = "1.xls"; $import_array = array(); //获取文件读取操作 $objReader = \PHPExcel_IOFactory::load($fileName); //对象 $sheets = $objReader->getAllSheets();
阅读全文
posted @ 2023-09-12 15:58 php毛宏历的博客
阅读(15)
评论(0)
推荐(0)
2021年6月29日
多图片上传
摘要: public function Goods_Upload(Request $request){ $save_path = 'uploads/' . date("Ymd"); if (!file_exists($save_path)) { mkdir($save_path, 0777, true);
阅读全文
posted @ 2021-06-29 14:23 php毛宏历的博客
阅读(39)
评论(0)
推荐(0)
2021年6月18日
一键发布vue与后台
摘要: 先修改bat文件 xcopy .\dist ..\tmk\public\ /s /e /y 1 : yarn 2:yarn build 3 git pull && yarn build && cp
阅读全文
posted @ 2021-06-18 14:21 php毛宏历的博客
阅读(76)
评论(0)
推荐(0)
2020年12月14日
根据经纬度获取地理位置
摘要: public function car_source_location($lng,$lat,$log){ $sql = "select a.*, ROUND(6378.138*2*ASIN(SQRT( POW(SIN(({$lat}*PI()/180-lat*PI()/180)/2),2) +COS
阅读全文
posted @ 2020-12-14 16:38 php毛宏历的博客
阅读(715)
评论(0)
推荐(0)
2020年12月8日
退款
摘要: public function tipsRefund() { $model = D('Common/Order'); $order_sn = $model->makeOrderSn(); $transaction_id=I("transaction_id",0); $money=I("money",
阅读全文
posted @ 2020-12-08 10:29 php毛宏历的博客
阅读(206)
评论(0)
推荐(0)
2020年10月26日
识别身份证
摘要: /** * 根据身份证照片获取信息 */public function idpositiveGetInfo(){ $url = input('url')?:exit('00'); $openid = input('openid')?:exit('00'); $host = "https://1234
阅读全文
posted @ 2020-10-26 17:34 php毛宏历的博客
阅读(284)
评论(0)
推荐(0)
2020年10月21日
生成二维码
摘要: <?php/** * @Author 焦 * @DateTime 2020-08-19 */namespace Home\Controller;use Think\Controller;class QrcodeController extends Controller { //生成二维码 publi
阅读全文
posted @ 2020-10-21 16:42 php毛宏历的博客
阅读(143)
评论(0)
推荐(0)
2020年10月19日
敏感词过滤
摘要: $sens=M("sensitive")->select(); foreach ($sens as $k=>$v){ $sensi[]=$v['sensitive']; } $list=$sensi; $string=$title; $count = 0; //违规词的个数 $sensitiveWo
阅读全文
posted @ 2020-10-19 18:28 php毛宏历的博客
阅读(107)
评论(0)
推荐(0)
2020年9月16日
小程序授权
摘要: public function getopenid() { $APPID = 'wx1a8b582067ebb8a5';//自己配置 $AppSecret = '08fb395003441b482583b218d306280b';//自己配置 $file =file_get_contents("ph
阅读全文
posted @ 2020-09-16 18:56 php毛宏历的博客
阅读(251)
评论(0)
推荐(0)
1
2
3
4
5
下一页
公告