|
|
@ -15,12 +15,10 @@ $(function(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
window.getOpenId = function(cb){
|
|
|
|
window.getOpenId = function(cb){
|
|
|
|
alert(g_openid);
|
|
|
|
|
|
|
|
if (g_openid.length>0){
|
|
|
|
if (g_openid.length>0){
|
|
|
|
cb(g_openid);
|
|
|
|
cb(g_openid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var code = getUrlParam("code");
|
|
|
|
var code = getUrlParam("code");
|
|
|
|
alert(code);
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
url: '/wechat/get_open_id?code='+code,
|
|
|
|
url: '/wechat/get_open_id?code='+code,
|
|
|
|
type: 'get',
|
|
|
|
type: 'get',
|
|
|
|