// +---------------------------------------------------------------------- namespace app\model\system; use crmeb\basic\BaseModel; use crmeb\traits\ModelTrait; use think\Model; /** * 签到奖励 * Class SystemSignReward * @package app\model\system */ class SystemSignReward extends BaseModel { use ModelTrait; /** * 数据表主键 * @var string */ protected $pk = 'id'; /** * 模型名称 * @var string */ protected $name = 'system_sign_reward'; /**类型搜索器 * @param $query * @param $value * @return void */ public function searchTypeAttr($query, $value) { if ($value !== '') $query->where('type', $value); } }