|
@@ -506,11 +506,9 @@ class OrdersController extends BaseController
|
|
|
{
|
|
|
if ($params = $this->getPayParams($request)) {
|
|
|
$params['pay_merchant_id'] = $this->app_pay_merchat_id;
|
|
|
- myLog('pay-order')->info('wxIndex.params1', compact('params'));
|
|
|
|
|
|
// 针对聚裕的包无法支付的问题(注册时传入了仙女阅读的包名,导致支付时取的支付信息不一致)
|
|
|
- $payMerchantId = 0;
|
|
|
- $package = $request->header('x-package', '');
|
|
|
+ $package = $request->header('x-package', '');
|
|
|
if ($package === 'com.juyu.kuaiying.rmyq') {
|
|
|
$packageInfo = QappPackage::getPackageByPackage($package);
|
|
|
$payMerchantId = getProp($packageInfo, 'app_pay_merchat_id');
|
|
@@ -518,7 +516,6 @@ class OrdersController extends BaseController
|
|
|
$params['pay_merchant_id'] = $payMerchantId;
|
|
|
}
|
|
|
}
|
|
|
- myLog('pay-order')->info('wxIndex.params2', compact('params', 'package', 'payMerchantId'));
|
|
|
|
|
|
} else {
|
|
|
return response()->error('QAPP_PARAM_ERROR');
|
|
@@ -618,7 +615,18 @@ class OrdersController extends BaseController
|
|
|
{
|
|
|
if ($params = $this->getPayParams($request)) {
|
|
|
$params['pay_merchant_id'] = $this->ali_pay_merchat_id;
|
|
|
- $params['type'] = 'App';
|
|
|
+
|
|
|
+ // 针对聚裕的包无法支付的问题(注册时传入了仙女阅读的包名,导致支付时取的支付信息不一致)
|
|
|
+ $package = $request->header('x-package', '');
|
|
|
+ if ($package === 'com.juyu.kuaiying.rmyq') {
|
|
|
+ $packageInfo = QappPackage::getPackageByPackage($package);
|
|
|
+ $payMerchantId = getProp($packageInfo, 'ali_pay_merchat_id');
|
|
|
+ if ($payMerchantId) {
|
|
|
+ $params['pay_merchant_id'] = $payMerchantId;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ $params['type'] = 'App';
|
|
|
} else {
|
|
|
return response()->error('QAPP_PARAM_ERROR');
|
|
|
}
|