$uid, 'special_id' => $specialId, 'add_time' => $time])->find(); $res = true; if (!$info) { $res = self::set([ 'add_time' => $time, 'uid' => $uid, 'special_id' => $specialId ]); } return $res; } }