<?php namespace app\mobile\model; use think\Model; class Statistic extends Model { // 表名 protected $name = 'mobile_statistic'; public function getTypeList() { return ['day' => __('每天'), 'week' => __('每周'), 'month' => __('每月')]; } }