国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

php - 微信公眾號(hào) 微信支付跳轉(zhuǎn)空白
黃舟
黃舟 2017-04-10 17:02:13
0
1
1125

微信公眾號(hào)微信支付 微信失敗
例如域名 t.test.com
微信平臺(tái) 開(kāi)發(fā)配置 已添加 http://t.test.com/demo-start
出現(xiàn)這種情況
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx80345365a77308c5&redirect_uri=http://t.test.com/demo-start&response_type=code&scope=snsapi_base&state=STATE&connect_redirect=1#wechat_redirect

出現(xiàn)頁(yè)面空白 導(dǎo)致無(wú)法調(diào)試
有遇到同樣問(wèn)題的大俠嗎?在此謝謝了

黃舟
黃舟

人生最曼妙的風(fēng)景,竟是內(nèi)心的淡定與從容!

reply all(1)
洪濤

你是要外部啟動(dòng)微信嗎?
js呼醒微信例子
https://wifi.weixin.qq.com/operator/demoNew.xhtml
或者你貼出url我?guī)湍阏{(diào)試 問(wèn)題表達(dá)不清楚

<script type="text/javascript">
        /**
         * 微信連Wi-Fi協(xié)議3.1供運(yùn)營(yíng)商portal呼起微信瀏覽器使用
         */
        var loadIframe = null;
        var noResponse = null;
        var callUpTimestamp = 0;
         
        function putNoResponse(ev){
             clearTimeout(noResponse);
        }    
        
         function errorJump()
         {
             var now = new Date().getTime();
             if((now - callUpTimestamp) > 4*1000){
                 return;
             }
             alert('該瀏覽器不支持自動(dòng)跳轉(zhuǎn)微信請(qǐng)手動(dòng)打開(kāi)微信\n如果已跳轉(zhuǎn)請(qǐng)忽略此提示');
         }
         
         myHandler = function(error) {
             errorJump();
         };
         
         function createIframe(){
             var iframe = document.createElement("iframe");
             iframe.style.cssText = "display:none;width:0px;height:0px;";
             document.body.appendChild(iframe);
             loadIframe = iframe;
         }
        //注冊(cè)回調(diào)函數(shù)
        function jsonpCallback(result){  
            if(result && result.success){
                alert('WeChat will call up : ' + result.success + '  data:' + result.data);                
                var ua=navigator.userAgent;              
                if (ua.indexOf("iPhone") != -1 ||ua.indexOf("iPod")!=-1||ua.indexOf("iPad") != -1) {   //iPhone             
                    document.location = result.data;
                }else{
                    
                    if('false'=='true'){
                        alert('[強(qiáng)制]該瀏覽器不支持自動(dòng)跳轉(zhuǎn)微信請(qǐng)手動(dòng)打開(kāi)微信\n如果已跳轉(zhuǎn)請(qǐng)忽略此提示');
                        return;
                    }
                    
                    createIframe();
                    callUpTimestamp = new Date().getTime();
                    loadIframe.src=result.data;
                    noResponse = setTimeout(function(){
                        errorJump();
                      },3000);
                }                
            }else if(result && !result.success){
                alert(result.data);
            }
        }
        
        function Wechat_GotoRedirect(appId, extend, timestamp, sign, shopId, authUrl, mac, ssid, bssid){
            
            //將回調(diào)函數(shù)名稱(chēng)帶到服務(wù)器端
            var url = "https://wifi.weixin.qq.com/operator/callWechatBrowser.xhtml?appId=" + appId 
                                                                                + "&extend=" + extend 
                                                                                + "&timestamp=" + timestamp 
                                                                                + "&sign=" + sign;    
            
            //如果sign后面的參數(shù)有值,則是新3.1發(fā)起的流程
            if(authUrl && shopId){
                
                
                url = "https://wifi.weixin.qq.com/operator/callWechat.xhtml?appId=" + appId 
                                                                                + "&extend=" + extend 
                                                                                + "&timestamp=" + timestamp 
                                                                                + "&sign=" + sign
                                                                                + "&shopId=" + shopId
                                                                                + "&authUrl=" + encodeURIComponent(authUrl)
                                                                                + "&mac=" + mac
                                                                                + "&ssid=" + ssid
                                                                                + "&bssid=" + bssid;
                
            }            
            
            //通過(guò)dom操作創(chuàng)建script節(jié)點(diǎn)實(shí)現(xiàn)異步請(qǐng)求  
            var script = document.createElement('script');  
            script.setAttribute('src', url);  
            document.getElementsByTagName('head')[0].appendChild(script);
        }
    </script>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template