CustomerPondService.php 827 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace App\Service;
  3. use App\Model\Customer;
  4. use App\Model\Setting;
  5. class CustomerPondService extends Service
  6. {
  7. protected $rule;
  8. public function updateCustomerPond(){
  9. $customerModel = new Customer();
  10. $customerList = $customerModel->where('pond_state',0)->where('del_time',0)->first();
  11. $this->rule = Setting::where('setting_name','customer_pond_limit_time')->value('setting_value');
  12. foreach ($customerList as $v){
  13. if($this->customerPondRule($v)){
  14. }
  15. }
  16. }
  17. //
  18. public function customerPondRule($customer){
  19. if($this->finishRule($customer)){
  20. }
  21. // if()
  22. }
  23. //关于客户的进入公海池流程(后续再出)
  24. public function finishRule(){
  25. $time = $this->rule;
  26. return true;
  27. }
  28. }