<?php

namespace app\service;

use app\model\Ry;
use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;

class RyService
{
    /**
     * @throws ModelNotFoundException
     * @throws DataNotFoundException
     * @throws DbException
     */
    static function selectLoginInfo($loginInfo):array{
        $map[]=["rybh","=",$loginInfo["rybh"]];
        $map[]=["kl","=",$loginInfo["kl"]];
        return (new \app\model\Ry)->where($map)->find()->toArray();
    }
}