Commit bcc9ac58 authored by hujun's avatar hujun

去除注释

parent bbbb27ae
...@@ -63,25 +63,25 @@ class JobTask ...@@ -63,25 +63,25 @@ class JobTask
public function updateShopImageIdTask() public function updateShopImageIdTask()
{ {
// set_time_limit(0); // 取消脚本运行时间的超时上限 set_time_limit(0); // 取消脚本运行时间的超时上限
// $image = new ImageDepotService(); $image = new ImageDepotService();
// $field = "id,industry_type,update_time"; $field = "id,industry_type,update_time";
// $params = []; $params = [];
// $total = $this->gHouseModel->getHouseListTotal($params); $total = $this->gHouseModel->getHouseListTotal($params);
// $pageSize = 200; $pageSize = 200;
// $pageTotal = ceil($total / $pageSize); $pageTotal = ceil($total / $pageSize);
// for ($pageNo = 1; $pageNo <= $pageTotal; $pageNo++) { for ($pageNo = 1; $pageNo <= $pageTotal; $pageNo++) {
// $houseList = $this->gHouseModel->getShopList($field, $params, $pageNo, $pageSize); $houseList = $this->gHouseModel->getShopList($field, $params, $pageNo, $pageSize);
// $houseArr = []; $houseArr = [];
// foreach ($houseList as $item) { foreach ($houseList as $item) {
// $industry_type = explode(',', $item['industry_type']); $industry_type = explode(',', $item['industry_type']);
// $houseBin['external_image_id'] = $image->getImage($industry_type[0]); $houseBin['external_image_id'] = $image->getImage($industry_type[0]);
// $houseBin["id"] = $item["id"]; $houseBin["id"] = $item["id"];
// $houseBin["update_time"] = $item["update_time"]; $houseBin["update_time"] = $item["update_time"];
// array_push($houseArr, $houseBin); array_push($houseArr, $houseBin);
// } }
// $this->gHouseModel->updateHouse($houseArr); $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