|
@@ -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("优惠券发放失败");
|
|
|
}
|
|
|
}
|