|
@@ -3,6 +3,7 @@
|
|
|
namespace app\admin\controller\widget;
|
|
namespace app\admin\controller\widget;
|
|
|
|
|
|
|
|
use app\admin\controller\AuthController;
|
|
use app\admin\controller\AuthController;
|
|
|
|
|
+use app\admin\controller\store\StoreProduct;
|
|
|
use think\facade\Route as Url;
|
|
use think\facade\Route as Url;
|
|
|
use app\admin\model\system\{
|
|
use app\admin\model\system\{
|
|
|
SystemAttachment as SystemAttachmentModel, SystemAttachmentCategory as Category
|
|
SystemAttachment as SystemAttachmentModel, SystemAttachmentCategory as Category
|
|
@@ -27,8 +28,16 @@ class Images extends AuthController
|
|
|
if ($pid === NULL) {
|
|
if ($pid === NULL) {
|
|
|
$pid = session('pid') ? session('pid') : 0;
|
|
$pid = session('pid') ? session('pid') : 0;
|
|
|
}
|
|
}
|
|
|
|
|
+ $productId = request()->param('productId');
|
|
|
session('pid', $pid);
|
|
session('pid', $pid);
|
|
|
$this->assign('pid', $pid);
|
|
$this->assign('pid', $pid);
|
|
|
|
|
+
|
|
|
|
|
+ if ($productId) {
|
|
|
|
|
+ $res = SystemAttachmentModel::getPidByProductId($productId);
|
|
|
|
|
+ $this->assign('pid', $res['pid']);
|
|
|
|
|
+ $this->assign('ppid', $res['ppid']);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//// //TODO 分类标题
|
|
//// //TODO 分类标题
|
|
|
// $typearray = Category::getAll();
|
|
// $typearray = Category::getAll();
|
|
|
// $this->assign(compact('typearray'));
|
|
// $this->assign(compact('typearray'));
|