/**
  * 重置用户的练习进度,并返回第一题编号
  * @param $user
  * @param $testTypeId
  * @return int
  * @throws Exception
  */
 public static function resetCurrent($user, $testTypeId)
 {
     $testLibrary = TestLibrary::findFirstByUserAndTestType($user, $testTypeId);
     self::saveOrUpdate($user['userId'], $testTypeId, $testLibrary['testLibraryId']);
     return 0;
 }