|
|
@@ -35,6 +35,11 @@ class CustomLevelController extends BaseController
|
|
|
//添加修改等级 shish 20211016
|
|
|
public function actionReplace()
|
|
|
{
|
|
|
+ $shopAdmin = $this->shopAdmin;
|
|
|
+ if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
|
|
|
+ util::fail('管理员才能操作');
|
|
|
+ }
|
|
|
+
|
|
|
$post = Yii::$app->request->post();
|
|
|
$info = CustomLevelClass::getByCondition(['shopId' => $this->shopId], true);
|
|
|
if (empty($info)) {
|