Browse Source

debug goods des

stanley-king 9 years atrás
parent
commit
61c7d650fc
2 changed files with 4 additions and 11 deletions
  1. 2 2
      crontab/control/date.php
  2. 2 9
      crontab/crawl/body_filter.php

+ 2 - 2
crontab/control/date.php

@@ -407,7 +407,7 @@ class dateControl extends BaseCronControl {
         $update['evaluation_state'] = 2;
         $update = $model_order->editOrder($update,$condition,1000);
         if (!$update) {
-            $this->log('更新实物订单超期不能评价失败');break;
+            $this->log('更新实物订单超期不能评价失败'); return;
         }
 
         //虚拟订单超期未评价自动更新状态,每次最多更新1000个订单
@@ -421,7 +421,7 @@ class dateControl extends BaseCronControl {
         $update['evaluation_state'] = 2;
         $update = $model_order->editOrder($update,$condition,1000);
         if (!$update) {
-            $this->log('更新虚拟订单超期不能评价失败');break;
+            $this->log('更新虚拟订单超期不能评价失败'); return;
         }
     }
 

+ 2 - 9
crontab/crawl/body_filter.php

@@ -122,7 +122,7 @@ class body_filder
                     copy($path,$newpath);
 
                     ++$num;
-                    array_push({$name});
+                    array_push($name);
                 }
             }
             if(isset($imgs)) {
@@ -132,6 +132,7 @@ class body_filder
             }
         } else {
             return false;
+
         }
     }
 
@@ -148,12 +149,6 @@ class body_filder
         }
     }
 
-    private function layout($pics)
-    {
-
-
-    }
-
     public function proc()
     {
         $goods = $this->goods_common->field('goods_commonid,goods_body')->limit(false)->select();
@@ -172,8 +167,6 @@ class body_filder
             }
         }
     }
-
-    public function
 }