Viporder.php
530 字节
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2020/5/6
* Time: 9:29
*/
namespace app\index\model;
use think\Model;
class Viporder extends Model
{
public function insertData($data){
$result = $this->insertGetId($data);
return $result;
}
public function updateData($where,$data){
$result = $this->where($where)->update($data);
return $result;
}
public function findData($where){
$data = $this->where($where)->find();
return $data;
}
}