Kaynağa Gözat

Merge branch 'order' into test

zqwang 1 yıl önce
ebeveyn
işleme
852cccf86b

+ 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 = [