|
|
|
@ -151,7 +151,7 @@ export const fetchEmailBindOrderAction = async (params) => {
|
|
|
|
|
* @param {object} { opi_sn }
|
|
|
|
|
*/
|
|
|
|
|
export const getEmailDirAction = async (params = { opi_sn: '' }) => {
|
|
|
|
|
const defaultParams = { opi_sn: 0, year: dayjs().year(), by_start_date: 1, by_success: -1, important: -1, if_want_book: -1, if_thinking: -1 }
|
|
|
|
|
const defaultParams = { opi_sn: 0, year: dayjs().year(), by_start_date: -1, by_success: -1, important: -1, if_want_book: -1, if_thinking: -1 }
|
|
|
|
|
const { errcode, result } = await fetchJSON(`http://202.103.68.144:8889/v3/email_dir`, { ...defaultParams, ...params })
|
|
|
|
|
return errcode === 0 ? result : [];
|
|
|
|
|
} ;
|
|
|
|
|