后台增加指定分类ID

显示指定样式
This commit is contained in:
浪子
2025-03-20 23:37:23 +08:00
parent 78cdfb6fe9
commit 2189a0ec68
3 changed files with 56 additions and 154 deletions
+7 -7
View File
@@ -435,8 +435,8 @@ function commentApprove($widget, $email = NULL)
->from('table.comments')
->where('mail = ?', $email));
$commentNum = $commentNumSql[0]['commentNum'];
$linkSql = $db->fetchAll($db->select()->from('table.links')
->where('user = ?',$email));
//$linkSql = $db->fetchAll($db->select()->from('table.links')
// ->where('user = ?',$email));
if($commentNum==1){
$result['userLevel'] = '初识';
$result['bgColor'] = '#999999';
@@ -463,11 +463,11 @@ function commentApprove($widget, $email = NULL)
}
$userDesc = '已有'.$commentNum.'条评论';
}
if($linkSql){
$result['userLevel'] = '博友';
$result['bgColor'] = '#21b9bb';
$userDesc = '🔗'.$linkSql[0]['description'].'
✌️'.$userDesc;
}
// if($linkSql){
// $result['userLevel'] = '博友';
// $result['bgColor'] = '#21b9bb';
// $userDesc = '🔗'.$linkSql[0]['description'].'
✌️'.$userDesc;
// }
$result['userDesc'] = $userDesc;
$result['commentNum'] = $commentNum;