Commit ca6144ec by 刘鹏

feat: 8小时误差时间修复

parent 2b11d9c1
...@@ -20,6 +20,7 @@ import com.yidianling.consultant.R ...@@ -20,6 +20,7 @@ import com.yidianling.consultant.R
import com.yidianling.consultant.model.bean.PromptPaymentBean import com.yidianling.consultant.model.bean.PromptPaymentBean
import java.text.DecimalFormat import java.text.DecimalFormat
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.*
/** /**
...@@ -58,6 +59,7 @@ class ConsultSubPayDialog( ...@@ -58,6 +59,7 @@ class ConsultSubPayDialog(
val price = decimalFormat.format(promptPaymentBean.price) val price = decimalFormat.format(promptPaymentBean.price)
findViewById<TextView>(R.id.priceTv).text = "¥$price" findViewById<TextView>(R.id.priceTv).text = "¥$price"
var format = SimpleDateFormat("HH:mm:ss"); var format = SimpleDateFormat("HH:mm:ss");
format.timeZone = TimeZone.getTimeZone("GMT+0");
var millisInFuture = promptPaymentBean.toPayTime?.minus(promptPaymentBean.currentTime?:0)?:0 var millisInFuture = promptPaymentBean.toPayTime?.minus(promptPaymentBean.currentTime?:0)?:0
mTimer = CountDownTimerSupport(millisInFuture, 1000) mTimer = CountDownTimerSupport(millisInFuture, 1000)
mTimer?.setOnCountDownTimerListener(object : OnCountDownTimerListener { mTimer?.setOnCountDownTimerListener(object : OnCountDownTimerListener {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment