|
|
@@ -78,20 +78,18 @@ class NoticeController extends PublicController
|
|
|
$connection = Yii::$app->db;
|
|
|
$transaction = $connection->beginTransaction();
|
|
|
try {
|
|
|
- $payWayType = null;
|
|
|
+ $currentPayWay = null;
|
|
|
if ($account_type == 'WECHAT') {
|
|
|
- $payWayType = dict::getDict('payWay', 'wxPay');
|
|
|
- }
|
|
|
- if ($account_type == 'ALIPAY') {
|
|
|
- $payWayType = dict::getDict('payWay', 'alipay');
|
|
|
- }
|
|
|
- if (empty($payWayType)) {
|
|
|
+ $currentPayWay = dict::getDict('payWay', 'wxPay');
|
|
|
+ } elseif ($account_type == 'ALIPAY') {
|
|
|
+ $currentPayWay = dict::getDict('payWay', 'alipay');
|
|
|
+ } else {
|
|
|
noticeUtil::push('支付回调失败了,没有找到支付类型,orderSn:' . $orderSn, '15280215347');
|
|
|
util::end();
|
|
|
}
|
|
|
//支付成功后续流程
|
|
|
$attach = '';
|
|
|
- payUtil::thirdPay($payWayType, $capitalType, $orderSn, $totalFee, $attach, $transactionId);
|
|
|
+ payUtil::thirdPay($currentPayWay, $capitalType, $orderSn, $totalFee, $attach, $transactionId);
|
|
|
$transaction->commit();
|
|
|
echo "SUCCESS";
|
|
|
|