|
@@ -1243,7 +1243,7 @@ class Events
|
|
|
//获取工单最后20条聊天记录
|
|
//获取工单最后20条聊天记录
|
|
|
private static function getServerChagLog($sericeId, $limit = 20)
|
|
private static function getServerChagLog($sericeId, $limit = 20)
|
|
|
{
|
|
{
|
|
|
- $ret = self::$db->select('from_id,from_name,to_id,to_name,content,time_line')->from('ws_chat_log')->where('servicelog_id=:sid')->bindValues(array('sid' => $sericeId))->orderByDESC(['id'])->limit($limit)->query();
|
|
|
|
|
|
|
+ $ret = self::$db->select('id,from_id,from_name,to_id,to_name,content,time_line')->from('ws_chat_log')->where('servicelog_id=:sid')->bindValues(array('sid' => $sericeId))->orderByDESC(['id'])->limit($limit)->query();
|
|
|
if ($ret) {
|
|
if ($ret) {
|
|
|
$tmp = [];
|
|
$tmp = [];
|
|
|
foreach ($ret as $val) {
|
|
foreach ($ret as $val) {
|