|
|
@@ -113,14 +113,14 @@ class PaperPayloadService
|
|
|
|
|
|
public function generatePaperCodes(string $paperId): array
|
|
|
{
|
|
|
- // 提取15位数字ID
|
|
|
+ // 提取15位数字ID作为统一学案编号
|
|
|
preg_match('/paper_(\d{15})/', $paperId, $matches);
|
|
|
$paperIdNum = $matches[1] ?? preg_replace('/[^0-9]/', '', $paperId);
|
|
|
|
|
|
return [
|
|
|
'paper_id_num' => $paperIdNum,
|
|
|
- 'exam_code' => '1' . $paperIdNum,
|
|
|
- 'grading_code' => '2' . $paperIdNum,
|
|
|
+ 'exam_code' => $paperIdNum,
|
|
|
+ 'grading_code' => $paperIdNum,
|
|
|
];
|
|
|
}
|
|
|
|