wanghousheng 8 months ago
parent 702634b7fb
commit 7c861eae96
  1. 8
      app/api/service/Identity.php
  2. 4
      app/api/service/identity/Payment.php

@ -58,10 +58,10 @@ class Identity extends BaseService
{ {
// 当期用户信息 // 当期用户信息
$userInfo = UserService::getCurrentLoginUser(true); $userInfo = UserService::getCurrentLoginUser(true);
//是否分销商 // //是否分销商
if (UserService::isDealerMember() || UserService::isStore()) { // if (UserService::isDealerMember() || UserService::isStore()) {
throwError('非法操作'); // throwError('非法操作');
} // }
// 获取充值方案列表 // 获取充值方案列表
$model = new \app\api\model\user\Identity(); $model = new \app\api\model\user\Identity();
$planList = $model->getList(['type' => IdentityEnum::MEMBER]); $planList = $model->getList(['type' => IdentityEnum::MEMBER]);

@ -159,6 +159,10 @@ class Payment extends BaseService
if ($info->isEmpty()) { if ($info->isEmpty()) {
throwError('记录不存在'); throwError('记录不存在');
} }
//店主不可操作
if (UserService::isStore()) {
throwError('非法操作');
}
if (UserService::isDealerMember() && $info['type'] != IdentityEnum::DEALER) { if (UserService::isDealerMember() && $info['type'] != IdentityEnum::DEALER) {
throwError('非法操作'); throwError('非法操作');
} }

Loading…
Cancel
Save