Commit 1a84b593 by huluobin

# 更新

parent e791b1d9
...@@ -22,6 +22,7 @@ import com.blt.other.module.cost.service.impl.costcheck.*; ...@@ -22,6 +22,7 @@ import com.blt.other.module.cost.service.impl.costcheck.*;
import com.blt.other.module.cost.vo.*; import com.blt.other.module.cost.vo.*;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
...@@ -287,6 +288,9 @@ public class CostController { ...@@ -287,6 +288,9 @@ public class CostController {
return result; return result;
} }
@Value("${spring.profiles.active}")
String profile;
@LoginIgnore @LoginIgnore
@ApiOperation("财务付款回调接口") @ApiOperation("财务付款回调接口")
@PostMapping(value = {"check/CashierCallbackUrl", "check/lend/CashierCallbackUrl"}) @PostMapping(value = {"check/CashierCallbackUrl", "check/lend/CashierCallbackUrl"})
...@@ -298,7 +302,8 @@ public class CostController { ...@@ -298,7 +302,8 @@ public class CostController {
result.put("result", true); result.put("result", true);
String costNo = cashierCallbackUrlVo.getId().toUpperCase(); String costNo = cashierCallbackUrlVo.getId().toUpperCase();
if (!(costNo.startsWith("F") || costNo.startsWith("SF"))) { if ((!(costNo.startsWith("F") || costNo.startsWith("SF")))
&& profile.equals("prod")) {
return result; return result;
} }
if (costNo.contains("-")) { if (costNo.contains("-")) {
......
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