摘要: declare(strict_types=1); //引入 use Swoole\Coroutine; use Swoole\Database\PDOConfig; use Swoole\Database\PDOPool; use Swoole\Runtime; protected $pool = 阅读全文
posted @ 2024-08-21 14:17 祈愿仙帝 阅读(1) 评论(0) 推荐(0) 编辑
摘要: http://api.kittyhawks.cn/docs.php?service=App.Finance.GetExchangeRates&detail=1&type=fold 阅读全文
posted @ 2024-07-31 13:26 祈愿仙帝 阅读(3) 评论(0) 推荐(0) 编辑
摘要: <?php declare(strict_types=1); namespace app\api\controller\yy; use app\common\controller\Api; use Swoole\Coroutine; use Swoole\Database\PDOConfig; us 阅读全文
posted @ 2024-07-19 20:08 祈愿仙帝 阅读(2) 评论(0) 推荐(0) 编辑
摘要: php 生成订单号 生成订单号可以使用以下几种实现方法: 使用当前时间戳:可以使用PHP函数time()获取当前的时间戳,然后将其转换为字符串作为订单号。例如: $order_number = (string)time(); 使用UUID:UUID(通用唯一识别码)是一种生成全局唯一标识符的算法,可 阅读全文
posted @ 2024-07-18 18:58 祈愿仙帝 阅读(3) 评论(0) 推荐(0) 编辑
摘要: $data = Request::instance()->getContent(); $data = json_decode($data,true); 阅读全文
posted @ 2024-07-12 15:30 祈愿仙帝 阅读(5) 评论(0) 推荐(0) 编辑
摘要: php 版本7.3以上php 扩展:intl(通用扩展 · 提供国际化支持)//获取当前用户的ip protected function getUserRealIP() { $headers = array( 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HT 阅读全文
posted @ 2024-07-10 16:04 祈愿仙帝 阅读(3) 评论(0) 推荐(0) 编辑
摘要: function getUserRealIP() { $headers = array( 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED 阅读全文
posted @ 2024-07-10 15:17 祈愿仙帝 阅读(1) 评论(0) 推荐(0) 编辑
摘要: //计算两地之间的距离$origin = 开始距离,$destination=结束距离 function calculateDistance($origin = '', $destination = '') { if($origin == '' || $destination == ''){ ret 阅读全文
posted @ 2024-07-09 20:26 祈愿仙帝 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error 阅读全文
posted @ 2024-07-05 23:19 祈愿仙帝 阅读(14) 评论(0) 推荐(0) 编辑
摘要: //执行支付 public function wechat($code,$title,$amount,$order) { //$code = '';前端传过来 $openid = '';//用户的openid $type = 'wechat';//支付方式 $method = 'miniapp';/ 阅读全文
posted @ 2024-07-05 18:06 祈愿仙帝 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 原链接: https://www.cpolar.com/blog/%E3%80%90-iis-building-a-website-%E3%80%91-using-a-local-computer-as-a-server-to-build-a-web-site-and-connect-it-to-t 阅读全文
posted @ 2024-07-01 23:11 祈愿仙帝 阅读(4) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/vanjnbolg/p/18062990相关资料:https://blog.csdn.net/weixin_46505978/article/details/132401372 开启22端口 # 使用 iptables sudo iptables -A 阅读全文
posted @ 2024-06-30 20:09 祈愿仙帝 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 原地址:https://www.sysgeek.cn/openssh-windows/ 阅读全文
posted @ 2024-06-30 15:28 祈愿仙帝 阅读(3) 评论(0) 推荐(0) 编辑
摘要: mac安装brew install supervisor 原文:https://blog.csdn.net/pierre_/article/details/127578224 php安装 pip install supervisor 阅读全文
posted @ 2024-06-27 09:20 祈愿仙帝 阅读(1) 评论(0) 推荐(0) 编辑
摘要: json_decode(html_entity_decode($images)) 阅读全文
posted @ 2024-06-25 18:30 祈愿仙帝 阅读(1) 评论(0) 推荐(0) 编辑
摘要: //小程序一键登录 public function wechat() { $code = $this->request->post('code'); //前端获取传过来的code if (!$code){ return $this->err('缺少参数'); } //获取秘钥key if ($res 阅读全文
posted @ 2024-06-25 10:57 祈愿仙帝 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 文档:https://www.kancloud.cn/gzhxkjgs/fastadmin/ 接口请求API(api文件下的方法):api/文件名.控制器名/方法名 支付 https://pay.yansongda.cn/docs/v2/installation.htmlEasyPay: https 阅读全文
posted @ 2024-06-24 09:40 祈愿仙帝 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 文档:https://uniapp.dcloud.net.cn/api/location/open-location.html 阅读全文
posted @ 2024-06-21 13:40 祈愿仙帝 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 在CRMEB中,如果你想要使用jQuery来获取编辑器(例如富文本编辑器,如UEditor或KindEditor)的内容; // 假设你的UEditor编辑器的id是'editor' var content = UE.getEditor('editor').getContent(); // 假设你的 阅读全文
posted @ 2024-06-14 09:48 祈愿仙帝 阅读(2) 评论(0) 推荐(0) 编辑
摘要: /** * 文件上传 * * @ApiMethod (POST) * @param string $image 上传的文件(单文件/多文件) * @param string $upload_dir 文件夹名称(默认名:image) */ function FilesAll($image, $uplo 阅读全文
posted @ 2024-06-04 15:21 祈愿仙帝 阅读(3) 评论(0) 推荐(0) 编辑
摘要: sql-mode= 改成即可: sql-mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION 阅读全文
posted @ 2024-08-01 15:37 祈愿仙帝 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 微信H5登陆 https://www.cnblogs.com/jackzhuo/p/14451521.html 其他相关资料:https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/papay/chapter2_6.shtml 阅读全文
posted @ 2024-07-11 13:28 祈愿仙帝 阅读(4) 评论(0) 推荐(0) 编辑