Commit bcc9ac58 authored by hujun's avatar hujun

去除注释

parent bbbb27ae
......@@ -63,25 +63,25 @@ class JobTask
public function updateShopImageIdTask()
{
// set_time_limit(0); // 取消脚本运行时间的超时上限
// $image = new ImageDepotService();
// $field = "id,industry_type,update_time";
// $params = [];
// $total = $this->gHouseModel->getHouseListTotal($params);
// $pageSize = 200;
// $pageTotal = ceil($total / $pageSize);
// for ($pageNo = 1; $pageNo <= $pageTotal; $pageNo++) {
// $houseList = $this->gHouseModel->getShopList($field, $params, $pageNo, $pageSize);
// $houseArr = [];
// foreach ($houseList as $item) {
// $industry_type = explode(',', $item['industry_type']);
// $houseBin['external_image_id'] = $image->getImage($industry_type[0]);
// $houseBin["id"] = $item["id"];
// $houseBin["update_time"] = $item["update_time"];
// array_push($houseArr, $houseBin);
// }
// $this->gHouseModel->updateHouse($houseArr);
// }
set_time_limit(0); // 取消脚本运行时间的超时上限
$image = new ImageDepotService();
$field = "id,industry_type,update_time";
$params = [];
$total = $this->gHouseModel->getHouseListTotal($params);
$pageSize = 200;
$pageTotal = ceil($total / $pageSize);
for ($pageNo = 1; $pageNo <= $pageTotal; $pageNo++) {
$houseList = $this->gHouseModel->getShopList($field, $params, $pageNo, $pageSize);
$houseArr = [];
foreach ($houseList as $item) {
$industry_type = explode(',', $item['industry_type']);
$houseBin['external_image_id'] = $image->getImage($industry_type[0]);
$houseBin["id"] = $item["id"];
$houseBin["update_time"] = $item["update_time"];
array_push($houseArr, $houseBin);
}
$this->gHouseModel->updateHouse($houseArr);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment