Commit 74118ccc authored by 曾水平's avatar 曾水平

Merge branch 'hotfix/20210519-zsp' into 'master'

优化

See merge request !4
parents 6a86bd6d 719c8f3a
...@@ -307,10 +307,7 @@ public class Open2DuibaController { ...@@ -307,10 +307,7 @@ public class Open2DuibaController {
Result<Boolean> sendCouponResult = jdApiUtil.pushCoupon(appEnum, accessToken.getAccessToken(), couponId, pin, uuid); Result<Boolean> sendCouponResult = jdApiUtil.pushCoupon(appEnum, accessToken.getAccessToken(), couponId, pin, uuid);
LOGGER.info("发放优惠券,sendCouponResult={},uid={},pin={},uuid={}", JSON.toJSONString(sendCouponResult), uid, pin, uuid); LOGGER.info("发放优惠券,sendCouponResult={},uid={},pin={},uuid={}", JSON.toJSONString(sendCouponResult), uid, pin, uuid);
if (sendCouponResult.getSuccess()) { //发券失败 return sendCouponResult;
return ResultBuilder.fail(sendCouponResult.getDesc());
}
return ResultBuilder.success();
} catch (BizException e) { } catch (BizException e) {
return ResultBuilder.fail(e.getMessage()); return ResultBuilder.fail(e.getMessage());
} catch (Exception e) { } 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