where('pond_state',0)->where('del_time',0)->first(); $this->rule = Setting::where('setting_name','customer_pond_limit_time')->value('setting_value'); foreach ($customerList as $v){ if($this->customerPondRule($v)){ } } } // public function customerPondRule($customer){ if($this->finishRule($customer)){ return true; } return false; // if() } //关于客户的进入公海池流程(后续再出) public function finishRule(){ $time = $this->rule; return true; } }