mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 22:10:49 +00:00
【程序目录】商品列表页面增加ids参数数据验证
This commit is contained in:
parent
db2116f3d3
commit
eebc637bea
@ -66,6 +66,10 @@ class StoreProductController
|
||||
}
|
||||
if ($where['ids'] && is_string($where['ids'])) {
|
||||
$where['ids'] = explode(',', $where['ids']);
|
||||
foreach ($where['ids'] as $key => &$item) {
|
||||
$where['ids'][$key] = (int)$item;
|
||||
if ($where['ids'][$key] == 0) unset($where['ids'][$key]);
|
||||
}
|
||||
}
|
||||
if (!$where['ids']) {
|
||||
unset($where['ids']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user