fix Tawk.to

This commit is contained in:
iBNu Maksum 2024-11-05 12:07:54 +07:00
parent b28b40280f
commit 7f35e7fb68
No known key found for this signature in database
GPG key ID: 7FC82848810579E5
5 changed files with 33 additions and 26 deletions

View file

@ -26,6 +26,15 @@ class User
return 0;
}
public static function getTawkToHash($email)
{
global $config;
if (!empty($config['tawkto_api_key']) && !Empty($email)) {
return hash_hmac('sha256', $email, $config['tawkto_api_key']);
}
return '';
}
public static function getBills($id = 0)
{
if (!$id) {