You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
605 B

  1. <?php
  2. //更新添加司机未报帐消息
  3. function httpRequest($url,$data=null){
  4. $ch=curl_init();
  5. curl_setopt($ch, CURLOPT_URL, $url);
  6. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  7. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
  8. if (!empty($data)){
  9. curl_setopt($ch, CURLOPT_POST, 1);
  10. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  11. }
  12. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  13. $output=curl_exec($ch);
  14. curl_close($ch);
  15. return $output;
  16. }
  17. require_once __DIR__.'/../domain.php';
  18. httpRequest("http://". CS1_DOMAIN. "/api/timing/send-finance-msg");
  19. ?>