微信支付类 class WeiXinPay {     //----- [基本信息设置]  -----     //微信公众号身份的唯一标识     protected $APPID = 'wx056xxxxxxxxa02';//填写您的appid。微信公众平台里的    &...
日期:2022-09-25 浏览:869次 评论: 0 阅读全文
class XcxWeChat {     //微信公众号身份的唯一标识     //微信公众平台里的APPID     protected $appId = 'wx056xxxx1479a02';     //微信公众号里面的SECRET     protected&...
日期:2022-09-25 浏览:907次 评论: 0 阅读全文
php spreadsheet安装: composer require phpoffice/phpspreadsheet use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; //可以生成多种格式类 use PhpOffice\PhpSpreadsheet\IOFactory; public function uploadExcel() {    &...
日期:2022-09-25 浏览:1002次 评论: 0 阅读全文
//图片上传 function uploadImage($dirName) {     $file_temp = $_FILES['file']['tmp_name'];     $file_name = mt_rand();     $file_dir = $dirName;     $file_ty...
日期:2022-09-25 浏览:737次 评论: 0 阅读全文
/*1.Connection*/ $redis = new Redis();   $redis->connect('127.0.0.1',6379,1);//短链接,本地host,端口为6379,超过1秒放弃链接   $redis->open('127.0.0.1',6379,1);//短链接(同上)   $redis->pconnect('127.0.0.1',6379,1);//长链接,本地...
日期:2022-09-25 浏览:855次 评论: 0 阅读全文
$_SERVER详解$_SERVER[‘HTTP_ACCEPT_LANGUAGE’]//浏览器语言$_SERVER[‘REMOTE_ADDR’] //当前用户 IP 。$_SERVER[‘REMOTE_HOST’] //当前用户主机名$_SERVER[‘REQUEST_URI’] //URL$_SERVER[‘REMOTE_PORT’] //端口。$_SERVER[‘SERVER_NAME’] //服务器主机的名称。$_SERVER[‘PHP_SELF’]//正在执行脚本的文件名$_SERVER[‘argv...
日期:2022-09-25 浏览:707次 评论: 0 阅读全文
github上的版本和本地版本冲突的解决方法 情景: 在github上创建项目,然后本地git init 然后没有git pull -f --all 然后git add .  | git commit -am "init" 导致github上的版本里有readme文件和本地版本冲突,下面给出冲突原因:  提交到远程一般 git remote add origin ...
日期:2022-07-29 浏览:1015次 评论: 0 阅读全文
1.删除远程库文件,但本地保留该文件 git rm --cached xxx git commit -m "remove file from remote" git push -u origin master 2.删除远程库文件夹,但本地保留该文件夹 git rm --cached -r xxx git commit&nb...
日期:2022-07-21 浏览:864次 评论: 0 阅读全文
fatal: could not read Username for 'http:// 解决方案 在部署drone(CICD软件)后,触发提交时,drone-runner执行拉取仓库代码(在自己部署的gogs上)时出现该问题 Initialized empty Git repository in /drone/src/.git/ + git fetch origin +refs/heads/master: ...
日期:2022-07-21 浏览:3871次 评论: 0 阅读全文
宝塔环境安装使用hyperf框架时使用第三方SDK会提示:cURL error 1014: SSL verify failed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) 解决方法就是重新编译swoole,不要用宝塔自带的扩展,截止目前宝塔版本7.8.0依旧需要自己手动重新编 解决方法就是重新编译swoole,不要用宝塔自带的扩展,截止目...
日期:2022-07-21 浏览:1735次 评论: 0 阅读全文