Browse Source

Merge branch 'master' of http://39.98.194.76:3000/txct/wanyue_app

yxjapp 5 months ago
parent
commit
997876d3cb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/admin/service/coupon/CouponDetailService.php

+ 4 - 1
app/admin/service/coupon/CouponDetailService.php

@@ -7,6 +7,7 @@ use app\model\CouponDetail;
 use app\model\SysSerial;
 use support\Db;
 use support\exception\BusinessException;
+use support\Log;
 
 class CouponDetailService
 {
@@ -111,10 +112,12 @@ class CouponDetailService
             Db::commit();
         } catch (BusinessException $e) {
             Db::rollBack();
+            Log::error("发券失败:".$e->getMessage());
             throw new BusinessException($e->getMessage());
         } catch (\Exception $e) {
-            dump($e->getMessage());
+//            dump($e->getMessage());
             Db::rollBack();
+            Log::error("发券失败:".$e->getMessage());
             throw new BusinessException("优惠券发放失败");
         }
     }