Commit 3bbf2879 authored by shiyu's avatar shiyu

发布线上参数调整

parent 5f918c8b
...@@ -186,7 +186,7 @@ public class SysOpenShopApplyOrderServiceImpl implements SysOpenShopApplyOrderSe ...@@ -186,7 +186,7 @@ public class SysOpenShopApplyOrderServiceImpl implements SysOpenShopApplyOrderSe
OpenShopCostRecord updateDto = new OpenShopCostRecord(); OpenShopCostRecord updateDto = new OpenShopCostRecord();
updateDto.setOpenShopCostOrderId(openShopCostRecord.getOpenShopCostOrderId()); updateDto.setOpenShopCostOrderId(openShopCostRecord.getOpenShopCostOrderId());
updateDto.setIsValid(false); updateDto.setIsValid(false);
openShopCostRecordDao.update(openShopCostRecord); openShopCostRecordDao.update(updateDto);
} }
} }
} }
......
...@@ -257,7 +257,7 @@ public class WxPayServiceApi { ...@@ -257,7 +257,7 @@ public class WxPayServiceApi {
request.setNotifyUrl(null); request.setNotifyUrl(null);
Refund refundResponse = service.create(request); Refund refundResponse = service.create(request);
logger.info("微信申请退款接口返回:{}", JsonUtils.from(refundResponse)); logger.info("微信申请退款接口返回:{}", JsonUtils.from(refundResponse));
if (refundResponse.getStatus().equals(Status.SUCCESS)){ if (refundResponse.getStatus().equals(Status.SUCCESS) || refundResponse.getStatus().equals(Status.PROCESSING)){
logger.info("================ 退款操作成功 ================"); logger.info("================ 退款操作成功 ================");
//说明退款成功,开始接下来的业务操作 //说明退款成功,开始接下来的业务操作
//你的业务代码 //你的业务代码
......
...@@ -82,7 +82,7 @@ public class OpenShopServiceImpl implements OpenShopService { ...@@ -82,7 +82,7 @@ public class OpenShopServiceImpl implements OpenShopService {
//查询是否粉丝数超过了100 //查询是否粉丝数超过了100
long fansNum = followFansRecordDao.countFans(userId); long fansNum = followFansRecordDao.countFans(userId);
map.put("fansNum", fansNum); map.put("fansNum", fansNum);
map.put("fansNumAble", fansNum >= 10); map.put("fansNumAble", fansNum >= 100);
//查询发布的商品数是否达到10个 //查询发布的商品数是否达到10个
long itemNum = supplierItemDao.countByCreatorId(userId); long itemNum = supplierItemDao.countByCreatorId(userId);
...@@ -204,7 +204,7 @@ public class OpenShopServiceImpl implements OpenShopService { ...@@ -204,7 +204,7 @@ public class OpenShopServiceImpl implements OpenShopService {
@Override @Override
public Result createGuaranteeMoneyOrder(GuaranteeMoneyRecordRequestDto dto) { public Result createGuaranteeMoneyOrder(GuaranteeMoneyRecordRequestDto dto) {
try { try {
if (Double.valueOf(dto.getAmount()) < 1) { if (Double.valueOf(dto.getAmount()) < 300) {
return Result.failed("质保金最低300元"); return Result.failed("质保金最低300元");
} }
Date now = new Date(); Date now = new Date();
......
...@@ -89,12 +89,12 @@ public class WxPayServiceTest { ...@@ -89,12 +89,12 @@ public class WxPayServiceTest {
@Test @Test
public void refund() { public void refund() {
List<String> list = Arrays.asList("GM2410311556591498832"); List<String> list = Arrays.asList("GM2410311801573508186");
list.forEach(orderId ->{ list.forEach(orderId ->{
DistributionOrderRequestDto dto = new DistributionOrderRequestDto(); DistributionOrderRequestDto dto = new DistributionOrderRequestDto();
dto.setDistributionOrderId(orderId); dto.setDistributionOrderId(orderId);
dto.setAmount("0.01"); dto.setAmount("1");
dto.setRefundPrice("0.01"); dto.setRefundPrice("1");
Result result = wxPayServiceApi.refund(dto); Result result = wxPayServiceApi.refund(dto);
logger.info("申请微信支付退款:{}", result); logger.info("申请微信支付退款:{}", result);
}); });
......
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