|
|
@@ -3,16 +3,12 @@
|
|
|
namespace ghs\controllers;
|
|
|
|
|
|
use bizHd\wx\classes\WxOpenClass;
|
|
|
-use bizGhs\admin\classes\AdminClass;
|
|
|
use bizGhs\shop\classes\ShopAdminClass;
|
|
|
use bizGhs\admin\services\AdminRoleService;
|
|
|
use bizGhs\shop\services\ShopAdminService;
|
|
|
-use bizHd\wx\services\WxOpenService;
|
|
|
use common\components\imgUtil;
|
|
|
-use common\components\jwt;
|
|
|
use common\components\util;
|
|
|
use Yii;
|
|
|
-use yii\web\Controller;
|
|
|
|
|
|
class ShopAdminController extends BaseController
|
|
|
{
|
|
|
@@ -57,7 +53,7 @@ class ShopAdminController extends BaseController
|
|
|
if (empty($relation)) {
|
|
|
util::fail('没有找到员工');
|
|
|
}
|
|
|
- ShopAdminClass::valid($relation->attributes, $this->sjId);
|
|
|
+ ShopAdminClass::valid($relation->attributes, $this->shopId);
|
|
|
$relation->remind = $remind;
|
|
|
$relation->save();
|
|
|
util::complete();
|
|
|
@@ -73,7 +69,7 @@ class ShopAdminController extends BaseController
|
|
|
if (empty($relation)) {
|
|
|
util::fail('没有找到员工');
|
|
|
}
|
|
|
- ShopAdminClass::valid($relation->attributes, $this->sjId);
|
|
|
+ ShopAdminClass::valid($relation->attributes, $this->shopId);
|
|
|
$relation->status = $status;
|
|
|
$relation->save();
|
|
|
util::complete();
|
|
|
@@ -131,7 +127,7 @@ class ShopAdminController extends BaseController
|
|
|
if ($relation['super'] == 1) {
|
|
|
//util::fail("管理员不能删除");
|
|
|
}
|
|
|
- ShopAdminClass::valid($relation, $this->sjId);
|
|
|
+ ShopAdminClass::valid($relation, $this->shopId);
|
|
|
ShopAdminClass::delRelation($relation);
|
|
|
util::complete();
|
|
|
}
|