소스 검색

Merge branch 'order' into test

zqwang 1 년 전
부모
커밋
852cccf86b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      modules/OrderRefund/Http/Controllers/RefundOrderController.php

+ 2 - 2
modules/OrderRefund/Http/Controllers/RefundOrderController.php

@@ -73,7 +73,7 @@ class RefundOrderController extends CatchController
      */
     public function platformVerify(RefundVerIiyRequest $request){
         $userContext = $this->getUserContext(null);
-        if (!$userContext['loginUserRoles']->contains('administrator')) {
+        if (!($userContext['loginUserRoles']->contains('administrator')  || $userContext['loginUserRoles']->contains('financer'))) {
             throw  new  FailedException("没有操作权限");
         }
         $param = [
@@ -127,7 +127,7 @@ class RefundOrderController extends CatchController
             throw  new FailedException("退款申请单号不能为空");
         }
         $userContext = $this->getUserContext(null);
-        if (!$userContext['loginUserRoles']->contains('administrator')) {
+        if (!($userContext['loginUserRoles']->contains('administrator')  || $userContext['loginUserRoles']->contains('financer'))) {
             throw  new  FailedException("没有操作权限");
         }
         $option = [