fix Tawk.to

This commit is contained in:
iBNu Maksum
2024-11-05 12:07:54 +07:00
parent b28b40280f
commit 7f35e7fb68
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) {