更新加项pdf接口

This commit is contained in:
xianyi
2026-01-09 11:22:26 +08:00
parent b877a13aa2
commit 8df95d2104
3 changed files with 22 additions and 14 deletions

View File

@@ -367,8 +367,8 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
CombinationCode: combinationItemCodes,
});
if (res.Status === 200 && res.Data?.pdf_url && res.Data?.pdf_sort !== undefined && res.Data?.pdf_sort !== null) {
if (res.Status === 200 && res.Data?.listPdfInfo && res.Data.listPdfInfo.length > 0) {
// 新的接口返回的是数组至少有一个PDF文件即认为成功
return true;
} else {
console.error('获取加项PDF失败', res.Message);
@@ -743,7 +743,7 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
<div className='mt-auto pt-1'>
<div className='flex flex-col'>
{origPrice >= 0 && origPrice >= currPrice && (
<span className='text-xs text-gray-400 line-through'>¥{origPrice.toFixed(0)}</span>
<span className='text-xs text-gray-400 line-through'>¥{origPrice.toFixed(2)}</span>
)}
<div className='flex items-center justify-between gap-2'>
<span className='text-[14px] font-bold text-red-600'>¥{currPrice.toFixed(2)}</span>

View File

@@ -292,7 +292,7 @@ export const ExamSignPanel = ({ examId, onBusyChange }: ExamSignPanelProps) => {
}
} catch (err) {
console.error(err);
setMessage('签到请求失败,请稍后重试');
// setMessage('签到请求失败,请稍后重试');
} finally {
setSignLoading(false);
}