优化
This commit is contained in:
@@ -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']) : '';
|
||||
|
||||
Reference in New Issue
Block a user