feat : admin
This commit is contained in:
@@ -54,7 +54,7 @@ class AdminUser extends Model
|
||||
*/
|
||||
public function getAdminInfoByAccount(string $account): \Hyperf\Database\Model\Model|Builder|null
|
||||
{
|
||||
return $this->where('username', $account)->where('is_del',UserCode::ENABLE)->first();
|
||||
return $this->where('username', $account)->where('is_del',UserCode::IS_NO_DEL)->first();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -63,7 +63,7 @@ class AdminUser extends Model
|
||||
*/
|
||||
public function getAdminInfoByName(string $name): \Hyperf\Database\Model\Model|Builder|null
|
||||
{
|
||||
return $this->where('chinese_name', $name)->where('is_del',UserCode::ENABLE)->first();
|
||||
return $this->where('chinese_name', $name)->where('is_del',UserCode::IS_NO_DEL)->first();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -72,6 +72,6 @@ class AdminUser extends Model
|
||||
*/
|
||||
public function getAdminInfoById(int $id): \Hyperf\Database\Model\Model|Builder|null
|
||||
{
|
||||
return $this->where('id', $id)->where('is_del',UserCode::ENABLE)->first();
|
||||
return $this->where('id', $id)->where('is_del',UserCode::IS_NO_DEL)->first();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user