摘要: $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毛宏历的博客 阅读(8) 评论(0) 推荐(0) 编辑
摘要: $fileName = "1.xls"; $import_array = array(); //获取文件读取操作 $objReader = \PHPExcel_IOFactory::load($fileName); //对象 $sheets = $objReader->getAllSheets(); 阅读全文
posted @ 2023-09-12 15:58 php毛宏历的博客 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 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毛宏历的博客 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 先修改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毛宏历的博客 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 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毛宏历的博客 阅读(676) 评论(0) 推荐(0) 编辑
摘要: 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毛宏历的博客 阅读(178) 评论(0) 推荐(0) 编辑
摘要: /** * 根据身份证照片获取信息 */public function idpositiveGetInfo(){ $url = input('url')?:exit('00'); $openid = input('openid')?:exit('00'); $host = "https://1234 阅读全文
posted @ 2020-10-26 17:34 php毛宏历的博客 阅读(264) 评论(0) 推荐(0) 编辑
摘要: <?php/** * @Author 焦 * @DateTime 2020-08-19 */namespace Home\Controller;use Think\Controller;class QrcodeController extends Controller { //生成二维码 publi 阅读全文
posted @ 2020-10-21 16:42 php毛宏历的博客 阅读(134) 评论(0) 推荐(0) 编辑
摘要: $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毛宏历的博客 阅读(99) 评论(0) 推荐(0) 编辑
摘要: public function getopenid() { $APPID = 'wx1a8b582067ebb8a5';//自己配置 $AppSecret = '08fb395003441b482583b218d306280b';//自己配置 $file =file_get_contents("ph 阅读全文
posted @ 2020-09-16 18:56 php毛宏历的博客 阅读(241) 评论(0) 推荐(0) 编辑