Merge branch 'shiy-login' into Wren

This commit is contained in:
2025-11-25 20:59:59 +08:00
24 changed files with 2559 additions and 1633 deletions
+11 -11
View File
@@ -90,12 +90,12 @@ axiosInstance.interceptors.request.use(
const token = localStorage.getItem('access_token');
if (token) {
config.headers.Authorization = `Bearer ${token}`;
console.log('🔑 [Request Interceptor] 添加Authorization头:', {
url: config.url,
method: config.method,
hasToken: !!token,
tokenPreview: token.substring(0, 20) + '...'
});
// console.log('🔑 [Request Interceptor] 添加Authorization头:', {
// url: config.url,
// method: config.method,
// hasToken: !!token,
// tokenPreview: token.substring(0, 20) + '...'
// });
} else {
console.warn('⚠️ [Request Interceptor] 没有找到access_token:', {
url: config.url,
@@ -127,11 +127,11 @@ export class AuthenticationError extends Error {
*/
axiosInstance.interceptors.response.use(
(response) => {
console.log('✅ [Response Interceptor] 请求成功:', {
url: response.config.url,
status: response.status,
statusText: response.statusText
});
// console.log('✅ [Response Interceptor] 请求成功:', {
// url: response.config.url,
// status: response.status,
// statusText: response.statusText
// });
return response;
},
(error) => {
+16 -16
View File
@@ -461,22 +461,22 @@ export async function getReviewPoints(fileId: string, request: Request) {
evaluatedPointResultsLog: evaluatedPointResultsLog || {}
// evaluatedPointResultsLog: {
// rules:[
// {
// "id": "0",
// "type": "consistency",
// "res": true,
// "config": {
// "logic": "all",
// "pairs": [
// {
// "sourceField": {"证据先行登记保存批准书-负责人意见并签名-时间": {page: 1,value: ''}},
// "targetField": {"证据先行登记保存批准书-负责人意见并签名-签名": {page: 2,value: '有无判断类型'}},
// "compareMethod": "exact",
// "res": true
// }
// ]
// }
// },
// {
// "id": "0",
// "type": "consistency",
// "res": true,
// "config": {
// "logic": "all",
// "pairs": [
// {
// "sourceField": {"证据先行登记保存批准书-负责人意见并签名-时间": {page: 1,value: ''}},
// "targetField": {"证据先行登记保存批准书-负责人意见并签名-签名": {page: 2,value: '有无判断类型'}},
// "compareMethod": "exact",
// "res": true
// }
// ]
// }
// },
// {
// "id": "1",
// "type": "consistency",