Servers.php 1.0 KB
<?php
/**
 * @remark :
 * @name   :Servers.php
 * @author :lyh
 * @method :post
 * @time   :2024/6/24 16:19
 */

namespace App\Models\Devops;

use App\Models\Base;
use App\Utils\EncryptUtils;

class Servers extends Base
{
    protected $table = 'gl_servers';

    /**
     * @remark :获取数据用户名解密
     * @name   :getUserAttribute
     * @author :lyh
     * @method :post
     * @time   :2023/9/12 16:05
     */
    public function getAccountAttribute($value){
        return (new EncryptUtils())->unlock_url($value);
    }

    /**
     * @remark :密码解密
     * @name   :getPasswordAttribute
     * @author :lyh
     * @method :post
     * @time   :2023/9/12 16:05
     */
    public function getPasswordAttribute($value){
        return (new EncryptUtils())->unlock_url($value);
    }

    /**
     * @remark :端口解密
     * @name   :getPasswordAttribute
     * @author :lyh
     * @method :post
     * @time   :2023/9/12 16:05
     */
    public function getPortAttribute($value){
        return (new EncryptUtils())->unlock_url($value);
    }
}