...
|
...
|
@@ -13,6 +13,7 @@ class User extends Model |
|
|
{
|
|
|
public function findData($where){
|
|
|
$data = $this->where($where)->find();
|
|
|
if(!empty($data)){
|
|
|
//判断是否为会员
|
|
|
$is_vip = '2';
|
|
|
if(!empty($data['vip_passtime'])){
|
...
|
...
|
@@ -28,6 +29,7 @@ class User extends Model |
|
|
}
|
|
|
$data['is_vip'] = $is_vip;
|
|
|
$data['is_svip'] = $is_svip;
|
|
|
}
|
|
|
return $data;
|
|
|
}
|
|
|
public function updateData($where,$data){
|
...
|
...
|
|