mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
23 lines
439 B
PHP
23 lines
439 B
PHP
<?php
|
|
/**
|
|
*
|
|
* @since 2017/03/07 创建
|
|
* @author zhaoxiang <zhaoxiang051405@gmail.com>
|
|
*/
|
|
|
|
namespace Admin\Model;
|
|
|
|
|
|
use Think\Model;
|
|
|
|
class BaseModel extends Model {
|
|
Protected $autoCheckFields = false;
|
|
|
|
public function open( $where ){
|
|
return $this->where( $where )->save( array('status' => 1) );
|
|
}
|
|
|
|
public function close( $where ){
|
|
return $this->where( $where )->save( array('status' => 0) );
|
|
}
|
|
} |