liche update for cules list bug

This commit is contained in:
xxb
2021-07-21 11:19:23 +08:00
committed by lccsw
parent 0abe72482c
commit 5eb19c563b
2 changed files with 12 additions and 12 deletions
+5 -7
View File
@@ -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;
}