From ffcabc93691b22c0dc2118d823f0ecef250cf66c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A0=82=E5=90=89=E8=AF=83=E5=BE=B7=E6=8B=89=E6=9B=BC?= =?UTF-8?q?=E6=9F=A5=E7=9A=84=E8=8B=B1=E8=B1=AA?= Date: Fri, 21 Aug 2026 11:43:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=8F=E6=97=A5=E5=88=B7=E9=A2=98=20?= =?UTF-8?q?=E6=A0=B8=E5=BF=83=E6=8E=A5=E5=8F=A3=E5=A5=91=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ExamService/ExamService.php | 4 +++- .../DailyPracticeInterface.php | 21 +++++++++++++++++++ .../JsonRpcInterface/QuestionInterface.php | 8 +++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 src/ExamService/JsonRpcInterface/DailyPracticeInterface.php diff --git a/src/ExamService/ExamService.php b/src/ExamService/ExamService.php index aa173ce..438e145 100644 --- a/src/ExamService/ExamService.php +++ b/src/ExamService/ExamService.php @@ -17,6 +17,7 @@ use Dhd\Micro\Interface\ExamService\JsonRpcInterface\SmartPaperInterface; use Dhd\Micro\Interface\ExamService\JsonRpcInterface\CampusRelationInterface; use Dhd\Micro\Interface\ExamService\JsonRpcInterface\PaperImportInterface; use Dhd\Micro\Interface\ExamService\JsonRpcInterface\QuestionNoteInterface; +use Dhd\Micro\Interface\ExamService\JsonRpcInterface\DailyPracticeInterface; interface ExamService extends ExamServiceInterface, @@ -31,4 +32,5 @@ interface ExamService extends SmartPaperInterface, CampusRelationInterface, PaperImportInterface, - QuestionNoteInterface {} + QuestionNoteInterface, + DailyPracticeInterface {} diff --git a/src/ExamService/JsonRpcInterface/DailyPracticeInterface.php b/src/ExamService/JsonRpcInterface/DailyPracticeInterface.php new file mode 100644 index 0000000..24e535e --- /dev/null +++ b/src/ExamService/JsonRpcInterface/DailyPracticeInterface.php @@ -0,0 +1,21 @@ +} + */ + public function appGetDailyPractice(int $userId): array; +} diff --git a/src/ExamService/JsonRpcInterface/QuestionInterface.php b/src/ExamService/JsonRpcInterface/QuestionInterface.php index d1772db..2c5fdd1 100644 --- a/src/ExamService/JsonRpcInterface/QuestionInterface.php +++ b/src/ExamService/JsonRpcInterface/QuestionInterface.php @@ -89,4 +89,12 @@ interface QuestionInterface * @return array */ public function getUserQuestionRecordDetailListV2(string $testCode, int $userId): array; + + /** + * 获取刷题题目,V2版本(原抽题方式,无 success 包装) + * @param array $params 参数(num/category_id/parent_category_id/campus_id/exam_type_id/subject_id/test_type/is_fast/get_correct) + * @param int $userId 用户ID + * @return array 题目列表 + */ + public function getExerciseQuestionListV2(array $params, int $userId): array; }