From 266e93f527a19f226fabe2bf916a634078530b4e Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 28 Jun 2024 10:20:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(IndexController):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BA=86Push=E6=9C=8D=E5=8A=A1API=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/IndexController.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index 060283c38..986de0b54 100644 --- a/app/api/controller/IndexController.php +++ b/app/api/controller/IndexController.php @@ -28,7 +28,7 @@ use Webman\RedisQueue\Redis; class IndexController extends BaseApiController { - public $notNeedLogin = ['index', 'app_update', 'express_list', 'province', 'city', 'area', 'street', 'village', 'brigade', 'config']; + public $notNeedLogin = ['index', 'app_update', 'express_list', 'province', 'city', 'area', 'street', 'village', 'brigade', 'config','push']; public function index() { @@ -176,4 +176,13 @@ return json($a); ]; return $this->success('ok', $list); } + + 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]); + } }