昵称问题
This commit is contained in:
@@ -8,6 +8,7 @@ use app\chat\model\ChatDoNotDisturb;
|
||||
use app\common\controller\ApiController;
|
||||
use app\exception\MyBusinessException;
|
||||
use app\utils\Session;
|
||||
use ba\Random;
|
||||
use support\Log;
|
||||
use support\Request;
|
||||
use support\Response;
|
||||
@@ -122,6 +123,7 @@ class GroupController extends ApiController
|
||||
Db::startTrans();
|
||||
// 创建群
|
||||
$group_id = Db::name('chat_group')->insertGetId([
|
||||
'id' => Random::build('alnum', 32),
|
||||
'name' => $name,
|
||||
'shop_id' => $shop_id,
|
||||
'avatar' => $avatar,
|
||||
|
||||
@@ -214,7 +214,7 @@ class MessageController extends ApiController
|
||||
}
|
||||
|
||||
// 未读计数
|
||||
$unreadCount = Db::name('chat_unread_count')->where(['user_id' => $this->uid, 'session_id' => $session['session_id']])->value('count')?:0;
|
||||
$unreadCount = Db::name('chat_unread_count')->where(['user_id' => $this->uid, 'session_id' => $session['to_id']])->value('count')?:0;
|
||||
}
|
||||
if($session['chat_type'] == 2) {
|
||||
if($lastMsg) {
|
||||
|
||||
Reference in New Issue
Block a user