private function payType1($order) { $inc_file = ROOT . '/api/payment/alipay/alipay.php'; if (!file_exists($inc_file)) { $this->myError('error_common_param_error'); } require_once $inc_file; $payment_api = new alipay($this->getPaymentInfo(1), $order); @header("Location:" . $payment_api->get_payurl()); exit; }