testpush.php 499 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: zry
  5. * Date: 2016/5/9
  6. * Time: 12:55
  7. */
  8. defined('InShopNC') or exit('Access Invalid!');
  9. ini_set('default_socket_timeout', -1);
  10. class testpushControl extends BaseCronControl
  11. {
  12. public function indexOp() {
  13. if (ob_get_level()) ob_end_clean();
  14. $param = array(
  15. 'member_id'=>'36489',
  16. 'text' =>'Helloworld',
  17. 'go_type' =>'bonus',
  18. );
  19. QueueClient::push('upushSendMsg',$param);
  20. }
  21. }