微信公众号微信支付 微信失败
例如域名 t.test.com
微信平台 开发配置 已添加 http://t.test.com/demo-start
出现这种情况
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
出现页面空白 导致无法调试
有遇到同样问题的大侠吗?在此谢谢了
JEEWX-API 是一款JAVA版的微信开发SDK,支持微信公众号、小程序、微信企业号、支付宝生活号SDK和微博SDK。你可以基于她,快速的傻瓜化的进行微信开发、支付窗和微博开发。 基于jeewx-api开发,可以立即拥有简单易用的API,让开发更加轻松自如,节省更多时间。
0
微信公众号微信支付 微信失败
例如域名 t.test.com
微信平台 开发配置 已添加 http://t.test.com/demo-start
出现这种情况
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
出现页面空白 导致无法调试
有遇到同样问题的大侠吗?在此谢谢了
你是要外部启动微信吗?
js呼醒微信例子
https://wifi.weixin.qq.com/operator/demoNew.xhtml
或者你贴出url我帮你调试 问题表达不清楚
<code><script type="text/javascript">
/**
* 微信连Wi-Fi协议3.1供运营商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('该浏览器不支持自动跳转微信请手动打开微信\n如果已跳转请忽略此提示');
}
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;
}
//注册回调函数
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('[强制]该浏览器不支持自动跳转微信请手动打开微信\n如果已跳转请忽略此提示');
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){
//将回调函数名称带到服务器端
var url = "https://wifi.weixin.qq.com/operator/callWechatBrowser.xhtml?appId=" + appId
+ "&extend=" + extend
+ "×tamp=" + timestamp
+ "&sign=" + sign;
//如果sign后面的参数有值,则是新3.1发起的流程
if(authUrl && shopId){
url = "https://wifi.weixin.qq.com/operator/callWechat.xhtml?appId=" + appId
+ "&extend=" + extend
+ "×tamp=" + timestamp
+ "&sign=" + sign
+ "&shopId=" + shopId
+ "&authUrl=" + encodeURIComponent(authUrl)
+ "&mac=" + mac
+ "&ssid=" + ssid
+ "&bssid=" + bssid;
}
//通过dom操作创建script节点实现异步请求
var script = document.createElement('script');
script.setAttribute('src', url);
document.getElementsByTagName('head')[0].appendChild(script);
}
</script>
</code>
微信是一款手机通信软件,支持通过手机网络发送语音短信、视频、图片和文字。微信可以单聊及群聊,还能根据地理位置找到附近的人,带给大家全新的移动沟通体验,有需要的小伙伴快来保存下载体验吧!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号