|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 仅在特定时间执行(每天指定时间) | 
|---|
|  |  |  | // 可根据需要设置多个不同时间点的提醒 | 
|---|
|  |  |  | ReminderWorker.setupScheduledWorker(this, 9, 0)  // 上午9:00 | 
|---|
|  |  |  | ReminderWorker.setupScheduledWorker(this, 13, 50) // 下午13:50 | 
|---|
|  |  |  | //ReminderWorker.setupScheduledWorker(this, 9, 50)  // 上午9:00 | 
|---|
|  |  |  | ReminderWorker.setupScheduledWorker(this, 10, 50) // 下午13:50 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 不再使用周期性轮询和立即执行的方式 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | WHERE category = :category | 
|---|
|  |  |  | AND code = :code | 
|---|
|  |  |  | AND substr(createTime, 1, 10) = substr(:dateString, 1, 10) | 
|---|
|  |  |  | ANd pickup = '0' | 
|---|
|  |  |  | ORDER BY createTime DESC | 
|---|
|  |  |  | LIMIT 1 | 
|---|
|  |  |  | """) | 
|---|
|  |  |  | 
|---|
|  |  |  | address = response.data.details.address, | 
|---|
|  |  |  | time = response.data.details.time | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | CodeUtils.saveCode(code) | 
|---|
|  |  |  | //判断如果post不为空且长度超过10就不报错 | 
|---|
|  |  |  | if (response.data.details.pickupCode != null && response.data.details.pickupCode.length > 10) { | 
|---|
|  |  |  | Log.e("SmsReceiver", "快递信息中的post字段为空或超过10") | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | CodeUtils.saveCode(code) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | "还款" -> { | 
|---|