uniacid(); }); }*/ public function scopeRecords($query) { return $query->uniacid()->select('id','group_name'); } /** * Get member group information by groupId * * @param array $data * * @return 1 or 0 * */ protected static function getMemberGroupByGroupID($groupId) { return static::uniacid()->where('id', $groupId)->first(1)->toArray(); } /** * 获取默认组 * * @return mixed */ public static function getDefaultGroupId() { return self::select('id') ->uniacid() ->where('is_default', 1); } }