This commit is contained in:
wong
2026-01-16 16:51:00 +08:00
parent a250819d87
commit 002f03e037

View File

@@ -118,12 +118,13 @@ class WechatChatroomController extends BaseController
}
$detail = Db::table('s2_wechat_chatroom')
->where(['accountId' => $accountId, 'id' => $id, 'isDeleted' => 0])
//->where(['accountId' => $accountId, 'id' => $id, 'isDeleted' => 0])
->where([ 'id' => $id, 'isDeleted' => 0])
->find();
if (!$detail) {
return ResponseHelper::error('聊天室不存在或无权限访问');
}
// if (!$detail) {
// return ResponseHelper::error('聊天室不存在或无权限访问');
// }
// 处理时间格式
$detail['createTime'] = !empty($detail['createTime']) ? date('Y-m-d H:i:s', $detail['createTime']) : '';