删除会话列表
This commit is contained in:
@@ -78,7 +78,7 @@ class MessageController extends ApiController
|
|||||||
// }
|
// }
|
||||||
foreach ($messages as $k => &$v) {
|
foreach ($messages as $k => &$v) {
|
||||||
$v['send_time'] = formatWeChatTime($v['send_time']);
|
$v['send_time'] = formatWeChatTime($v['send_time']);
|
||||||
$v['coupon'] = json_decode($v['coupon']);
|
$v['coupon'] = !empty($v['coupon'])?json_decode($v['coupon']):'';
|
||||||
// 判断是谁发的
|
// 判断是谁发的
|
||||||
if($v['from_id'] == $this->uid) {
|
if($v['from_id'] == $this->uid) {
|
||||||
$v['is_user_send'] = 1; // 自己发的
|
$v['is_user_send'] = 1; // 自己发的
|
||||||
@@ -203,7 +203,7 @@ class MessageController extends ApiController
|
|||||||
$list_arr = json_decode($list_json, true);
|
$list_arr = json_decode($list_json, true);
|
||||||
foreach ($list_arr as $k => $list) {
|
foreach ($list_arr as $k => $list) {
|
||||||
if($list['session_id'] == $session_id) {
|
if($list['session_id'] == $session_id) {
|
||||||
unset($list_arr[$k]);
|
$list['id_del'] = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(count($list_arr) >= 1) {
|
if(count($list_arr) >= 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user