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.
 
 
 
 
 

28 lines
711 B

  1. <?php
  2. require_once "./WxPay.JsApiPay.php";
  3. require_once "../Common/Function.php";
  4. $state=isset($_GET['state'])?$_GET['state']:'3';
  5. print_r($_GET);
  6. //①、获取用户openid
  7. $tools = new JsApiPay();
  8. $openId = $tools->GetOpenid($state);
  9. $host='http://'.$_SERVER['HTTP_HOST'];
  10. switch($state){
  11. case 1:
  12. $url=$host.'/core/ORDER_LIST1.ASP?openid='.$openId;
  13. break;
  14. case 2:
  15. $url=$host.'/core/ORDER_DETAIL1.ASP?openid='.$openId;
  16. break;
  17. case 3:
  18. //echo 111;
  19. $url='./Layer/customer_list1.php?openid='.$openId;
  20. //$url='/core/CUSTOMER_LIST1.ASP?openid='.$openId;
  21. break;
  22. case 4:
  23. $url=$host.'/core/CUSTOMER_EDIT1.ASP?openid='.$openId;
  24. break;
  25. }
  26. Header("Location: $url");
  27. //$responses=http_request($url);