|
@@ -158,22 +158,24 @@ void card_message_handle::on_message(zloop<task*> * loop,const message_locinfo&l
|
|
|
log_warn("%s","当前代码没有处理历史消息记录。");
|
|
|
return;
|
|
|
}
|
|
|
- STATUS_CARD c_status = STATUS_POWER_NOMARL;
|
|
|
+ int c_status = STATUS_POWER_NOMARL;
|
|
|
if(loc.m_batty_status == 2)
|
|
|
{
|
|
|
- c_status = STATUS_POWER_LOWER_SERIOUS;
|
|
|
+ c_status ^= STATUS_POWER_NOMARL;
|
|
|
+ c_status = STATUS_POWER_LOWER_SERIOUS;
|
|
|
}
|
|
|
- m_card->do_status(c_status);
|
|
|
|
|
|
if(loc.m_callinfo & 0x80)
|
|
|
{
|
|
|
- m_card->do_status(STATUS_HELP);
|
|
|
+ c_status |= STATUS_HELP;
|
|
|
}
|
|
|
+
|
|
|
if((loc.m_callinfo & 0x01) || (loc.m_callinfo & 0x02))
|
|
|
{
|
|
|
- m_card->do_status(STATUS_CALL);
|
|
|
+ c_status |= STATUS_CALL;
|
|
|
}
|
|
|
|
|
|
+ m_card->do_status(c_status);
|
|
|
m_ct_list[loc.m_card_ct&(m_ct_list.size()-1)]->on_message(loop,loc);
|
|
|
}
|
|
|
|