CustomerPondService.php 873 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. return true;
  21. }
  22. return false;
  23. // if()
  24. }
  25. //关于客户的进入公海池流程(后续再出)
  26. public function finishRule(){
  27. $time = $this->rule;
  28. return true;
  29. }
  30. }