支付与提现 开关

This commit is contained in:
wangw 2024-12-31 11:34:00 +08:00
parent 70d66864a3
commit 957682ef41
2 changed files with 13 additions and 1 deletions

View File

@ -42,6 +42,12 @@ public class WuyouPay {
}
public BaseResp payOrder(String orderNo, String amount, String userAgent, String allId, String payType) {
String payConfig = commonInfoService.findOne(926).getValue();
if (!"1".equals(payConfig)) {
BaseResp baseResp = new BaseResp();
baseResp.setErrorMsg("暂无支付渠道");
return baseResp;
}
Map<String, Object> params = getBaseParams();
params.put("type", "6001");
params.put("is_code", "1");
@ -111,6 +117,12 @@ public class WuyouPay {
* @param userName 支付宝名称
*/
public BaseResp extractOrder(String outOrderNo, String amount, String account, String userName) {
String payConfig = commonInfoService.findOne(927).getValue();
if (!"1".equals(payConfig)) {
BaseResp baseResp = new BaseResp();
baseResp.setErrorMsg("暂无提现渠道");
return baseResp;
}
Map<String, Object> params = getBaseParams();
params.put("out_trade_no", outOrderNo);

View File

@ -38,7 +38,7 @@ public class Tets {
UserEntity userEntity = userService.selectUserById(26972L);
UserEntity byUser = userService.queryByInvitationCode(userEntity.getInviterCode());
proxy.activities(userEntity, byUser);
// proxy.activities(userEntity, byUser);
System.out.println(proxy);
}