|
|
@@ -5,18 +5,11 @@ namespace bizGhs\shop\services;
|
|
|
use bizGhs\admin\classes\AdminClass;
|
|
|
use bizGhs\admin\classes\AdminRoleClass;
|
|
|
use bizGhs\shop\classes\ShopAdminClass;
|
|
|
-use bizGhs\auth\services\AuthService;
|
|
|
use bizHd\base\services\BaseService;
|
|
|
use bizGhs\merchant\classes\ShopClass;
|
|
|
-use bizGhs\merchant\services\MerchantService;
|
|
|
-use bizGhs\user\services\UserService;
|
|
|
-use common\components\error;
|
|
|
use common\components\imgUtil;
|
|
|
use common\components\miniUtil;
|
|
|
-use common\components\stringUtil;
|
|
|
use common\components\util;
|
|
|
-use common\components\wxUtil;
|
|
|
-use common\services\xhTMessageService;
|
|
|
use Yii;
|
|
|
|
|
|
class ShopAdminService extends BaseService
|
|
|
@@ -24,7 +17,7 @@ class ShopAdminService extends BaseService
|
|
|
|
|
|
public static $baseFile = '\bizGhs\shop\classes\ShopAdminClass';
|
|
|
|
|
|
- ///创建管理员生成小程序 ssh 2020.4.17
|
|
|
+ //创建管理员生成小程序 ssh 2020.4.17
|
|
|
public static function prepareBindAdmin($data)
|
|
|
{
|
|
|
$merchant = $data['merchant'];
|
|
|
@@ -39,6 +32,7 @@ class ShopAdminService extends BaseService
|
|
|
return ['miniCode' => $imgUrl];
|
|
|
}
|
|
|
|
|
|
+ //创建员工 shish 2021.5.9
|
|
|
public static function generateAdmin($data)
|
|
|
{
|
|
|
$recommendAdminId = $data['recommendAdminId'] ?? 0;
|
|
|
@@ -115,7 +109,6 @@ class ShopAdminService extends BaseService
|
|
|
}
|
|
|
|
|
|
//获取管理员 ssh 2020.4.21
|
|
|
- // $sensitive true 密码等敏感信息不显示
|
|
|
public static function getAdminList($where, $sensitive = true)
|
|
|
{
|
|
|
$data = ShopAdminClass::getList('*', $where, 'addTime DESC');
|
|
|
@@ -145,7 +138,7 @@ class ShopAdminService extends BaseService
|
|
|
public static function getNoticeAdminList($shopId)
|
|
|
{
|
|
|
$where = ['shopId' => $shopId];
|
|
|
- $respond = self::getAdminList($where, false);
|
|
|
+ $respond = self::getAdminList($where);
|
|
|
$list = isset($respond['list']) ? $respond['list'] : [];
|
|
|
if (!empty($list)) {
|
|
|
foreach ($list as $key => $val) {
|