v.2.30
Добавлен расширенный отчет по реализации Добавлен монитор активности
This commit is contained in:
@@ -51,7 +51,7 @@ class Client extends Model
|
||||
|
||||
public static function getBarcode($guid)
|
||||
{
|
||||
$barcode = Client::where('user_code', $guid)->first();
|
||||
$barcode = self::where('user_code', $guid)->first();
|
||||
if (isset($barcode)) {
|
||||
$barcode = $barcode['barcode_start'];
|
||||
} else {
|
||||
@@ -62,7 +62,7 @@ class Client extends Model
|
||||
|
||||
public static function getID($guid)
|
||||
{
|
||||
$id = Client::where('client_guid', $guid)->first();
|
||||
$id = self::where('client_guid', $guid)->first();
|
||||
if (isset($id)) {
|
||||
$id = $id['id'];
|
||||
} else {
|
||||
@@ -73,7 +73,7 @@ class Client extends Model
|
||||
|
||||
public static function getName($guid)
|
||||
{
|
||||
$client_name = Client::where('user_code', $guid)
|
||||
$client_name = self::where('user_code', $guid)
|
||||
->first();
|
||||
if (isset($client_name)) {
|
||||
$client_name = $client_name['name'];
|
||||
|
||||
Reference in New Issue
Block a user