stanley-king %!s(int64=9) %!d(string=hai) anos
pai
achega
423d53e6e6

+ 0 - 1
core/framework/core/base.php

@@ -64,7 +64,6 @@ final class Base
 
 	public static function mobile_init()
 	{
-		echo '__FUNCTION__';
 		self::cp();
 
 		global $setting_config;

+ 1 - 1
core/framework/libraries/log.php

@@ -53,7 +53,7 @@ class Log
 
     public static function endl($lev = self::ERR)
     {
-        $content = '\r\n';
+        $content = "\r\n";
 
         if($lev == self::SQL && self::open_sql) {
             $log_file = BASE_DATA_PATH.'/log/'.date('Ymd',TIMESTAMP).'-sql.log';

+ 4 - 4
crontab/crawl/product_importer.php

@@ -31,8 +31,8 @@ class product_importer
     private $cls_tree;
     private $down_path;
 
-    const store_name = "美宝莲";
-    const store_id = 1;
+    const store_name = "熊猫美妆";
+    const store_id = 6;
 
     public function __construct()
     {
@@ -409,11 +409,11 @@ class product_importer
 
             $prop_imgs = $item['prop_imgs']['prop_img'];
             if(!empty($prop_imgs)) {
-                $this->upload_imges($prop_imgs,1);
+                $this->upload_imges($prop_imgs,self::store_id);
             }
 
             $imgs = $this->reset_imgs($item['item_imgs']['item_img']);
-            $this->upload_imges($imgs,1);
+            $this->upload_imges($imgs,self::store_id);
 
             if(empty($prop_imgs))
             {