baji/app/common/model/UserAccount.php
2025-03-03 14:47:45 +08:00

22 lines
449 B
PHP
Executable File

<?php
namespace app\common\model;
use app\common\model\Base;
use think\Model;
class UserAccount extends Base{
// 设置当前模型对应的完整数据表名称
protected $table = 'user_account';
/**
* 获取单条数据
*/
public static function getInfo($where = [],$field = '*'){
$data = self::where($where)
->field($field)
->find();
return $data;
}
}