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

支付宝

... ... @@ -387,17 +387,11 @@ class OrderController extends HomeBaseController
$payResponse = new \AlipayTradeService($config);
$result = $payResponse->wapPay($payRequestBuilder, $config['return_url'], $config['notify_url']);
session('user.alipay', urldecode($result));
return $this->fetch(':alipay', [
'url' => $result
]);
}
}
public function alipayDo() {
$goto = request()->param('goto');
echo $alipayUrl = session('user.alipay').$goto.'%3D';
return $this->fetch(':pay');
}
}
\ No newline at end of file
... ...
... ... @@ -104,7 +104,7 @@ class AlipayTradeService {
$aop->debugInfo=true;
if($ispage)
{
$result = $aop->pageExecute($request,"get");
$result = $aop->pageExecute($request,"post");
//echo $result;
}
else
... ...