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('非法操作'); }