提现功能修改
This commit is contained in:
@@ -512,4 +512,18 @@ public class UriProvider {
|
||||
return JAVA_WEB_URL.concat("/peko/modules/pay/index.html?channelType=" + type + "&deviceId=" + deviceId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 钻石明细
|
||||
*/
|
||||
public static String getDiamondDetail() {
|
||||
return JAVA_WEB_URL.concat("peko/modules/myincome/index.html#/DiamondLog");
|
||||
}
|
||||
|
||||
/**
|
||||
* 提现记录
|
||||
*/
|
||||
public static String getWithdrawRecord() {
|
||||
return JAVA_WEB_URL.concat("peko/modules/myincome/index.html#/GoldLog");
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -10,4 +10,6 @@ data class GoldToDiamondInfo(
|
||||
val minDiamonds: Long,
|
||||
val maxGolds: Long,
|
||||
val minGolds: Long,
|
||||
val hasPaymentPwd: Boolean,
|
||||
val isClan: Boolean
|
||||
) : Serializable
|
@@ -45,6 +45,31 @@ object EarnModel : BaseModel() {
|
||||
api.exchange(goldNum, payPwd)
|
||||
}
|
||||
|
||||
suspend fun bound(
|
||||
uid: Long,
|
||||
swift: String,
|
||||
bankName: String,
|
||||
accountNumber: String,
|
||||
accountName: String,
|
||||
address: String,
|
||||
city: String,
|
||||
province: String,
|
||||
postCode: String
|
||||
): String? =
|
||||
launchRequest {
|
||||
api.bound(
|
||||
uid,
|
||||
swift,
|
||||
bankName,
|
||||
accountNumber,
|
||||
accountName,
|
||||
address,
|
||||
city,
|
||||
province,
|
||||
postCode
|
||||
)
|
||||
}
|
||||
|
||||
private interface Api {
|
||||
|
||||
/**
|
||||
@@ -84,6 +109,22 @@ object EarnModel : BaseModel() {
|
||||
@Query("payPwd") payPwd: String
|
||||
): ServiceResult<String>
|
||||
|
||||
/**
|
||||
* @return
|
||||
*/
|
||||
@POST("/withdraw/bound")
|
||||
suspend fun bound(
|
||||
@Query("uid") uid: Long,
|
||||
@Query("swift") swift: String,
|
||||
@Query("bankName") bankName: String,
|
||||
@Query("accountNumber") accountNumber: String,
|
||||
@Query("accountName") accountName: String,
|
||||
@Query("address") address: String,
|
||||
@Query("city") city: String,
|
||||
@Query("province") province: String,
|
||||
@Query("postCode") postCode: String
|
||||
): ServiceResult<String>
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user