| 12345678910111213141516171819202122232425262728293031323334353637 | <?phpnamespace App\Service;use App\Model\Customer;use App\Model\Setting;class CustomerPondService extends Service{    protected $rule;    public function updateCustomerPond(){        $customerModel = new Customer();        $customerList = $customerModel->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)){        }//        if()    }    //关于客户的进入公海池流程(后续再出)    public function finishRule(){        $time = $this->rule;        return true;    }}
 |