如果是DEDE的商品模型的话,你打开plus/carbuyaction.php
找到if(empty($username) || $password)
有两处,
替换为
$gourl=urlencode(GetCurUrl());
$gourl="/member/login.php?gourl=".$gourl."";
if(empty($username) || $password)
{
$gourl = str_replace('^','&',$gourl);
ShowMsg("请选登录",$gourl,0,2000);
exit();
}
/member/index_do.php找到
if(empty($gourl) || preg_match("#action|_do#i", $gourl))
替换为
if(empty($gourl))
搞定