getTypeText(key.keyType)
function getTypeText(type) {
return {
1: "普通key",
2: "商用key",
}[type] || "未知状态";
}
getStatusText(key.status)
function getStatusText(status) {
return {
'1': "已签发证书",
'2': "已撤销证书",
'3': "签发证书失败",
'4': "已注册",
}[status] || "未知状态";
}