platform = Config::get('platform.default_pay_gateway'); } //$money金额小数 public function createOrder($money) { //富友平台 if($this->platform == 'fuyou') { //富友平台 vendor('fuyou.Pay'); $pay = new \Pay(); return $pay->createOrder($money * 100); } //支付宝平台 else if($this->platform == 'alipay'){ } return false; } public function notify() { //富友平台 if($this->platform == 'fuyou') { //富友平台 vendor('fuyou.PayNotify'); $payNotify = new \PayNotify(); return $payNotify->mobile(); } //支付宝平台 else if($this->platform == 'alipay'){ } } }