进入用户中心、购物车出错~!
2016-07-07 15:47 来源:www.chinab4c.com 作者:ecshop专家
"FROM " . $GLOBALS['ecs']->table('goods_activity') . " WHERE act_type = '" . GAT_SNATCH . "'" . " AND (is_finished = 1 OR (is_finished = 0 AND end_time <= '$now'))"; $res = $GLOBALS['db']->query($sql); while ($row = $GLOBALS['db']->fetchRow($res)) { $act_id = $row['act_id']; $result = get_snatch_result($act_id); if (isset($result['order_count']) && $result['order_count'] == 0 && $result['user_id'] == $user_id) { $prompt[] = array( 'text'=>sprintf($GLOBALS['_LANG']['your_snatch'],$row['goods_name'], $row['act_id']), 'add_time'=> $row['end_time'] ); } if (isset($auction['last_bid']) && $auction['last_bid']['bid_user'] == $user_id && $auction['order_count'] == 0) { $prompt[] = array( 'text' => sprintf($GLOBALS['_LANG']['your_auction'], $row['goods_name'], $row['act_id']), 'add_time' => $row['end_time'] ); } } /* 竞拍 */ $sql = "SELECT act_id, goods_name, end_time " . "FROM " . $GLOBALS['ecs']->table('goods_activity') . " WHERE act_type = '" . GAT_AUCTION . "'" . " AND (is_finished = 1 OR (is_finished = 0 AND end_time <= '$now'))"; $res = $GLOBALS['db']->query($sql); while ($row = $GLOBALS['db']->fetchRow($res)) { $act_id = $row['act_id']; $auction = auction_info($act_id); if (isset($auction['last_bid']) && $auction['last_bid']['bid_user'] == $user_id && $auction['order_count'] == 0) { $prompt[] = array( 'text' => sprintf($GLOBALS['_LANG']['your_auction'], $row['goods_name'], $row['act_id']), 'add_time' => $row['end_time'] ); } } /* 排序 */ $cmp = create_function('$a, $b', 'if($a["add_time"] == $b["add_time"]){return 0;};return $a["add_time"] < $b["add_time"] ? 1 : -1;'); usort($prompt, $cmp); /* 格式化时间 */ foreach ($prompt as $key => $val) { $prompt[$key]['formated_time'] = local_date($GLOBALS['_CFG']['time_format'], $val['add_time']); } return $prompt; } /** * 获取用户评论 * * @access public * @param int $user_id 用户id * @param int $page_size 列表最大数量 * @param int $start 列表起始页 * @return array */ function get_comment_list($user_id, $page_size, $start) { $sql = "SELECT c.*, g.goods_name AS cmt_name, r.content AS reply_content, r.add_time AS reply_time ". " FROM " . $GLOBALS['ecs']->table('comment') . " AS c ". " LEFT JOIN " . $GLOBALS['ecs']->table('comment') . " AS r ". " ON r.parent_id = c.comment_id AND r.parent_id > 0 ". " LEFT JOIN " . $GLOBALS['ecs']->table('goods') . " AS g ". " ON c.comment_type=0 AND c.id_value = g.goods_id ". " WHERE c.user_id='$user_id'"; $res = $GLOBALS['db']->SelectLimit($sql, $page_size, $start); $comments = array(); $to_article = array(); while ($row = $GLOBALS['db']->fetchRow($res)) { $row['formated_add_time'] = local_date($GLOBALS['_CFG']['time_format'], $row['add_time']); if ($row['reply_time']) { $row['formated_reply_time'] = local_date($GLOBALS['_CFG']['time_format'], $row['reply_time']); } if ($row['comment_type'] == 1) { $to_article[] = $row["id_value"]; } $comments[] = $row; } if ($to_article) { $sql = "SELECT article_id , title FROM " . $GLOBALS['ecs']->table('article') . " WHERE " . db_create_in($to_article, 'article_id'); $arr = $GLOBALS['db']->getAll($sql); $to_cmt_name = array(); foreach ($arr as $row) { $to_cmt_name[$row['article_id']] = $row['title']; } foreach ($comments as $key=>$row) { if ($row['comment_type'] == 1) { $comments[$key]['cmt_name'] = isset($to_cmt_name[$row['id_value']]) ? $to_cmt_name[$row['id_value']] : ''; } } } return $comments; } ?> Fatal error: Call to undefined function get_rank_info() in D:\enkjhost\liqiong\web\user.php on line 92 这是怎么回事啊,,请教如何解决???? |
回答:
将'includes/lib_clips.php'文件重新上传进行了覆盖,试试 |
不行啊 ,,这是怎么了,咋样解决啊 ?????????????????????????????????????????????? |
不行啊 ,,这是怎么了,咋样解决啊 ?????????????????????????????????????????????? |
不知道什么原因! |
求助,请斑竹和各位高手指点,如何解决????? |
求助,请斑竹和各位高手指点,如何解决????? |
woding 我顶,,,, 咋没有人来解决 |
woding 我顶,,,, 咋没有人来解决 |
版主都去哪里了,,这问题这么都没人解决啊, 现在程序也用不了,又没人解决,太失望了 哎,,还是人气不行啊 |
错误是无法调用方法get_rank_info() user.php 92行处 你仔细检查下 |
最近更新
常用插件
- ecshop二次商品订购人信息
ecshop二次商品订购人信息填写插件,有时候给朋友送花,或者是送礼品的...
- ecshop会员中心订单excel倒出
ecshop会员中心订单excel倒出...
- ecshop二次开发商品购买备
ecshop销售统计 插件介绍:ecshop二次开发订单销售统计和商品购买备注服...
- ecshop2.7.2退换货申请插件
ecshop2.7.2退换货申请插件,主要是在 ecshop 现在的基础上,对ecshop的订单处...
- ecshop注册推荐送现金插件
ecshop中的促销售功能还不是很完善,随着电子商务系统的发展和进步,...
ecshop热门问答
ecshop热门资料
ecshop死链
ecshop迁移
ecshop图片格式
ecshop梦芭莎
ecshop产品规格
ecshoplist
ecshop名称长度设置
ecshop百度地图
ecshop开户费
ecshop紫色
ecshop德文
golangjson
ecshopcart
ecshopconcize
ecshop资料库
zencart产品发布
ecshopadword
ecshop组合
ecshop坛子
ecshop服务商
ecshop静态HTML
ecshopECSHOP网站系统
ecshoplogo右侧
ecshop绑定手机
ecshop协商
ecshop插入flsh
ecamll数据库
ecshop销售
ecshop文章随意调用
ecshopComsenzEXP