我试图通过亚行终端命令发送短信。$message = "Joe Doe. We find a provider for your request, touch the link below for see more details.https://massasistencia.com/detalles-cliente/23"exec('adb shell service call isms 7 i32 0 s16 "com.android.mms.service" s16 "+541156409605" s16 "null" s16 "' .$message. '" s16 "null" s16 "null"')收到的消息只说“乔”如果我只发送链接,短信就可以到达。如果我对“Joe Doe”执行 str_replace 将“”替换为“-”,则仅发送名称,消息就可以到达。我相信问题是空格“”。这是我使用的命令行,短信到达,所以命令有效,问题是消息本身。adb shell service call isms 7 i32 0 s16 "com.android.mms.service" s16 "+541156409958" s16 "null" s16 "Hi" s16 "null" s16 "null"
1 回答
- 1 回答
- 0 关注
- 204 浏览
添加回答
举报
0/150
提交
取消