From ede3b1478a377ec09e292b7daebc9db3514a2db5 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Thu, 27 Aug 2020 09:51:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=20=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=8B=A6=E6=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/PaymentController.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Controller/PaymentController.php b/app/Controller/PaymentController.php index 1355125..c6c9788 100644 --- a/app/Controller/PaymentController.php +++ b/app/Controller/PaymentController.php @@ -12,7 +12,8 @@ use App\Service\PurchaseLimitServiceInterface; use EasyWeChat\Factory; use Hyperf\DbConnection\Db; use Hyperf\Guzzle\CoroutineHandler; - +use App\Constants\LogLabel; +use App\Commons\Log; class PaymentController extends BaseController { /** @@ -52,7 +53,8 @@ class PaymentController extends BaseController $result = $this->purchaseLimitService->PurchaseLimit($orderGoods); if(!$result){ Db::rollBack(); - return '同一个订单不能购买多个特价商品'; + $this->log->event(LogLabel::ORDER_LOG, ['msg'=> '支付失败,同一订单不能存在多个特价商品','global_order_id' => $orderMain->global_order_id]); + return $this->result(ErrorCode::PAY_FAILURE, $data,'同一订单不能存在多个特价商品'); } $result = $app->order->unify([