|
|
@@ -659,7 +659,7 @@ class PurchaseController extends BaseController
|
|
|
}
|
|
|
|
|
|
//微信支付 ssh 2021.4.11
|
|
|
- public function actionWxPay()
|
|
|
+ public function actionAlipay()
|
|
|
{
|
|
|
ini_set('date.timezone', 'Asia/Shanghai');
|
|
|
$post = Yii::$app->request->post();
|
|
|
@@ -757,16 +757,22 @@ class PurchaseController extends BaseController
|
|
|
'couponId' => $couponId,
|
|
|
];
|
|
|
$response = $laResource->cashierPay($wxParams);
|
|
|
+
|
|
|
+ if (isset($response['code']) == false || $response['code'] != '000000') {
|
|
|
+ $errMsg = $response['msg'] ?? '';
|
|
|
+ noticeUtil::push($errMsg, '15280215347');
|
|
|
+ util::fail('发起支付失败');
|
|
|
+ }
|
|
|
+
|
|
|
$counter_url = $response['resp_data']['counter_url'] ? $response['resp_data']['counter_url'] : '';
|
|
|
$new = [
|
|
|
-
|
|
|
'counter_url' => $counter_url,
|
|
|
];
|
|
|
util::success($new);
|
|
|
}
|
|
|
|
|
|
//微信支付 ssh 2021.4.11
|
|
|
- public function actionWxPay2()
|
|
|
+ public function actionWxPay()
|
|
|
{
|
|
|
ini_set('date.timezone', 'Asia/Shanghai');
|
|
|
$post = Yii::$app->request->post();
|