|
|
@@ -310,6 +310,11 @@ class ProductController extends BaseController
|
|
|
//批量修改更多,包括排序、重量和保质期 shish 20211211
|
|
|
public function actionBatchChangeMore()
|
|
|
{
|
|
|
+ $shopAdmin = $this->shopAdmin;
|
|
|
+ if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
|
|
|
+ util::fail('超管才能操作');
|
|
|
+ }
|
|
|
+
|
|
|
$addData = Yii::$app->request->post('addData', '');
|
|
|
if (empty($addData)) {
|
|
|
util::fail('没有花材');
|
|
|
@@ -338,6 +343,11 @@ class ProductController extends BaseController
|
|
|
//批量修改加价 shish 20211211
|
|
|
public function actionBatchChangeAddPrice()
|
|
|
{
|
|
|
+ $shopAdmin = $this->shopAdmin;
|
|
|
+ if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
|
|
|
+ util::fail('超管才能操作');
|
|
|
+ }
|
|
|
+
|
|
|
$addData = Yii::$app->request->post('addData', '');
|
|
|
if (empty($addData)) {
|
|
|
util::fail('没有花材');
|