Commit 49a2a6d4 by lixinming

no message

parent 6d2da78e
......@@ -241,6 +241,9 @@ export async function dongTaiZiXun({type, pageNumber}) {
*/
export async function wenZhangXiangQing({id}) {
let dataBaseInfo = await findOnce(TABLEENUM.文章管理, {id, display:STATE.});
if (!dataBaseInfo || !dataBaseInfo.id) {
throw new BizError(ERRORENUM.目标数据不存在);
}
let dataInfo:any = extractData(dataBaseInfo, [ "articleTime", "imgUrl", "title", "desc"]);
dataInfo.articleTime = moment(dataInfo.articleTime).format("YYYY-MM-DD");
dataInfo.source = "中国艺术职业教育学会";
......
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