更新 MonitorService.java
parent
82d21d98be
commit
d52b837175
|
|
@ -22,6 +22,7 @@ import com.nbee.echolink.broadcast.HeartbeatAlarmReceiver;
|
|||
import com.nbee.echolink.model.CallInfo;
|
||||
import com.nbee.echolink.model.DeviceInfo;
|
||||
import com.nbee.echolink.model.SMSInfo;
|
||||
import com.nbee.echolink.model.WeChatMsg;
|
||||
import com.nbee.echolink.response.ApiResponse;
|
||||
import com.nbee.echolink.utils.DeviceInfoUtils;
|
||||
import com.nbee.echolink.utils.NetworkUtil;
|
||||
|
|
@ -104,6 +105,10 @@ public class MonitorService extends Service {
|
|||
networkUtil.postRequest(smsInfo);
|
||||
}
|
||||
|
||||
public void sendWeChatMsg(WeChatMsg weChatMsg){
|
||||
networkUtil.postRequest(weChatMsg);
|
||||
}
|
||||
|
||||
private boolean checkNullString(String a, String b){
|
||||
if (a == null || b == null){
|
||||
return true;
|
||||
|
|
@ -126,6 +131,7 @@ public class MonitorService extends Service {
|
|||
// 创建通知
|
||||
Notification notification = new NotificationCompat.Builder(this, "channel_id")
|
||||
.setContentTitle(getString(R.string.notification_title))
|
||||
//.setContentText("sdads")
|
||||
.setSmallIcon(R.drawable.ic_notification) // 确保您有这个图标
|
||||
.build();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue