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]); } }