|
@@ -731,7 +731,6 @@ class PurchaseController extends BaseController
|
|
|
$ghsShopId = $ghs->shopId ?? 0;
|
|
$ghsShopId = $ghs->shopId ?? 0;
|
|
|
$ghsShop = ShopClass::getById($ghsShopId, true);
|
|
$ghsShop = ShopClass::getById($ghsShopId, true);
|
|
|
if (empty($ghsShop)) {
|
|
if (empty($ghsShop)) {
|
|
|
- noticeUtil::push('没有供货商门店信息' . $ghsShopId, '15280215347');
|
|
|
|
|
util::fail('没有供货商门店信息');
|
|
util::fail('没有供货商门店信息');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -758,29 +757,10 @@ class PurchaseController extends BaseController
|
|
|
'couponId' => $couponId,
|
|
'couponId' => $couponId,
|
|
|
];
|
|
];
|
|
|
$response = $laResource->cashierPay($wxParams);
|
|
$response = $laResource->cashierPay($wxParams);
|
|
|
- print_r($response);
|
|
|
|
|
- die;
|
|
|
|
|
- if (isset($response['code']) == false || $response['code'] != '000000') {
|
|
|
|
|
- $errMsg = $response['msg'] ?? '';
|
|
|
|
|
- noticeUtil::push($errMsg, '15280215347');
|
|
|
|
|
- util::fail('支付失败');
|
|
|
|
|
- }
|
|
|
|
|
- $newParams = isset($response['resp_data']['acc_resp_fields']) ? $response['resp_data']['acc_resp_fields'] : [];
|
|
|
|
|
- $appId = $newParams['app_id'] ?? '';
|
|
|
|
|
- $nonceStr = $newParams['nonce_str'] ?? '';
|
|
|
|
|
- $paySign = $newParams['pay_sign'] ?? '';
|
|
|
|
|
- $package = $newParams['package'] ?? '';
|
|
|
|
|
- $signType = $newParams['sign_type'] ?? '';
|
|
|
|
|
- $timeStamp = $newParams['time_stamp'] ?? '';
|
|
|
|
|
|
|
+ $counter_url = $response['resp_data']['counter_url'] ? $response['resp_data']['counter_url'] : '';
|
|
|
$new = [
|
|
$new = [
|
|
|
- 'id' => $id,
|
|
|
|
|
- 'appId' => $appId,
|
|
|
|
|
- 'nonceStr' => $nonceStr,
|
|
|
|
|
- 'paySign' => $paySign,
|
|
|
|
|
- 'package' => $package,
|
|
|
|
|
- 'signType' => $signType,
|
|
|
|
|
- 'timeStamp' => $timeStamp,
|
|
|
|
|
- 'orderSn' => $orderSn,
|
|
|
|
|
|
|
+
|
|
|
|
|
+ 'counter_url' => $counter_url,
|
|
|
];
|
|
];
|
|
|
util::success($new);
|
|
util::success($new);
|
|
|
}
|
|
}
|