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

支付宝

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