ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
文件路径:shop/controllers/Seller/Shop/BrandCtl.php 一、品牌申请 控制器:shop/controllers/Seller/Shop/BrandCtl.php 模型:shop/models/shop/BrandModel.php 视图:shop/views/default/Seller/Shop/BrandCtl/Brand.php 1.品牌列表: `$data = $this->goodsBrandModel->getBrandCatlist($cond_row, array(), $page, $rows);` 2.添加品牌 方法:addBrandInfo()、addBrandrow() 视图:shop/views/default/Seller/Shop/BrandCtl/addBrandInfo.php 模型:shop/models/shop/BrandModel.php `$flag = $this->goodsBrandModel->addBrand($data);` 3.编辑品牌 方法:editBrandInfo()、editBrandrow() 视图:shop/views/default/Seller/Shop/BrandCtl/editBrandInfo.php 对应品牌信息:`$catlist = $Goods_CatModel->getOne($brand_info['cat_id']);` 编辑: ~~~ if ($brand_list['shop_id'] == $shop_id) { $flag = $this->goodsBrandModel->editBrand($brand_id, $brand, false); } ~~~