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

支付宝

@@ -193,9 +193,7 @@ class IndexController extends HomeBaseController @@ -193,9 +193,7 @@ class IndexController extends HomeBaseController
193 $payResponse = new \AlipayTradeService($config); 193 $payResponse = new \AlipayTradeService($config);
194 $result = $payResponse->wapPay($payRequestBuilder, $config['return_url'], $config['notify_url']); 194 $result = $payResponse->wapPay($payRequestBuilder, $config['return_url'], $config['notify_url']);
195 195
196 - return $this->fetch('alipay', [  
197 - 'result' => $result  
198 - ]); 196 + return ;
199 } 197 }
200 } 198 }
201 199
@@ -101,11 +101,11 @@ class AlipayTradeService { @@ -101,11 +101,11 @@ class AlipayTradeService {
101 $aop->format= $this->format; 101 $aop->format= $this->format;
102 $aop->signType=$this->signtype; 102 $aop->signType=$this->signtype;
103 // 开启页面信息输出 103 // 开启页面信息输出
104 - $aop->debugInfo=false; 104 + $aop->debugInfo=true;
105 if($ispage) 105 if($ispage)
106 { 106 {
107 $result = $aop->pageExecute($request,"post"); 107 $result = $aop->pageExecute($request,"post");
108 - //echo $result; 108 + echo $result;
109 } 109 }
110 else 110 else
111 { 111 {
@@ -113,7 +113,7 @@ class AlipayTradeService { @@ -113,7 +113,7 @@ class AlipayTradeService {
113 } 113 }
114 114
115 //打开后,将报文写入log文件 115 //打开后,将报文写入log文件
116 - //$this->writeLog("response: ".var_export($result,true)); 116 + $this->writeLog("response: ".var_export($result,true));
117 return $result; 117 return $result;
118 } 118 }
119 119