notify($channel, $type, $action); } /** * 去支付 * @return Response */ public function pay() { $data = $this->request->params([ ['type', ''], ['trade_type', ''],//业务类型 ['trade_id', ''],//业务id ['quit_url', ''], ['buyer_id', ''], ['return_url', ''], ['voucher', ''] ]); return success('SUCCESS',(new PayService())->pay($data['type'], $data['trade_type'], $data['trade_id'], $data['return_url'], $data['quit_url'], $data['buyer_id'], $data['voucher'])); } public function info($trade_type, $trade_id) { return success((new PayService())->getInfoByTrade($trade_type, $trade_id)); } /** * 获取可用的支付方法 * @param $trade_type * @return Response * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException */ public function getPayType($trade_type){ return success((new PayService())->getPayTypeByTrade($trade_type)); } }