25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
- require_once "./WxPay.JsApiPay.php";
- require_once "../Common/Function.php";
- $state=isset($_GET['state'])?$_GET['state']:'';
- //print_r($_GET);
- //①、获取用户openid
- $tools = new JsApiPay();
- $openId = $tools->GetOpenid($state);
- $host='http://'.$_SERVER['HTTP_HOST'];
- echo $openId;exit;
- //echo $state;
- switch($state){
- case 1:
- $url=$host.'/core/ORDER_LIST1.ASP?openid='.$openId;
- break;
- case 2:
- $url=$host.'/core/ORDER_DETAIL1.ASP?openid='.$openId;
- break;
- case 3:
- //echo 111;
- $url=$host.'/core/CUSTOMER_LIST1.ASP?openid='.$openId;
- //$url='/core/CUSTOMER_LIST1.ASP?openid='.$openId;
- break;
- case 4:
- $url=$host.'/core/CUSTOMER_EDIT1.ASP?openid='.$openId;
- break;
- }
- Header("Location: $url");
- //$responses=http_request($url);
|