提现功能修改

This commit is contained in:
wushaocheng
2022-11-23 18:02:25 +08:00
parent 4bd00098f7
commit f54e22697a
14 changed files with 575 additions and 26 deletions

View File

@@ -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");
}
}

View File

@@ -10,4 +10,6 @@ data class GoldToDiamondInfo(
val minDiamonds: Long,
val maxGolds: Long,
val minGolds: Long,
val hasPaymentPwd: Boolean,
val isClan: Boolean
) : Serializable

View File

@@ -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>
}
}