123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace app\common\model;
- use app\common\model\Sms;
- use app\common\library\Email;
- use phpDocumentor\Reflection\Type;
- use think\Model;
- use app\common\library\Common;
- use think\facade\Validate;
- use think\Request;
- use think\Db;
- /**
- * banner
- */
- class Banner Extends Model
- {
- // 开启自动写入时间戳字段
- protected $autoWriteTimestamp = 'TIMESTAMP';
- // 定义时间戳字段名
- protected $createTime = 'create_at';
- protected $updateTime = false;
- protected $table = 'q_banner';
- /**
- * banner
- */
- public static function BannerList(){
- $list = self::where('is_del',1)
- ->where('is_show',1)
- ->order('sort desc')
- ->select();
- return Common::return_success('成功',$list);
- }
- }
|