Procházet zdrojové kódy

会员端:升级单功能取消会员必须是当前报单中心下级的限制

kevin_zhangl před 2 roky
rodič
revize
82a7b86b48
1 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. 5 5
      common/models/forms/DeclarationUpgradeForm.php

+ 5 - 5
common/models/forms/DeclarationUpgradeForm.php

@@ -373,11 +373,11 @@ class DeclarationUpgradeForm extends Model
             $this->loopFindParentToNetwork($this->insertUserName);
             //反转数组,in_array搜索错误
             //in_array($this->decUserName, $this->_tempNetworkParentUser[$this->insertUserName]);
-            $flipParent = array_flip(array_filter($this->_tempNetworkParentUser[$this->insertUserName]));
-            if (!isset($flipParent[$this->decUserName])) {
-                $this->addError($attribute, '为' . $this->insertUserName . '升级报单,报单中心' . $this->decUserName . '不在' . $this->insertUserName . '的安置网上级中');
-                return ;
-            }
+//            $flipParent = array_flip(array_filter($this->_tempNetworkParentUser[$this->insertUserName]));
+//            if (!isset($flipParent[$this->decUserName])) {
+//                $this->addError($attribute, '为' . $this->insertUserName . '升级报单,报单中心' . $this->decUserName . '不在' . $this->insertUserName . '的安置网上级中');
+//                return ;
+//            }
             $this->_decId = $decUser['ID'];
         }
     }