|
|
@@ -171,6 +171,7 @@ public class PayCenterService {
|
|
|
String sync = getHttp(PayCenterEnum.MEMBER_DETAIL, new HashMap<>() {{
|
|
|
put("uid", uid);
|
|
|
put("channel", channel);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -186,6 +187,7 @@ public class PayCenterService {
|
|
|
public R<WalletOverview> general(String uid) {
|
|
|
String sync = getHttp(PayCenterEnum.MEMBER_GENERAL, new HashMap<>() {{
|
|
|
put("uid", uid);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -201,6 +203,7 @@ public class PayCenterService {
|
|
|
String sync = getHttp(PayCenterEnum.USER, new HashMap<>() {{
|
|
|
put("uid", uid);
|
|
|
put("channel", channelEnum);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -235,13 +238,14 @@ public class PayCenterService {
|
|
|
* @return
|
|
|
*/
|
|
|
public R<Wallet> walletSum(@NotNull String uid, ChannelEnum channel, String filter) {
|
|
|
- if (StringUtils.isBlank(uid)) {
|
|
|
- throw new BusinessException("提现用户不能为空");
|
|
|
- }
|
|
|
+// if (StringUtils.isBlank(uid)) {
|
|
|
+// throw new BusinessException("提现用户不能为空");
|
|
|
+// }
|
|
|
String sync = getHttp(PayCenterEnum.MEMBER_WALLET_V2, new HashMap<>() {{
|
|
|
put("uid", uid);
|
|
|
put("channel", Objects.isNull(channel) ? "" : channel);
|
|
|
put("filter", filter);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -264,6 +268,7 @@ public class PayCenterService {
|
|
|
String sync = getHttp(PayCenterEnum.WITHDRAW_DETAIL, new HashMap<>() {{
|
|
|
put("uid", uid);
|
|
|
put("order_no", orderNo);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -296,6 +301,7 @@ public class PayCenterService {
|
|
|
put("page", finalPage);
|
|
|
put("pageSize", finalPageSize);
|
|
|
put("status", status);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -314,6 +320,7 @@ public class PayCenterService {
|
|
|
String sync = getHttp(PayCenterEnum.WITHDRAW_CATEGORY, new HashMap<>() {{
|
|
|
put("uid", uid);
|
|
|
put("channel", channel);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return parseArray(sync, CashCount.class);
|
|
|
}
|
|
|
@@ -331,6 +338,7 @@ public class PayCenterService {
|
|
|
String finalType = type;
|
|
|
String sync = getHttp(PayCenterEnum.WITHDRAW_STATUS, new HashMap<>() {{
|
|
|
put("type", finalType);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -412,6 +420,7 @@ public class PayCenterService {
|
|
|
put("uid", uid);
|
|
|
put("channel", channel);
|
|
|
put("filter", filter);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -517,6 +526,7 @@ public class PayCenterService {
|
|
|
put("filter", filter);
|
|
|
put("page", page);
|
|
|
put("pageSize", pageSize);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -617,7 +627,7 @@ public class PayCenterService {
|
|
|
put("page", page);
|
|
|
put("pageSize", pageSize);
|
|
|
put("keyword", keyword);
|
|
|
-
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -640,6 +650,7 @@ public class PayCenterService {
|
|
|
put("filter", filter);
|
|
|
put("page", page);
|
|
|
put("pageSize", pageSize);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -656,6 +667,7 @@ public class PayCenterService {
|
|
|
String sync = getHttp(PayCenterEnum.ADVANCE_PAY_PAY_CHANNELS, new HashMap<>() {{
|
|
|
put("uid", uid);
|
|
|
put("filter", filter);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return parseArray(sync, ChannelStatistics.class);
|
|
|
}
|
|
|
@@ -677,6 +689,7 @@ public class PayCenterService {
|
|
|
put("filter", filter);
|
|
|
put("page", page);
|
|
|
put("pageSize", pageSize);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -705,6 +718,7 @@ public class PayCenterService {
|
|
|
put("endDate", endDate);
|
|
|
put("page", page);
|
|
|
put("pageSize", pageSize);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -781,6 +795,7 @@ public class PayCenterService {
|
|
|
put("uid", uid);
|
|
|
put("channel", channel);
|
|
|
put("business_no", businessNo);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return parseArray(sync, SplitDto.class);
|
|
|
}
|
|
|
@@ -814,6 +829,7 @@ public class PayCenterService {
|
|
|
put("endDate", endDate);
|
|
|
put("page", finalPage);
|
|
|
put("pageSize", finalPageSize);
|
|
|
+ put("channels", "xinwang");
|
|
|
}});
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
@@ -985,4 +1001,24 @@ public class PayCenterService {
|
|
|
return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 充值订单退款
|
|
|
+ *
|
|
|
+ * @param uid
|
|
|
+ * @param filter
|
|
|
+ * @param channel
|
|
|
+ * @param money
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public R<BusinessNo> refundApply(String uid, String filter, ChannelEnum channel, Long money) {
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("uid", uid);
|
|
|
+ jsonObject.put("filter", filter);
|
|
|
+ jsonObject.put("channel", Objects.nonNull(channel) ? channel.getChannel() : "");
|
|
|
+ jsonObject.put("money", money);
|
|
|
+ String sync = jsonHttp(PayCenterEnum.REFUND_APPLY, jsonObject);
|
|
|
+ return JSONObject.parseObject(sync, new TypeReference<>() {
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|