Przeglądaj źródła

会员升级取消网络限制

kevin_zhangl 1 rok temu
rodzic
commit
e55b8164a6

+ 1 - 1
common/models/forms/ApproachDeclarationUpgradeForm.php

@@ -418,7 +418,7 @@ class ApproachDeclarationUpgradeForm extends Model
             return false;
         } else {
             // 判断报单中心是否在新加入会员的安置网上级中
-            $this->loopFindParentToNetwork($this->insertUserName);
+//            $this->loopFindParentToNetwork($this->insertUserName);
             //反转数组,in_array搜索错误
             //in_array($this->decUserName, $this->_tempNetworkParentUser[$this->insertUserName]);
 //            $flipParent = array_flip(array_filter($this->_tempNetworkParentUser[$this->insertUserName]));

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

@@ -444,15 +444,15 @@ class DeclarationUpgradeForm extends Model
             return false;
         } else {
             // 判断报单中心是否在新加入会员的安置网上级中
-            $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 . '的安置网上级中');
-                $this->addError($attribute, 'by' . $this->insertUserName . 'Upgrade declaration, Stockist' . $this->decUserName . 'be not in' . $this->insertUserName . 'Online level of resettlement');
-                return ;
-            }
+//            $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 . '的安置网上级中');
+//                $this->addError($attribute, 'by' . $this->insertUserName . 'Upgrade declaration, Stockist' . $this->decUserName . 'be not in' . $this->insertUserName . 'Online level of resettlement');
+//                return ;
+//            }
             $this->_decId = $decUser['ID'];
         }
     }