【类 型】:test
【主 题】:测试 【描 述】: [原因]:提交条件是字符串 不是数组 用,分割成数组 [过程]: [影响]: 【结 束】 # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
This commit is contained in:
parent
5543593dbc
commit
16add3f3b5
@ -757,20 +757,23 @@ class AdminController extends PublicController
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 添加 main_status 条件
|
// 添加 main_status 条件
|
||||||
if (isset($_REQUEST['main_status']) && is_array($_REQUEST['main_status'])) {
|
if (isset($_REQUEST['main_status']) && !empty($_REQUEST['main_status'])) {
|
||||||
$where['main_status'] = array('in', $_REQUEST['main_status']);
|
$main_status_array = explode(',', $_REQUEST['main_status']);
|
||||||
|
$where['main_status'] = array('in', $main_status_array);
|
||||||
}
|
}
|
||||||
$this->publish("demo", $_REQUEST['main_status']);
|
$this->publish("demo", $_REQUEST['main_status']);
|
||||||
|
|
||||||
// // 添加 shipment_status 条件
|
// 添加 shipment_status 条件
|
||||||
// if (isset($_REQUEST['shipment_status']) && is_array($_REQUEST['shipment_status'])) {
|
if (isset($_REQUEST['shipment_status']) && !empty($_REQUEST['shipment_status'])) {
|
||||||
// $where['shipment_status'] = array('in', $_REQUEST['shipment_status']);
|
$shipment_status_array = explode(',', $_REQUEST['shipment_status']);
|
||||||
// }
|
$where['shipment_status'] = array('in', $shipment_status_array);
|
||||||
|
}
|
||||||
|
|
||||||
// // 添加 refund_status 条件
|
// 添加 refund_status 条件
|
||||||
// if (isset($_REQUEST['refund_status']) && is_array($_REQUEST['refund_status'])) {
|
if (isset($_REQUEST['refund_status']) && !empty($_REQUEST['refund_status'])) {
|
||||||
// $where['refund_status'] = array('in', $_REQUEST['refund_status']);
|
$refund_status_array = explode(',', $_REQUEST['refund_status']);
|
||||||
// }
|
$where['refund_status'] = array('in', $refund_status_array);
|
||||||
|
}
|
||||||
|
|
||||||
// // 添加搜索条件
|
// // 添加搜索条件
|
||||||
// if (isset($_REQUEST['search']) && is_array($_REQUEST['search']) && count($_REQUEST['search']) == 2) {
|
// if (isset($_REQUEST['search']) && is_array($_REQUEST['search']) && count($_REQUEST['search']) == 2) {
|
||||||
|
Loading…
Reference in New Issue
Block a user