liche update for cules list bug
This commit is contained in:
@@ -155,13 +155,11 @@ class Clues extends HD_Controller{
|
||||
}
|
||||
$data = array();
|
||||
for ($_row = 2; $_row <= $rowCnt; $_row++) { //读取内容
|
||||
if ($objWorksheet->getCell('A' . $_row)->getValue()) {
|
||||
$data[] = array(
|
||||
'name' => $objWorksheet->getCell('A' . $_row)->getValue(),
|
||||
'mobile' => $objWorksheet->getCell('B' . $_row)->getValue(),
|
||||
'cfrom' => $objWorksheet->getCell('C' . $_row)->getValue(),
|
||||
);
|
||||
}
|
||||
$data[] = array(
|
||||
'name' => $objWorksheet->getCell('A' . $_row)->getValue(),
|
||||
'mobile' => $objWorksheet->getCell('B' . $_row)->getValue(),
|
||||
'cfrom' => $objWorksheet->getCell('C' . $_row)->getValue(),
|
||||
);
|
||||
}
|
||||
$done = $this->add_batch($data);
|
||||
@unlink($file);
|
||||
|
||||
@@ -25,11 +25,13 @@ class Receiver_clues_cfrom_model extends HD_Model
|
||||
$rows = [];
|
||||
if($ids){
|
||||
$ids = array_filter($ids);
|
||||
$cf_ids = implode(',',$ids);
|
||||
$where = [
|
||||
"id in ($cf_ids)" => null
|
||||
];
|
||||
$rows = $this->map('id','',$where,'','','',$fileds);
|
||||
if($ids){
|
||||
$cf_ids = implode(',',$ids);
|
||||
$where = [
|
||||
"id in ($cf_ids)" => null
|
||||
];
|
||||
$rows = $this->map('id','',$where,'','','',$fileds);
|
||||
}
|
||||
}
|
||||
return $rows;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user