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

支付宝

@@ -193,8 +193,9 @@ class IndexController extends HomeBaseController @@ -193,8 +193,9 @@ 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 view('Index/index');  
197 - 196 + return $this->fetch('alipay', [
  197 + 'result' => $result
  198 + ]);
198 } 199 }
199 } 200 }
200 201
@@ -105,7 +105,7 @@ class AlipayTradeService { @@ -105,7 +105,7 @@ class AlipayTradeService {
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