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

支付宝

... ... @@ -193,8 +193,9 @@ class IndexController extends HomeBaseController
$payResponse = new \AlipayTradeService($config);
$result = $payResponse->wapPay($payRequestBuilder, $config['return_url'], $config['notify_url']);
return view('Index/index');
return $this->fetch('alipay', [
'result' => $result
]);
}
}
... ...
... ... @@ -105,7 +105,7 @@ class AlipayTradeService {
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;
}
... ...