|
|
@@ -222,7 +222,7 @@ class NoticeController extends PublicController
|
|
|
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
//福州我要花、花路鲜花批发、小齐鲜花、花镜打二次小票,有多处要修改搜索关键词tow_print
|
|
|
- $needTwoPrint = [7538, 36707,76796];
|
|
|
+ $needTwoPrint = [7538, 36707, 76796];
|
|
|
} else {
|
|
|
$needTwoPrint = [644];
|
|
|
}
|
|
|
@@ -310,11 +310,11 @@ class NoticeController extends PublicController
|
|
|
noticeUtil::push('支付回调失败了,没有找到capitalType,orderSn:' . $orderSn . ' remark:' . $remarkString, '15280215347');
|
|
|
util::end();
|
|
|
}
|
|
|
+ $currentPayWay = null;
|
|
|
|
|
|
$connection = Yii::$app->db;
|
|
|
$transaction = $connection->beginTransaction();
|
|
|
try {
|
|
|
- $currentPayWay = null;
|
|
|
if ($account_type == 'WECHAT') {
|
|
|
$currentPayWay = dict::getDict('payWay', 'wxPay');
|
|
|
} elseif ($account_type == 'ALIPAY') {
|
|
|
@@ -443,7 +443,7 @@ class NoticeController extends PublicController
|
|
|
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
//福州我要花、花路鲜花批发、花镜打二次小票,有多处要修改搜索关键词tow_print
|
|
|
- $needTwoPrint = [7538, 36707,76796];
|
|
|
+ $needTwoPrint = [7538, 36707, 76796];
|
|
|
} else {
|
|
|
$needTwoPrint = [];
|
|
|
}
|
|
|
@@ -508,7 +508,9 @@ class NoticeController extends PublicController
|
|
|
exit();
|
|
|
} catch (\Exception $e) {
|
|
|
$transaction->rollBack();
|
|
|
- Yii::error("失败原因:" . $e->getMessage());
|
|
|
+ $msg = $e->getMessage();
|
|
|
+ noticeUtil::push(" PayCallback 报错了 " . $currentPayWay . " capitalType:" . $capitalType . " orderSn:" . $orderSn . " totalFee:" . $totalFee . " 第三方id:" . $transactionId . " 原因:" . $msg, '15280215347');
|
|
|
+ Yii::error("失败原因:" . $msg);
|
|
|
}
|
|
|
|
|
|
}
|