摘要: //产品多图排序 public function to_forward_product_img(Request $request) { $id = $request->param('id'); $ph_upload_img_arr = $request->param('ph_upload_img_a 阅读全文
posted @ 2022-07-25 14:31 用代码砌墙的小白 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 1:先创建服务端文件MySql.php再创建数据库以及简单的数据表 <?php use Swoole\Runtime; use Swoole\Coroutine; use function Swoole\Coroutine\run; class MySql { public function go( 阅读全文
posted @ 2021-12-02 11:01 用代码砌墙的小白 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1:先创建服务端文件WebSocket.php <?php class WebSocket { private $ws = null; public function __construct(){ //创建WebSocket Server对象,监听0.0.0.0:9502端口 $this -> ws 阅读全文
posted @ 2021-12-02 10:53 用代码砌墙的小白 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1:因为是HTTP协议 开启服务后请求客户端HTML文件,直接浏览器URL,先创服务端文件HTTP.php <?php class HTTP { private $server = null; public function __construct(){ $this -> server = new 阅读全文
posted @ 2021-12-02 10:40 用代码砌墙的小白 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1:创建服务端文件UDP.php <?php class UDP { private $server = null; public function __construct(){ $this -> server = new Swoole\Server('127.0.0.1', 9502, SWOOL 阅读全文
posted @ 2021-12-02 10:26 用代码砌墙的小白 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1:先创建服务端文件 TCP.php <?php class TCP { private $server = null; public function __construct(){ $this -> server = new Swoole\Server('127.0.0.1', 9501); $t 阅读全文
posted @ 2021-12-02 10:21 用代码砌墙的小白 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 实现前布置 1:下载官方微信支付SDK(‘https://pay.weixin.qq.com/wiki/doc/api/index.html’) 2:引入开发框架(我写的是微信小程序支付) 话不多说直接上代码 3:控制器方法 public function getPayOrder(){ try{ $ 阅读全文
posted @ 2021-11-10 11:02 用代码砌墙的小白 阅读(346) 评论(0) 推荐(0) 编辑
摘要: select c.creat_time,c.order_number,b.product_number,b.product_money,a.user_id from options_product_bind a join options_platform_order_product b on a.i 阅读全文
posted @ 2021-06-09 14:22 用代码砌墙的小白 阅读(140) 评论(0) 推荐(0) 编辑
摘要: public function excel(){ /*检测用户是否登陆*/ $user_id=Finance::islogin(); if($user_id==0){ $this->redirect('/index.php/index/User/login'); } Loader::import(' 阅读全文
posted @ 2021-05-21 15:43 用代码砌墙的小白 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 这是官方的SDK 因为我怕乱码的问题 我都遍历成了UTF-8。 我配置好SDK的参数后,发现啥都没出来,于是我打印了$response发现啥也没有 然后在$response上面打印$service跟$request都有东西,于是我就想到可能有两处有问题, 问题一:是我ASIN传过去的格式不对 问题二 阅读全文
posted @ 2021-01-05 16:33 用代码砌墙的小白 阅读(93) 评论(0) 推荐(0) 编辑