Authored by 郝肖肖

type 类型转数字

@@ -169,7 +169,7 @@ class BrandsModel @@ -169,7 +169,7 @@ class BrandsModel
169 $result['brandAbout'] = isset($brandInfo['data']['brand_intro']) ? $brandInfo['data']['brand_intro'] : ''; 169 $result['brandAbout'] = isset($brandInfo['data']['brand_intro']) ? $brandInfo['data']['brand_intro'] : '';
170 $result['shopTemplateType'] = isset($brandInfo['data']['shop_template_type']) ? 170 $result['shopTemplateType'] = isset($brandInfo['data']['shop_template_type']) ?
171 intval($brandInfo['data']['shop_template_type']) : ''; 171 intval($brandInfo['data']['shop_template_type']) : '';
172 - $result['type'] = isset($brandInfo['data']['type']) ? $brandInfo['data']['type'] : 0; 172 + $result['type'] = isset($brandInfo['data']['type']) ? $brandInfo['data']['type'] * 1 : 0;
173 $result['shopId'] = isset($brandInfo['data']['shop_id']) ? $brandInfo['data']['shop_id'] : ''; 173 $result['shopId'] = isset($brandInfo['data']['shop_id']) ? $brandInfo['data']['shop_id'] : '';
174 } 174 }
175 else { 175 else {