From f216d693eefe40b1bb61eb3ea542af77be6901d1 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 20 Jul 2024 15:17:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(IndexController):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E9=80=BB=E8=BE=91=E5=92=8C=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/IndexController.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index 986de0b54..b3c777f01 100644 --- a/app/api/controller/IndexController.php +++ b/app/api/controller/IndexController.php @@ -5,10 +5,14 @@ namespace app\api\controller; use app\admin\logic\store_product\StoreProductLogic; use app\admin\validate\tools\GenerateTableValidate; use app\admin\logic\tools\GeneratorLogic; +use app\api\logic\order\OrderLogic as OrderOrderLogic; +use app\common\logic\PayNotifyLogic; use app\common\logic\store_order\StoreOrderLogic; use app\common\model\Config as ModelConfig; use app\common\model\store_branch_product\StoreBranchProduct; +use app\common\model\store_order\StoreOrder; use app\common\model\system_store\SystemStore; +use app\common\model\user\User; use app\common\service\pay\PayService; use app\common\service\PushService; use app\common\service\wechat\WechatTemplate; @@ -179,10 +183,10 @@ return json($a); public function push() { - $name=$this->request->get('name');//用户名 - $uid=$this->request->get('uid');//用户id - $type=$this->request->get('type','INDUSTRYMEMBERS');//类型 - $a= PushService::push($name, $uid, ['type'=>$type,'msg'=>'支付超时,订单已被取消,请重新提交订单','data'=>['id'=>5]]); - return $this->success('ok',['data'=> $a]); + $name = $this->request->get('name'); //用户名 + $uid = $this->request->get('uid'); //用户id + $type = $this->request->get('type', 'INDUSTRYMEMBERS'); //类型 + $a = PushService::push($name, $uid, ['type' => $type, 'msg' => '支付超时,订单已被取消,请重新提交订单', 'data' => ['id' => 5]]); + return $this->success('ok', ['data' => $a]); } }