- 博客(5)
- 收藏
- 关注
原创 laradock + xdebug + phpstorm + web调试关键点
2. phpstorm的DBGp代理,主机记得写成xdebug.ini中默认的host,我的默认是 host.docker.internal,如果写成别的域名可能不会成功debug断点,端口也需要跟xdebug.ini中的商品保持一致。1. laradock目录下php-fpm/xdebug.ini的remote_port记得改一下,默认9000也许会跟php-fpm的端口冲突而导致断点执行失败。先点电话图标开启监听,再点龟形图标开启调试。3.phpstorm开启php监听及调试。
2024-01-15 23:06:29 359 1
原创 thinkphp5 多库操作
跨库查询加上数据库名称,例如:select tb.* from db.table as tb JOIN db2.table。/application/extra/chat.php (配置文件)
2022-08-10 18:28:49 813 1
原创 mysql常用语句
#insert into .. selectinsert into testTable(n,n1) select 1,2 where not exist (select id from testTable where n = 1 limit 1)#LEFT OUTER JOIN 即使有where条件,也全部显示左表的数据
2022-07-07 17:50:00 71
原创 php微信退款流程总结
1.发起退款,使用easywechat包,退款时必须有证书,key文件,微信支付平台会在生成API证书时把文件下载到本地,平台没有保存证书及key$config = [ 'app_id' => 'XXXX', 'mch_id' => '商户号', 'key' => 'XXXXXXX', 'cert_path' => '/mnt/xxx/xxx/cert.pem',//从商家往客户转账
2022-03-12 10:47:35 1295
原创 解决php库存超卖问题
//下单public function set_order() { $stock = new \app\index\model\Test; $order = new \app\index\model\Order; $info = $stock->where(['id' => 1])->find(); if($info->num >= 1) { //判断库存 $res = $sto.
2022-02-15 12:39:50 312
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人