作者 lihan
1 个管道 的构建 通过 耗费 0 秒

支付宝

... ... @@ -193,9 +193,7 @@ class IndexController extends HomeBaseController
$payResponse = new \AlipayTradeService($config);
$result = $payResponse->wapPay($payRequestBuilder, $config['return_url'], $config['notify_url']);
return $this->fetch('alipay', [
'result' => $result
]);
return ;
}
}
... ...
... ... @@ -101,11 +101,11 @@ class AlipayTradeService {
$aop->format= $this->format;
$aop->signType=$this->signtype;
// 开启页面信息输出
$aop->debugInfo=false;
$aop->debugInfo=true;
if($ispage)
{
$result = $aop->pageExecute($request,"post");
//echo $result;
echo $result;
}
else
{
... ... @@ -113,7 +113,7 @@ class AlipayTradeService {
}
//打开后,将报文写入log文件
//$this->writeLog("response: ".var_export($result,true));
$this->writeLog("response: ".var_export($result,true));
return $result;
}
... ...