You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local function longsmsmergecnf(res,num,data,datetime)
--log.info("longsmsmergecnf",num,data,datetime)
if data then
--短信内容转换为GB2312字符串格式
log.info("beforemsg:",data)
data = common.ucs2beToGb2312(data:fromHex())
log.info("aftermsg:",data)
--用户应用程序处理短信
if newsmscb then newsmscb(num,data,datetime) end
end
end
测试接收含3个以上包组成的长短信时,发现
sms.lua
中longsmsmergecnf
方法里的common.ucs2beToGb2312
似乎无响应。也就是下面的beforemsg
日志能打印,但aftermsg
未打印。两个包长短信似乎有的可以有的也会失败。
我的LOD版本是
Luat_V0035_8955_SSL
。用LuaTools 1.6.4写入lua脚本。下面是部分日志:
测试短信内容是:
The text was updated successfully, but these errors were encountered: