|
|
@@ -328,7 +328,7 @@ class Im extends BaseController
|
|
|
$param['language_code'] = $this->lang;
|
|
|
if ($this->userInfo['role'] != 0 && $param['type'] == 'text') {
|
|
|
//客服或管理员给用户发送消息,需要按照用户的语言做翻译
|
|
|
- $toContactId = $param['to_contact_id'];
|
|
|
+ $toContactId = $param['toContactId'];
|
|
|
$toUser = User::where('user_id', $toContactId)->field(['role', 'language_code'])->find();
|
|
|
if ($toUser && $toUser['role'] == 0 && $toUser['language_code']) {
|
|
|
//谷歌翻译
|