Bläddra i källkod

Merge branch 'order' into test

zqwang 1 år sedan
förälder
incheckning
852cccf86b
1 ändrade filer med 2 tillägg och 2 borttagningar
  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 = [