通过推荐链接注册送积分问题

2016-07-07 15:05 来源:www.chinab4c.com 作者:ecshop专家

用过http://www.***.com/?u=3143链接注册,id3143的用户会获得等级积分1(我设置的是1),我想在获得等级积分的同时获得消费积分,请问是那一个文件控制的?我认为是includes/lib_passport.php 但是找了半天也没找到是哪一行在控制,请斑竹解答

回答:
等待中......

等待中......

自己再顶

if (!empty($affiliate['config']['level_register_up']))
{
$rank_points = $GLOBALS['db']->getOne("SELECT rank_points FROM " . $GLOBALS['ecs']->table('users') . " WHERE user_id = '$up_uid'");
if ($rank_points + $affiliate['config']['level_register_all'] <= $affiliate['config']['level_register_up'])
{
log_account_change($up_uid, 0, 0, $affiliate['config']['level_register_all'], 0, sprintf($GLOBALS['_LANG']['register_affiliate'], $_SESSION['user_id'], $username));
}
}
else
{
log_account_change($up_uid, 0, 0, $affiliate['config']['level_register_all'], 0, $GLOBALS['_LANG']['register_affiliate']);
}



你去找找这段代码

帮顶
我也碰到类似的问题