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

支付宝

... ... @@ -387,7 +387,7 @@ class OrderController extends HomeBaseController
$payResponse = new \AlipayTradeService($config);
$result = $payResponse->wapPay($payRequestBuilder, $config['return_url'], $config['notify_url']);
session('user.alipay', $result);
session('user.alipay', urldecode($result));
return $this->fetch(':alipay', [
'url' => $result
]);
... ... @@ -396,9 +396,8 @@ class OrderController extends HomeBaseController
public function alipayDo() {
$goto = request()->param('goto');
$alipayUrl = session('user.alipay').$goto;
echo urldecode($goto);
//return $this->fetch(':pay');
echo $alipayUrl = session('user.alipay').$goto.'%3D';
return $this->fetch(':pay');
}
}
\ No newline at end of file
... ...