|
@ -66,24 +66,11 @@ public interface PadApiService { |
|
|
/** |
|
|
/** |
|
|
* 订单列表接口 (增强版,支持多种验证类型) |
|
|
* 订单列表接口 (增强版,支持多种验证类型) |
|
|
* 对应旧接口: /v3/pad/checkOrder |
|
|
* 对应旧接口: /v3/pad/checkOrder |
|
|
* @param token 访问令牌(必需) |
|
|
|
|
|
* @param type 验证类型 1验证码验证 2人脸验证 3扫码验证 4扫码器验证 |
|
|
|
|
|
* @param hardwareId 硬件ID(必需) |
|
|
|
|
|
* @param vCode 验证码(type=1时必需) |
|
|
|
|
|
* @param faceBase64 人脸base64数据(type=2时必需) |
|
|
|
|
|
* @param checkType 检查类型(type=2时必需) |
|
|
|
|
|
* @param decryptText 解密文本(type=4时必需) |
|
|
|
|
|
|
|
|
* @param request 订单查询请求体 |
|
|
* @return 订单列表响应 |
|
|
* @return 订单列表响应 |
|
|
*/ |
|
|
*/ |
|
|
@GET("v3/pad/checkOrder") |
|
|
|
|
|
Call<ApiResponse<CheckOrderResult>> checkOrder( |
|
|
|
|
|
@Query("token") String token, |
|
|
|
|
|
@Query("type") int type, |
|
|
|
|
|
@Query("hardware_id") int hardwareId, |
|
|
|
|
|
@Query("v_code") String vCode, |
|
|
|
|
|
@Query("face_base64") String faceBase64, |
|
|
|
|
|
@Query("check_type") String checkType, |
|
|
|
|
|
@Query("decrypt_text") String decryptText); |
|
|
|
|
|
|
|
|
@POST("v3/pad/checkOrder") |
|
|
|
|
|
Call<ApiResponse<CheckOrderResult>> checkOrder(@Body CheckOrderRequest request); |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 订单列表接口 |
|
|
* 订单列表接口 |
|
@ -93,7 +80,7 @@ public interface PadApiService { |
|
|
* @param pageSize 每页数量(可选) |
|
|
* @param pageSize 每页数量(可选) |
|
|
* @return 订单列表响应 |
|
|
* @return 订单列表响应 |
|
|
*/ |
|
|
*/ |
|
|
@GET("v3/pad/checkOrder") |
|
|
|
|
|
|
|
|
@POST("v3/pad/checkOrder") |
|
|
Call<ApiResponse<CheckOrderResponse>> checkOrder(@Query("token") String token, |
|
|
Call<ApiResponse<CheckOrderResponse>> checkOrder(@Query("token") String token, |
|
|
@Query("page") Integer page, |
|
|
@Query("page") Integer page, |
|
|
@Query("page_size") Integer pageSize); |
|
|
@Query("page_size") Integer pageSize); |
|
@ -1056,7 +1043,7 @@ public interface PadApiService { |
|
|
private String orderType; // 订单类型 |
|
|
private String orderType; // 订单类型 |
|
|
|
|
|
|
|
|
@SerializedName("info") |
|
|
@SerializedName("info") |
|
|
private OrderInfo info; // 订单信息 |
|
|
|
|
|
|
|
|
private Object info; // 订单信息(可能是字符串或对象) |
|
|
|
|
|
|
|
|
// Getters and Setters |
|
|
// Getters and Setters |
|
|
public String getOrderNo() { return orderNo; } |
|
|
public String getOrderNo() { return orderNo; } |
|
@ -1068,8 +1055,26 @@ public interface PadApiService { |
|
|
public String getOrderType() { return orderType; } |
|
|
public String getOrderType() { return orderType; } |
|
|
public void setOrderType(String orderType) { this.orderType = orderType; } |
|
|
public void setOrderType(String orderType) { this.orderType = orderType; } |
|
|
|
|
|
|
|
|
public OrderInfo getInfo() { return info; } |
|
|
|
|
|
public void setInfo(OrderInfo info) { this.info = info; } |
|
|
|
|
|
|
|
|
public Object getInfo() { return info; } |
|
|
|
|
|
public void setInfo(Object info) { this.info = info; } |
|
|
|
|
|
|
|
|
|
|
|
// 辅助方法,用于获取字符串类型的info |
|
|
|
|
|
public String getInfoAsString() { |
|
|
|
|
|
if (info instanceof String) { |
|
|
|
|
|
return (String) info; |
|
|
|
|
|
} else { |
|
|
|
|
|
return info != null ? info.toString() : ""; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 辅助方法,用于获取对象类型的info(需要进一步解析) |
|
|
|
|
|
public com.google.gson.JsonObject getInfoAsJsonObject() { |
|
|
|
|
|
if (info instanceof com.google.gson.JsonObject) { |
|
|
|
|
|
return (com.google.gson.JsonObject) info; |
|
|
|
|
|
} else { |
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -1127,6 +1132,54 @@ public interface PadApiService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|
|
|
* 订单查询请求模型 |
|
|
|
|
|
*/ |
|
|
|
|
|
public static class CheckOrderRequest { |
|
|
|
|
|
@SerializedName("token") |
|
|
|
|
|
private String token; // 访问令牌 |
|
|
|
|
|
|
|
|
|
|
|
@SerializedName("type") |
|
|
|
|
|
private int type; // 验证类型 1验证码验证 2人脸验证 3扫码验证 4扫码器验证 |
|
|
|
|
|
|
|
|
|
|
|
@SerializedName("hardware_id") |
|
|
|
|
|
private int hardwareId; // 硬件ID |
|
|
|
|
|
|
|
|
|
|
|
@SerializedName("v_code") |
|
|
|
|
|
private String vCode; // 验证码(type=1时必需) |
|
|
|
|
|
|
|
|
|
|
|
@SerializedName("face_base64") |
|
|
|
|
|
private String faceBase64; // 人脸base64数据(type=2时必需) |
|
|
|
|
|
|
|
|
|
|
|
@SerializedName("check_type") |
|
|
|
|
|
private String checkType; // 检查类型(type=2时必需) |
|
|
|
|
|
|
|
|
|
|
|
@SerializedName("decrypt_text") |
|
|
|
|
|
private String decryptText; // 解密文本(type=4时必需) |
|
|
|
|
|
|
|
|
|
|
|
// Getters and Setters |
|
|
|
|
|
public String getToken() { return token; } |
|
|
|
|
|
public void setToken(String token) { this.token = token; } |
|
|
|
|
|
|
|
|
|
|
|
public int getType() { return type; } |
|
|
|
|
|
public void setType(int type) { this.type = type; } |
|
|
|
|
|
|
|
|
|
|
|
public int getHardwareId() { return hardwareId; } |
|
|
|
|
|
public void setHardwareId(int hardwareId) { this.hardwareId = hardwareId; } |
|
|
|
|
|
|
|
|
|
|
|
public String getVCode() { return vCode; } |
|
|
|
|
|
public void setVCode(String vCode) { this.vCode = vCode; } |
|
|
|
|
|
|
|
|
|
|
|
public String getFaceBase64() { return faceBase64; } |
|
|
|
|
|
public void setFaceBase64(String faceBase64) { this.faceBase64 = faceBase64; } |
|
|
|
|
|
|
|
|
|
|
|
public String getCheckType() { return checkType; } |
|
|
|
|
|
public void setCheckType(String checkType) { this.checkType = checkType; } |
|
|
|
|
|
|
|
|
|
|
|
public String getDecryptText() { return decryptText; } |
|
|
|
|
|
public void setDecryptText(String decryptText) { this.decryptText = decryptText; } |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
* 小程序码响应模型 |
|
|
* 小程序码响应模型 |
|
|
*/ |
|
|
*/ |
|
|
public static class MiniQrcodeResponse { |
|
|
public static class MiniQrcodeResponse { |
|
|