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.
 
 
 
 
 

30 lines
823 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. $arr=array('openid'=>$openId);
  11. echo $_GET['jsoncallback'] . "(".json_encode($arr).")";
  12. //echo $state;
  13. /* switch($state){
  14. case 1:
  15. $url=$host.'/core/ORDER_LIST1.ASP?openid='.$openId;
  16. break;
  17. case 2:
  18. $url=$host.'/core/ORDER_DETAIL1.ASP?openid='.$openId;
  19. break;
  20. case 3:
  21. //echo 111;
  22. $url=$host.'/core/CUSTOMER_LIST1.ASP?openid='.$openId;
  23. //$url='/core/CUSTOMER_LIST1.ASP?openid='.$openId;
  24. break;
  25. case 4:
  26. $url=$host.'/core/CUSTOMER_EDIT1.ASP?openid='.$openId;
  27. break;
  28. }
  29. Header("Location: $url"); */
  30. //$responses=http_request($url);