feat(IndexController): 添加了Push服务API功能
This commit is contained in:
parent
65764cc874
commit
266e93f527
@ -28,7 +28,7 @@ use Webman\RedisQueue\Redis;
|
|||||||
|
|
||||||
class IndexController extends BaseApiController
|
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()
|
public function index()
|
||||||
{
|
{
|
||||||
@ -176,4 +176,13 @@ return json($a);
|
|||||||
];
|
];
|
||||||
return $this->success('ok', $list);
|
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]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user