Compare commits
No commits in common. "505aa43c3615617998550f32231801ebd5971562" and "1b70fdd086a0b6ff6612de893b9d1a74b708e01e" have entirely different histories.
505aa43c36
...
1b70fdd086
@ -31,15 +31,8 @@ public class AppPayChannelController {
|
|||||||
@GetMapping("/get-enable-code-list")
|
@GetMapping("/get-enable-code-list")
|
||||||
@Operation(summary = "获得指定应用的开启的支付渠道编码列表")
|
@Operation(summary = "获得指定应用的开启的支付渠道编码列表")
|
||||||
@Parameter(name = "appId", description = "应用编号", required = true, example = "1")
|
@Parameter(name = "appId", description = "应用编号", required = true, example = "1")
|
||||||
public CommonResult<Set<String>> getEnableChannelCodeList(@RequestParam("appId") Long appId, @RequestParam(value = "hideWalletPay", defaultValue = "false") Boolean hideWalletPay) {
|
public CommonResult<Set<String>> getEnableChannelCodeList(@RequestParam("appId") Long appId) {
|
||||||
List<PayChannelDO> channels = channelService.getEnableChannelList(appId);
|
List<PayChannelDO> channels = channelService.getEnableChannelList(appId);
|
||||||
if (hideWalletPay) {
|
|
||||||
for (int i = channels.size() - 1; i >= 0; i--) {
|
|
||||||
if ("wallet".equals(channels.get(i).getCode())) {
|
|
||||||
channels.remove(i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return success(convertSet(channels, PayChannelDO::getCode));
|
return success(convertSet(channels, PayChannelDO::getCode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user