原本的java風(fēng)格代碼
if (data.isNullOrEmpty()) { // 為空
syncTime = System.currentTimeMillis() / 1000
} else {
syncTime = data[0].time
}
系統(tǒng)糾正后
syncTime = if (data.isNullOrEmpty()) { // 為空
System.currentTimeMillis() / 1000
} else {
data[0].time
}
hahhahahahah