更新修复异常

This commit is contained in:
yaooo 2023-11-08 16:43:37 +08:00
parent b3828d2f47
commit d04fc8c39e
1 changed files with 2 additions and 2 deletions

View File

@ -121,8 +121,8 @@ class MessageIndex extends ApiController
$this->uid = JWT_UID; $this->uid = JWT_UID;
$param = get_params(); $param = get_params();
$type = 4; $type = 4;
$ids = empty($param['ids']) ? 0 : $param['ids']; $ids = empty($param['ids']) ? '0' : $param['ids'];
$idArray = explode(',', $ids); $idArray = explode(',', (string)$ids);
$list = []; $list = [];
foreach ($idArray as $key => $val) { foreach ($idArray as $key => $val) {
$list[] = [ $list[] = [