application/admin/controller/ShopProduct.php
(开头部分) 75KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* 易优CMS
* ============================================================================
* 版权所有 2016-2028 海南赞赞网络科技有限公司,并保留所有权利。
* 网站地址: http://www.eyoucms.com
* ----------------------------------------------------------------------------
* 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.
* ============================================================================
* Author: 易而优团队 by 小虎哥 <1105415366@qq.com>
* Date: 2018-4-3
*/
namespace app\admin\controller;
use think\Page;
use think\Db;
use app\common\logic\ArctypeLogic;
use app\admin\logic\ProductLogic;
use app\admin\logic\ProductSpecLogic; // 用于商品规格逻辑功能处理
class ShopProduct extends Base
{
// 模型标识
public $nid = 'product';
// 模型ID
public $channeltype = '';
// 表单类型
public $attrInputTypeArr = array();
public function _initialize()
{
parent::_initialize();
if (!preg_match('/^attrlist_/i', ACTION_NAME) && !preg_match('/^attribute_/i', ACTION_NAME)) {
$this->language_access(); // 多语言功能操作权限
}
$channeltype_list = config('global.channeltype_list');
$this->channeltype = $channeltype_list[$this->nid];
empty($this->channeltype) && $this->channeltype = 2;
$this->attrInputTypeArr = config('global.attr_input_type_arr');
$this->assign('nid', $this->nid);
$this->assign('channeltype', $this->channeltype);
// 商城产品参数表
$this->shop_product_attrlist_db = Db::name('shop_product_attrlist');
// // 产品属性表
// $this->product_attrlist_db = Db::name('product_attrlist');
// // 产品规格表
// $this->product_spec_preset_db = Db::name('product_spec_preset');
// // 产品规格值表
// $this->product_spec_value_db = Db::name('product_spec_value');
// // 规格名称模型层
// $this->ProductSpecPresetModel = model('ProductSpecPreset');
// // 规格值模型层
// $this->ProductSpecValueModel = model('ProductSpecValue');
// 规格业务层
后面还有 1646 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
