|
|
@@ -25,11 +25,13 @@ class AdminController extends BaseController
|
|
|
public function actionList()
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
+ $where = [];
|
|
|
$where['merchantId'] = $this->merchantId;
|
|
|
+ $where['delStatus'] = 0;
|
|
|
$list = AdminService::getAdminList($where);
|
|
|
util::success($list);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//添加员工 shish 2019.12.8
|
|
|
public function actionAdd()
|
|
|
{
|
|
|
@@ -44,7 +46,7 @@ class AdminController extends BaseController
|
|
|
//删除员工 shish 2019.12.9
|
|
|
public function actionDelete()
|
|
|
{
|
|
|
- $id = Yii::$app->request->get('id');
|
|
|
+ $id = Yii::$app->request->post('id');
|
|
|
$admin = AdminClass::getById($id);
|
|
|
AdminService::valid($admin, $this->merchantId);
|
|
|
AdminService::deleteAdmin($admin, $this->adminId);
|