临时提交

This commit is contained in:
墨大叔 2024-08-03 09:41:06 +08:00
parent 1d36920701
commit 619594e711
5 changed files with 56 additions and 2 deletions

View File

@ -0,0 +1,34 @@
package com.ruoyi.common.pay.yst.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 云商通证件类型
* @author wjh
* 2024/8/3
*/
@Getter
@AllArgsConstructor
public enum YstCertType {
ID_CARD("身份证", "1", "0", "0"),
PASSPORT("护照", "2", "2", "2"),
OFFICER_CARD("军官证", "3", "3", "3"),
RETURN_CARD("回乡证", "4", null, null),
TAIWAN_PASS("台湾通行证", "5", "6", "6"),
POLICE_CARD("警官证", "6", "9", "9"),
SOLDIER_CARD("士兵证", "7", "4", "4"),
HOUSEHOLD_CARD("户口簿", "8", "1", "1"),
HK_PASS("港澳居民来往内地通行证", "9", "5", "5"),
TEMP_CARD("临时身份证", "10", "7", "7"),
FOREIGNER_CARD("外国人居留证", "11", "8", "8"),
HK_TW_CARD("港澳台居民居住证", "12", null, null),
OTHER_CARD("其它证件", "99", null, null);
private final String name; // 名称
private final String type; // 类型
private final String syb; // 收银宝取值
private final String sft; // 应付通取值
}

View File

@ -4,6 +4,7 @@ import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 响应码
* @author wjh
* 2024/8/1
*/

View File

@ -6,4 +6,10 @@ package com.ruoyi.common.pay.yst.service;
* 2024/8/1
*/
public interface YstAccountService {
/**
* 个人会员实名及绑卡申请
*/
void personRealNameAndBindCardApply();
}

View File

@ -9,4 +9,11 @@ import org.springframework.stereotype.Service;
*/
@Service
public class YstAccountServiceImpl implements YstAccountService {
/**
* 个人会员实名及绑卡申请
*/
@Override
public void personRealNameAndBindCardApply() {
}
}

View File

@ -5,7 +5,6 @@ import com.alibaba.fastjson2.JSONObject;
import com.alibaba.fastjson2.TypeReference;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.pay.yst.config.YstConfig;
import com.ruoyi.common.pay.yst.domain.BizParameter;
import com.ruoyi.common.pay.yst.domain.YstRequest;
import com.ruoyi.common.pay.yst.domain.YstResponse;
import com.ruoyi.common.utils.ServiceUtil;
@ -48,7 +47,14 @@ public class YstClient {
/**
* 发送请求
*/
public <T> YstResponse<T> sendRequest(String api, String transCode, BizParameter param, Class<T> type)
public <T> YstResponse<T> sendRequest(String api, String transCode, Object param, Class<T> type) {
return this.sendRequest(api, transCode, JSON.parseObject(JSON.toJSONString(param)), type);
}
/**
* 发送请求
*/
public <T> YstResponse<T> sendRequest(String api, String transCode, JSONObject param, Class<T> type)
{
try {
YstRequest request = assembleRequest(transCode, param.toString());