ecshop 调用其他数据库中的商品

  ecshop中修改includes/cls_ecshop.php中第53行

   function table($str)
    {
        /*
        if($str=='goods'){
            return '`ecshop3' . '`.`' . $this->prefix . $str . '`';
        }
        else{
            return '`' . $this->db_name . '`.`' . $this->prefix . $str . '`';
        }
        */
        return '`' . $this->db_name . '`.`' . $this->prefix . $str . '`';
    }

 

posted @ 2014-08-27 17:10  龙昊雪  阅读(303)  评论(0编辑  收藏  举报