页面一直在刷新

浏览:1180 发布日期:2015/05/12 分类:求助交流
用微信做了个判断数据库是否有微信OPENID存在后,就出现了页面一直在刷新,这是什么情况!JS没使用setInterval()function ci1($url){
        
        
        $tempUrl = C('url').$url."&admin_id=".$_GET['admin_id']."&customer_id=".$_GET['customer_id'];
        if (!isset($_GET['code'])){
            $url = createOauthUrlForCode($tempUrl);
            Header("Location: $url"); 
        }else
        {
            $openid = getOpenId($_GET['code'],$tempUrl);
            $dbbuyer = M('buyer');
            $buyerwhre['buyer_WXID'] = $openid;
            $buyer = $dbbuyer->where($buyerwhre)->find();
            //print_r($openid);
            if($buyer == NULL){
                header('Location: http://mp.weixin.qq.com/s?__biz=MzA4NzA5OTk4MQ==&mid=201546728&idx=1&sn=e6306bf03ef64ce659601accf277247d#rd/');
                
            }
            return $buyer;
            
        }
    }
public function allshop(){
         $buyer =ci1('app.php?c=show&a=allshop');
最佳答案
评论( 相关
后面还有条评论,点击查看>>