feat(IndexController): 添加订单逻辑和支付通知逻辑
This commit is contained in:
parent
05deb9bbaa
commit
f216d693ee
@ -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]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user