ts_aimz/utils/comm.wxs

28 lines
641 B
Plaintext
Raw Normal View History

2025-03-29 15:54:33 +08:00
var isEmpty = function (obj) {
if (obj == null) return true;
if (typeof obj !== 'object') return false;
return JSON.stringify(obj) === '{}';
};
2025-04-03 10:44:12 +08:00
var status = function (value) {
var status = '排队中...'
switch (value) {
case 'NONE':
status = '排队中...'
break
case 'GENERATING':
status = '生成中...'
break
case 'SUCCESS':
status = '生成成功'
break
case 'FAILED':
status = '生成失败'
break
}
return status
}
2025-03-29 15:54:33 +08:00
module.exports = {
2025-04-03 10:44:12 +08:00
isEmpty: isEmpty,
status: status
2025-03-29 15:54:33 +08:00
};