/**
  * 签到
  * @param null $user_id
  */
 public function doClockInAction($user_id = null)
 {
     if (!$user_id) {
         $user = User::getCurrentUser();
         $user_id = $user['user_id'];
     }
     $clock_in = ClockIn::getClockIn($user_id);
     $success = false;
     if (empty($clock_in)) {
         $success = ClockIn::addClockIn($user_id);
     } else {
         $success = ClockIn::updateClockIn($user_id);
     }
     $this->view->setVars(array('success' => $success));
     $this->eventsManager->fire('userAction:checkInSuccess', $this);
 }