|
|
@ -78,6 +78,10 @@ class AlipayTradeService extends CI_Controller
|
|
|
|
if(empty($this->gateway_url)||trim($this->gateway_url)==""){
|
|
|
|
if(empty($this->gateway_url)||trim($this->gateway_url)==""){
|
|
|
|
log_message('error','Alipay ERROR gateway_url should not be NULL!');
|
|
|
|
log_message('error','Alipay ERROR gateway_url should not be NULL!');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
header('Access-Control-Allow-Origin:*');
|
|
|
|
|
|
|
|
header('Access-Control-Allow-Methods:POST, GET');
|
|
|
|
|
|
|
|
header('Access-Control-Max-Age:0');
|
|
|
|
|
|
|
|
header('Access-Control-Allow-Headers:x-requested-with, Content-Type');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public function index()
|
|
|
|
public function index()
|
|
|
|
{
|
|
|
|
{
|
|
|
|