Browse Source

Merge branch 'goods' of 121.43.114.153:/home/git/repositories/shopnc into goods

Wan Xin 9 years ago
parent
commit
48b0def965

+ 5 - 7
crontab/crawl/fetch_goods.php

@@ -30,13 +30,11 @@ date_default_timezone_set('Asia/Shanghai');
 //$tmreq = new tmrequest();
 //$tmreq->proc();
 
-$treater = new pretreat_tmdata();
-$treater->proc();
-
-
-
-$spec = new spec_attr();
-$spec->proc();
+//$treater = new pretreat_tmdata();
+//$treater->proc();
+//
+//$spec = new spec_attr();
+//$spec->proc();
 
 $importer = new product_importer();
 $importer->proc();

+ 2 - 3
crontab/crawl/product_importer.php

@@ -458,11 +458,10 @@ class product_importer
     {
         $items = $this->get_tmgoods();
         foreach($items as $item) {
-            print "handle num_iid=" . $item['num_iid'] . "\r\n";
+            print "handle num_iid=" . $item['num_iid'] . " start.\r\n";
             $this->import_item($item['body'],$item['desc']);
             $this->tm_goods->where(array('num_iid' => $item['num_iid']))->update(array('imported' => 1));
-
-            //$this->tm_goods->update(where())
+            print "handle num_iid=" . $item['num_iid'] . " end. \r\n";
         }
     }
 }

+ 2 - 1
crontab/crawl/upload_control.php

@@ -27,7 +27,8 @@ class upload_control
     }
 
     const POST_NAME = 'goods_image';
-    const tmp_file = '/private/var/tmp/phpxxkkdl';
+    //const tmp_file = '/private/var/tmp/phpxxkkdl';
+    const tmp_file = '/phpxxkkdl';
 
     private function fill_files($filename)
     {