|
|
@@ -255,6 +255,7 @@ class OrderController extends BaseController
|
|
|
if (isset($order->wxPayUrl) && !empty($order->wxPayUrl)) {
|
|
|
$url = $order->wxPayUrl;
|
|
|
} else {
|
|
|
+ $merchantExtend = WxOpenClass::getWxInfo();
|
|
|
$merchantPrivateKeyPath = Yii::getAlias("@vendor/lakala") . '/production/api_private_key.pem';
|
|
|
$lklCertificatePath = Yii::getAlias("@vendor/lakala") . '/production/lkl-apigw-v1.cer';
|
|
|
$params = [
|
|
|
@@ -274,6 +275,7 @@ class OrderController extends BaseController
|
|
|
'notifyUrl' => $notifyUrl,
|
|
|
'subject' => $subject,
|
|
|
'couponId' => 0,
|
|
|
+ 'wxAppId' => $merchantExtend['miniAppId'],
|
|
|
];
|
|
|
$response = $laResource->driveNativeWxPay($wxParams);
|
|
|
if (isset($response['code']) == false || $response['code'] != 'BBS00000') {
|