Commit c53daee6 authored by xiabin's avatar xiabin

添加移动端支付

parent 72260645
......@@ -401,8 +401,10 @@ class HomeController extends \yii\web\Controller
"total_fee" => $price,//付款金额
"body" => '云崖购买',//商品描述
);
if (Yii::$app->deviceDetect->isMobile()) {
$parameter['service'] = \Yii::$app->params['alipay']['wap_service'];
$parameter['app_pay'] = 'Y';
}
$html_text = $alipay->buildRequestForm($parameter, "get", "确认");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment