25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
749 B

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