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