From 7c861eae96dcd676393e424a75d6410127a1885f Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Tue, 26 Mar 2024 22:33:54 +0800 Subject: [PATCH] 1 --- app/api/service/Identity.php | 8 ++++---- app/api/service/identity/Payment.php | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/api/service/Identity.php b/app/api/service/Identity.php index d11b56e5..318530d6 100644 --- a/app/api/service/Identity.php +++ b/app/api/service/Identity.php @@ -58,10 +58,10 @@ class Identity extends BaseService { // 当期用户信息 $userInfo = UserService::getCurrentLoginUser(true); - //是否分销商 - if (UserService::isDealerMember() || UserService::isStore()) { - throwError('非法操作'); - } +// //是否分销商 +// if (UserService::isDealerMember() || UserService::isStore()) { +// throwError('非法操作'); +// } // 获取充值方案列表 $model = new \app\api\model\user\Identity(); $planList = $model->getList(['type' => IdentityEnum::MEMBER]); diff --git a/app/api/service/identity/Payment.php b/app/api/service/identity/Payment.php index c55255d6..4c7d8f1f 100644 --- a/app/api/service/identity/Payment.php +++ b/app/api/service/identity/Payment.php @@ -159,6 +159,10 @@ class Payment extends BaseService if ($info->isEmpty()) { throwError('记录不存在'); } + //店主不可操作 + if (UserService::isStore()) { + throwError('非法操作'); + } if (UserService::isDealerMember() && $info['type'] != IdentityEnum::DEALER) { throwError('非法操作'); }