摘要: 1、下载OSS文件放在网站根目录下(OSS文件下载地址:https://gitee.com/jth1234/oss_files.git) 2、在入口文件中加载OSS 3、config文件配置oss信息(ossKeyId、ossKeySecret、endpoint以上信息开通阿里云oss服务后可获得; 阅读全文
posted @ 2020-05-02 14:48 糖糖Y 阅读(1483) 评论(0) 推荐(0) 编辑
摘要: 1、将PHPExcel类库文件夹放入extend目录下 2、导出功能实现 1 public function download(){ 2 if(request()->isPost()){ 3 $val = input('dval',''); 4 if(!empty($val)){ 5 $where[ 阅读全文
posted @ 2020-05-02 13:42 糖糖Y 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 1、PHP方法 1 public function do_qrcode(){ 2 Vendor('Qrcode.phpqrcode'); 3 Vendor('Qrcode.Compress'); 4 $object = new \QRcode(); 5 $recommend = $user['inv 阅读全文
posted @ 2020-05-02 13:28 糖糖Y 阅读(980) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 //1.连接数据库 3 // mysqli_connect('主机名','用户名','密码'); 4 $link = @mysqli_connect('localhost','username','password'); 5 6 //2.判断错误 7 //mysqli_conne 阅读全文
posted @ 2020-05-02 13:08 糖糖Y 阅读(1561) 评论(0) 推荐(0) 编辑
摘要: 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 5 <title>Demo</title> 6 <script src="http:// 阅读全文
posted @ 2020-05-02 12:57 糖糖Y 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-02 12:45 糖糖Y 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1、首先将api_sdk文件放入vendor文件夹下 2、在config文件中作相应的配置 3、封装发送短信的方法 4、调用发送短信方法 阅读全文
posted @ 2020-05-02 12:32 糖糖Y 阅读(475) 评论(0) 推荐(0) 编辑