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

支付宝

... ... @@ -169,7 +169,7 @@ class IndexController extends HomeBaseController
require EXTEND_PATH . '/alipay/config.php';
if (1 == 1) {
//商户订单号,商户网站订单系统中唯一订单号,必填
$out_trade_no = '20181017210243564'.rand(10000, 99999);
$out_trade_no = '20181017210243564' . rand(10000, 99999);
//订单名称,必填
$subject = '购买';
... ... @@ -191,9 +191,11 @@ class IndexController extends HomeBaseController
$payRequestBuilder->setTimeExpress($timeout_express);
$payResponse = new \AlipayTradeService($config);
$result = $payResponse->wapPay($payRequestBuilder, $config['return_url'], $config['notify_url']);
return ;
if (cmf_is_wechat()) {
echo 1;
} else {
$result = $payResponse->wapPay($payRequestBuilder, $config['return_url'], $config['notify_url']);
}
}
}
... ...