payment = $payment; } public function companyBank(){ } public function wechat(){ $payed=Service::checkNotify('wechat'); return [ $payed!==false, 'success' ]; } public function returnUrl(){ return request()->root(true); } public function alipay(){ $payed=Service::checkNotify('alipay'); return [ $payed!==false, 'success' ]; } public function bankUnion(){ require __DIR__.'/../library/upacp_demo_b2c/sdk/acp_service.php'; $postData=input(); $isPay=AcpService::validate($_POST); $queryPay=UnionQuery::query($postData['orderId'],$this->payment->create_time); user_log('PayReturnService.bankUnion',compact('isPay','queryPay')); return [ $isPay && $queryPay, 'success' ]; } public function otherUser(){} public function offline(){} public function process(){ $method=Arr::get(OrderPayService::$methods,$this->payment->pay_type); return App::invokeMethod([$this,$method]); } }