|
|
@@ -372,7 +372,12 @@ public class TransferFuncServiceImpl implements TransferFuncService {
|
|
|
} else {
|
|
|
distributeMoneyApply.setVerifyStatus(DistributeMoneyApply.Status.fail);
|
|
|
distributeMoneyApply.setReason(alipayResponse.getSubMsg());
|
|
|
- userBenefitsService.addDistributePoints(userId, distributeMoneyApply.getPoints());
|
|
|
+ if (mType == DistributeMoneyApply.MType.ds){
|
|
|
+ userBenefitsService.addDistributePoints(userId, distributeMoneyApply.getPoints());
|
|
|
+ }
|
|
|
+ if (mType == DistributeMoneyApply.MType.sub) {
|
|
|
+ userBenefitsService.addDistributeSubMoney(userId, needApplyMoney);
|
|
|
+ }
|
|
|
if (StrUtil.equals(alipayResponse.getSubCode(), "SECURITY_CHECK_FAILED")) {
|
|
|
return GatewayResponse.FAIL.newBuilder().setMsg("当前支付宝提现人数较多,请稍后再试").toResult();
|
|
|
}
|