瀏覽代碼

debug https

stanley-king 8 年之前
父節點
當前提交
d382f70add
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 5 0
      helper/brand_helper.php
  2. 1 1
      mobile/control/brand.php

+ 5 - 0
helper/brand_helper.php

@@ -14,6 +14,7 @@ require_once(BASE_ROOT_PATH . '/helper/time_interval.php');
 class brand_helper
 {
     static private $stInstance = null;
+
     private $mBrandPageResult;
     private $mTimeInterval;
     private $mCountries;
@@ -56,6 +57,8 @@ class brand_helper
             $this->mCountries = [];
             $brands = [];
             foreach ($items as $brand) {
+                Log::record($brand['brand_logo'],Log::DEBUG);
+
                 $image = UPLOAD_SITE_URL . $brand['brand_logo'];
                 $ret = getimagesize($image, $info);
                 if ($ret != false) {
@@ -64,7 +67,9 @@ class brand_helper
                 }
                 $brand_id = intval($brand['brand_id']);
                 $this->mCountries[$brand_id] = $brand['brand_country'];
+                Log::record($brand['$brand_id'] ."=>".$brand['brand_country'] ,Log::DEBUG);
             }
+
             $block = special_helper::format_grid_brands($brands);
             wcache("brandex", array("brands" => serialize($brands), "block" => serialize($block)), $prefix);
 

+ 1 - 1
mobile/control/brand.php

@@ -8,7 +8,7 @@ defined('InShopNC') or exit('Access Invalid!');
 
 require_once(BASE_ROOT_PATH . '/helper/brand_helper.php');
 
-class brandControl extends mobileHomeControl
+class 百randbrandControl extends mobileHomeControl
 {
     public function __construct() {
         parent::__construct();