Commit 719c8f3a authored by 曾水平's avatar 曾水平

优化

parent b48c5e90
......@@ -307,10 +307,7 @@ public class Open2DuibaController {
Result<Boolean> sendCouponResult = jdApiUtil.pushCoupon(appEnum, accessToken.getAccessToken(), couponId, pin, uuid);
LOGGER.info("发放优惠券,sendCouponResult={},uid={},pin={},uuid={}", JSON.toJSONString(sendCouponResult), uid, pin, uuid);
if (sendCouponResult.getSuccess()) { //发券失败
return ResultBuilder.fail(sendCouponResult.getDesc());
}
return ResultBuilder.success();
return sendCouponResult;
} catch (BizException e) {
return ResultBuilder.fail(e.getMessage());
} catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment