diff --git a/hesabixCore/src/Service/Notification.php b/hesabixCore/src/Service/Notification.php
index aadb278..0074659 100644
--- a/hesabixCore/src/Service/Notification.php
+++ b/hesabixCore/src/Service/Notification.php
@@ -27,4 +27,17 @@ class Notification
$this->em->flush();
return true;
}
+ public function insert(string $message,string $url,User $user): bool
+ {
+ $item = new \App\Entity\Notification();
+ $item->setBid(null);
+ $item->setDateSubmit(time());
+ $item->setViewed(false);
+ $item->setUser($user);
+ $item->setMessage($message);
+ $item->setUrl($url);
+ $this->em->persist($item);
+ $this->em->flush();
+ return true;
+ }
}
\ No newline at end of file
diff --git a/hesabixCore/templates/general/sitemap.html.twig b/hesabixCore/templates/general/sitemap.html.twig
index 5c1acab..09b8651 100644
--- a/hesabixCore/templates/general/sitemap.html.twig
+++ b/hesabixCore/templates/general/sitemap.html.twig
@@ -115,6 +115,11 @@
2023-11-10T16:17:43+00:00
0.80
+
+ https://hesabix.ir/front/apps/woocommerce
+ 2023-11-10T16:17:43+00:00
+ 0.80
+
https://hesabix.ir/login
{{ timeNow }}