User.php
414 字节
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/10/23
* Time: 13:07
*/
namespace app\home\model;
use think\Model;
class User extends Model
{
public function findData($where){
$data = $this->where($where)->find();
return $data;
}
public function updateData($where,$data){
$result = $this->where($where)->update($data);
return $result;
}
}