Commit 6f9f1938 authored by huanglu's avatar huanglu

feat: update

parent 68ac68b2
...@@ -36,7 +36,7 @@ const CorrectList = ({ navigation }: CorrectListType) => { ...@@ -36,7 +36,7 @@ const CorrectList = ({ navigation }: CorrectListType) => {
{ {
title: '拍照', title: '拍照',
mediaType: 'photo', mediaType: 'photo',
videoQuality: 'medium', videoQuality: 'low',
}, },
async (res) => { async (res) => {
const { uri, didCancel } = res || {}; const { uri, didCancel } = res || {};
...@@ -47,6 +47,10 @@ const CorrectList = ({ navigation }: CorrectListType) => { ...@@ -47,6 +47,10 @@ const CorrectList = ({ navigation }: CorrectListType) => {
if (uri) { if (uri) {
const data = await uploadImage(uri); const data = await uploadImage(uri);
Toast.hideLoading(); Toast.hideLoading();
if (!data) {
Toast.msg('未识别,请重拍!!!');
return;
}
toHomeWorkDetail(data.onlineHomeworkImageId || ''); toHomeWorkDetail(data.onlineHomeworkImageId || '');
} }
}, },
...@@ -55,7 +59,7 @@ const CorrectList = ({ navigation }: CorrectListType) => { ...@@ -55,7 +59,7 @@ const CorrectList = ({ navigation }: CorrectListType) => {
const toHomeWorkDetail = useCallback((id: number | string) => { const toHomeWorkDetail = useCallback((id: number | string) => {
navigate.navigateGeekWebViewPage({ navigate.navigateGeekWebViewPage({
uri: `http://192.168.44.178:3000/mobile-webview/#/home-workcorrect/${id}`, uri: `http://192.168.44.178:3001/mobile-webview/#/home-workcorrect/${id}`,
useToken: true, useToken: true,
initTitle: '作业批阅', initTitle: '作业批阅',
}); });
......
...@@ -17,11 +17,11 @@ httpUtil.setRequestInterceptor( ...@@ -17,11 +17,11 @@ httpUtil.setRequestInterceptor(
timeout: 60000, timeout: 60000,
headers: { headers: {
Authorization: Authorization:
'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiIyNTk2ODQiLCJ0ZXJtaW5hbCI6InBjIiwidXVpZCI6IjAyNDlhYjFlNTkxOTRjN2JiYmZkMWY3NDM1ODRiM2U5IiwidGltZXN0YW1wIjoxNjAyMTIzNTM5ODExfQ.4mq0VQJcNZDpOycRmqPgd8van6BuJGSvr32kkw8g9X8', 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiIzMDgzMzQiLCJ0ZXJtaW5hbCI6InBjIiwidXVpZCI6ImVhNmUyMDYyOWJmNzRiZmJiNjQxNDdkMTE1ZjAyMDhlIiwidGltZXN0YW1wIjoxNjA2MTk4NzMyMTIxfQ.1wct1MCSNeVRLCZuSNNdZMRGiz8vLsuQkURxFcHARgU',
}, },
}; };
}, },
(eror) => {}, (_eror) => {},
); );
httpUtil.setResponseInterceptor(null as any, null as any); httpUtil.setResponseInterceptor(null as any, null as any);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment