Browse Source

debug cart pic

stanley-king 9 years ago
parent
commit
9e03fd300e
3 changed files with 5 additions and 3 deletions
  1. 2 1
      core/framework/function/goods.php
  2. 0 2
      mobile/control/control.php
  3. 3 0
      mobile/control/member_cart.php

+ 2 - 1
core/framework/function/goods.php

@@ -55,7 +55,8 @@ function thumb($goods = array(), $type = ''){
  * @param mixed $store_id 店铺ID 如果传入,则返回图片完整URL,如果为假,返回系统默认图
  * @return string
  */
-function cthumb($file, $type = '', $store_id = false) {
+function cthumb($file, $type = '', $store_id = false)
+{
     $type_array = explode(',_', ltrim(GOODS_IMAGES_EXT, '_'));
     if (!in_array($type, $type_array)) {
         $type = '240';

+ 0 - 2
mobile/control/control.php

@@ -23,7 +23,6 @@ class mobileControl
 	public function __construct() 
     {
         Language::read('mobile');
-
         //分页数处理
         $page = intval($_GET['page']);
         if($page > 0) {
@@ -61,7 +60,6 @@ class mobileMemberControl extends mobileControl
         $this->member_info = $model_member->getMemberInfoByID($mb_user_token_info['member_id']);
         $this->member_info['client_type'] = $mb_user_token_info['client_type'];
         if(empty($this->member_info)) {
-
             joutput_error('请登录', array('login' => '0'));
         } else {
             //读取卖家信息

+ 3 - 0
mobile/control/member_cart.php

@@ -50,6 +50,9 @@ class member_cartControl extends mobileMemberControl
             $cart_list[$key]['promotion_type'] = $promotion_type;
             $cart_list[$key]['promotion_price'] = $promotion_price;
             $cart_list[$key]['goods_image_url'] = cthumb($value['goods_image'], $value['store_id']);
+
+            Log::record("goods_image_url = " . $value['goods_image'],Log::DEBUG);
+
             $cart_list[$key]['goods_sum'] = ncPriceFormat($value['goods_price'] * $value['goods_num']);
             $sum += $cart_list[$key]['goods_sum'];
         }