trim($alipay_config['partner']), "type" => $type, "notify_url" => $notify_url, "return_url" => $return_url, "out_trade_no" => $out_trade_no, "name" => $name, "money" => $money, "sitename" => $sitename ); //建立请求 $alipaySubmit = new AlipaySubmit($alipay_config); $html_text = $alipaySubmit->buildRequestForm($parameter); echo $html_text; preg_match('@^(?:https://)?([^/]+)@i', $alipay_config['apiurl'], $matches); $host = $matches[1]; preg_match('/[^.]+\.[^.]+$/', $host, $matches); if ($matches[0] !=$copy) { exit("当前api未授权!请使用www.ttfk.cc"); } ?>