|
|
@@ -5,6 +5,7 @@ import cn.hutool.core.date.DateUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.extra.qrcode.QrCodeUtil;
|
|
|
import cn.hutool.extra.qrcode.QrConfig;
|
|
|
+import com.alipay.api.AlipayResponse;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.cyksj.common.EnvCommonService;
|
|
|
import com.cyksj.common.annotation.NoSubmit;
|
|
|
@@ -195,7 +196,7 @@ public class DistributePopularizeController {
|
|
|
throw BusinessRuntimeException.getInstance("超过可提现金额");
|
|
|
}
|
|
|
if (applyMoney.compareTo(BigDecimal.valueOf(4 * 100 * 100)) > 0) {
|
|
|
- throw BusinessRuntimeException.getInstance("每日可体现金额不超过400");
|
|
|
+ throw BusinessRuntimeException.getInstance("每日可提现金额不超过400");
|
|
|
}
|
|
|
if (update == 1) {
|
|
|
TransferAccountsReq req = new TransferAccountsReq();
|
|
|
@@ -211,11 +212,12 @@ public class DistributePopularizeController {
|
|
|
distributeMoneyApply.setMoney(num.multiply(distributePointsExchangeMoney.getMoney()));
|
|
|
distributeMoneyApply.setAccount(applyMoneyReq.getAccount());
|
|
|
distributeMoneyApply.setRealName(applyMoneyReq.getRealName());
|
|
|
- if (orderService.transferAccounts(req).isSuccess()) {
|
|
|
+ AlipayResponse alipayResponse = orderService.transferAccounts(req);
|
|
|
+ if (alipayResponse.isSuccess()) {
|
|
|
distributeMoneyApply.setVerifyStatus(DistributeMoneyApply.Status.success);
|
|
|
} else {
|
|
|
distributeMoneyApply.setVerifyStatus(DistributeMoneyApply.Status.fail);
|
|
|
- distributeMoneyApply.setReason("红包转账失败");
|
|
|
+ distributeMoneyApply.setReason(alipayResponse.getSubMsg());
|
|
|
while (true) {
|
|
|
BigDecimal originalPoints = user.getPoints();
|
|
|
Integer success = userMapper.updatePoints(user.getId(), originalPoints, distributeMoneyApply.getPoints());
|