123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- /*
- * 商品的类
- */
- namespace app\home\controller;
- /**
- * ============================================================================
- * DSMall多用户商城
- * ============================================================================
- * 版权所有 2014-2028 长沙德尚网络科技有限公司,并保留所有权利。
- * 网站地址: http://www.csdeshang.com
- * ----------------------------------------------------------------------------
- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用 .
- * 不允许对程序代码以任何形式任何目的的再发布。
- * ============================================================================
- * 控制器
- */
- class BaseGoods extends BaseStore {
- protected $store_info;
- public function initialize() {
- parent::initialize();
- //输出会员信息
- $this->getMemberAndGradeInfo(false);
- }
-
- protected function getStoreInfo($store_id, $goods_info = null) {
- $store_model = model('store');
- $store_info = $store_model->getStoreOnlineInfoByID($store_id);
- if (empty($store_info)) {
- $this->error(lang('ds_store_close'));
- }
- if (cookie('dregion')) {
- $store_info['deliver_region'] = cookie('dregion');
- }
- if (strpos($store_info['deliver_region'], '|')) {
- $store_info['deliver_region'] = explode('|', $store_info['deliver_region']);
- $store_info['deliver_region_ids'] = explode(' ', $store_info['deliver_region'][0]);
- $store_info['deliver_region_names'] = explode(' ', $store_info['deliver_region'][1]);
- }
- $storejoinin_model=model('storejoinin');
- if(!$store_info['is_platform_store']){
- $storejoinin_info=$storejoinin_model->getOneStorejoinin(array('member_id'=>$store_info['member_id']));
- //营业执照
- if($storejoinin_info){
- $store_info['business_licence_number_electronic']=($storejoinin_info['business_licence_number_electronic'] && $storejoinin_info['store_type']==0)?get_store_joinin_imageurl($storejoinin_info['business_licence_number_electronic']):'';
- }
- }
- $this->outputStoreInfo($store_info, $goods_info);
- }
- }
- ?>
|