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

支付宝

@@ -387,17 +387,11 @@ class OrderController extends HomeBaseController @@ -387,17 +387,11 @@ class OrderController extends HomeBaseController
387 387
388 $payResponse = new \AlipayTradeService($config); 388 $payResponse = new \AlipayTradeService($config);
389 $result = $payResponse->wapPay($payRequestBuilder, $config['return_url'], $config['notify_url']); 389 $result = $payResponse->wapPay($payRequestBuilder, $config['return_url'], $config['notify_url']);
390 - session('user.alipay', urldecode($result));  
391 - return $this->fetch(':alipay', [  
392 - 'url' => $result  
393 - ]);  
394 } 390 }
395 } 391 }
396 392
397 public function alipayDo() { 393 public function alipayDo() {
398 - $goto = request()->param('goto');  
399 - echo $alipayUrl = session('user.alipay').$goto.'%3D';  
400 - return $this->fetch(':pay'); 394 +
401 } 395 }
402 396
403 } 397 }
@@ -104,7 +104,7 @@ class AlipayTradeService { @@ -104,7 +104,7 @@ class AlipayTradeService {
104 $aop->debugInfo=true; 104 $aop->debugInfo=true;
105 if($ispage) 105 if($ispage)
106 { 106 {
107 - $result = $aop->pageExecute($request,"get"); 107 + $result = $aop->pageExecute($request,"post");
108 //echo $result; 108 //echo $result;
109 } 109 }
110 else 110 else