You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
295 B
PHTML

2 years ago
<?php
namespace app\admin\model;
use think\Model;
use think\Db;
class Dmin1 extends Model
{
public function login($data)
{
$user = Db::name('user')->where('USER_NAME',$data['USER_NAME'])->find();
if ($user) {
if ($user['PASSWORD'] == $data['PASSWORD']) {
return 3;
}else {
return 1;
}
}
}
}
?>