Преглед изворни кода

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

kevin_zhangl пре 2 година
родитељ
комит
82a7b86b48
1 измењених фајлова са 5 додато и 5 уклоњено
  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'];
         }
     }