支付与提现 开关
This commit is contained in:
parent
70d66864a3
commit
957682ef41
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue