code: public function logLogin($user_id)
      {
          $data = [
              'login_count' => [
                  'exp',
                  'login_count + 1'
              ],
              'login_time' => time(),
              'login_ip' => Common::getIp()
          ];
          $this->saveUser($user_id, $data);
      }
docs: 登录日志
  
  @param number $user_id