|
|
@@ -49,6 +49,7 @@ class StoreProduct extends AuthController
|
|
|
$mer_id = SystemAdmin::where('id',$admin_id)->value('mer_id');
|
|
|
//获取分类
|
|
|
$this->assign('cate', CategoryModel::getTierList(null, 1));
|
|
|
+
|
|
|
if ($mer_id>0){
|
|
|
//出售中产品
|
|
|
$onsale = ProductModel::where('is_del', 0)->where('is_show', 1)->where('mer_id', $mer_id)->count();
|
|
|
@@ -86,6 +87,8 @@ class StoreProduct extends AuthController
|
|
|
@file_put_contents('quanju.txt', json_encode($adminInfo)."-管理员信息\r\n", 8);
|
|
|
|
|
|
$mer_id = $adminInfo['mer_id'];
|
|
|
+ $this->assign('mer_id', $mer_id); // 传递 mer_id
|
|
|
+
|
|
|
$this->assign(compact('type', 'onsale', 'forsale', 'warehouse', 'outofstock', 'policeforce', 'recycle','mer_id'));
|
|
|
return $this->fetch();
|
|
|
}
|