|
@@ -133,7 +133,7 @@ public class AdapayController extends BaseController {
|
|
|
@PostMapping(value = "createMember")
|
|
|
@PreAuthorize("@pcs.hasPermissions('adapay/createMember')")
|
|
|
public HttpResponseResult<Boolean> createMember(HfMember member) throws Exception {
|
|
|
- if (!profiles.equals("prod")) {
|
|
|
+ if (!profiles.equals("prod") && !profiles.equals("pre")) {
|
|
|
return failed("仅生产环境可用");
|
|
|
}
|
|
|
if (member.getMultipartFile().isEmpty()) {
|
|
@@ -164,7 +164,7 @@ public class AdapayController extends BaseController {
|
|
|
@PostMapping(value = "updateMember")
|
|
|
@PreAuthorize("@pcs.hasPermissions('adapay/updateMember')")
|
|
|
public HttpResponseResult<Boolean> updateMember(HfMember member) throws Exception {
|
|
|
- if (!profiles.equals("prod")) {
|
|
|
+ if (!profiles.equals("prod") && !profiles.equals("pre")) {
|
|
|
return failed("仅生产环境可用");
|
|
|
}
|
|
|
if (member.getMultipartFile().isEmpty()) {
|
|
@@ -195,7 +195,7 @@ public class AdapayController extends BaseController {
|
|
|
@PostMapping(value = "createSettleAccount")
|
|
|
@PreAuthorize("@pcs.hasPermissions('adapay/createSettleAccount')")
|
|
|
public HttpResponseResult<Boolean> createSettleAccount(String memberId, AccountInfo accountInfo) throws Exception {
|
|
|
- if (!profiles.equals("prod")) {
|
|
|
+ if (!profiles.equals("prod") && !profiles.equals("pre")) {
|
|
|
return failed("仅生产环境可用");
|
|
|
}
|
|
|
try {
|