修改Ecshop首页在线会员数量的方法

2016-09-07 22:03 来源:www.chinab4c.com 作者:ecshop专家

 查找:includes/lib_insert.php里面的
  $online_count = $GLOBALS['db']->getOne("SELECT COUNT(*) FROM " . $GLOBALS['ecs']->table('sessions')); 


将这一段改成:
$online_count = $GLOBALS['db']->getOne("SELECT COUNT(*) FROM " . $GLOBALS['ecs']->table('sessions'))*15;

ecshop首页在线会员的数量乘了15

(责任编辑:chinab4c)