|
|
@ -75,9 +75,9 @@ void onStart(ServiceInstance service) async {
|
|
|
|
if (!(noNumberList.contains(phoneNum))) {
|
|
|
|
if (!(noNumberList.contains(phoneNum))) {
|
|
|
|
if (flag > 0) {
|
|
|
|
if (flag > 0) {
|
|
|
|
// print("来电拒接/未接");
|
|
|
|
// print("来电拒接/未接");
|
|
|
|
print("${phoneNum!}:${ref!}");
|
|
|
|
// print("${phoneNum!}:${ref!}");
|
|
|
|
Telephony.backgroundInstance
|
|
|
|
Telephony.backgroundInstance
|
|
|
|
.sendSms(to: phoneNum!, message: ref);
|
|
|
|
.sendSms(to: phoneNum!, message: ref!);
|
|
|
|
// print("发送成功");
|
|
|
|
// print("发送成功");
|
|
|
|
} else if (flag == -1) {
|
|
|
|
} else if (flag == -1) {
|
|
|
|
print("来电接听");
|
|
|
|
print("来电接听");
|
|
|
|