mirror of
https://github.com/pppscn/SmsForwarder
synced 2025-08-03 09:27:41 +08:00
修复:卡槽匹配转发规则错误(卡槽id:-1=获取失败、0=卡槽1、1=卡槽2,但是 Rule 表里存的是 SIM1/SIM2)
This commit is contained in:
parent
23594bf96d
commit
74c25c8991
@ -45,7 +45,8 @@ class SendWorker(
|
|||||||
}
|
}
|
||||||
|
|
||||||
//val sendSbnId = inputData.getInt(Worker.sendSbnId, 0)
|
//val sendSbnId = inputData.getInt(Worker.sendSbnId, 0)
|
||||||
val simSlot = "SIM" + msgInfo.simSlot
|
//【注意】卡槽id:-1=获取失败、0=卡槽1、1=卡槽2,但是 Rule 表里存的是 SIM1/SIM2
|
||||||
|
val simSlot = "SIM" + (msgInfo.simSlot + 1)
|
||||||
val ruleList: List<RuleAndSender> = Core.rule.getRuleAndSender(msgInfo.type, 1, simSlot)
|
val ruleList: List<RuleAndSender> = Core.rule.getRuleAndSender(msgInfo.type, 1, simSlot)
|
||||||
if (ruleList.isEmpty()) {
|
if (ruleList.isEmpty()) {
|
||||||
return@withContext Result.failure(workDataOf("send" to "failed"))
|
return@withContext Result.failure(workDataOf("send" to "failed"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user