$info=DI()->notorm->users_attention->select("touid")->where("uid = {$uid} and between addtime{$start} and {$end} ")->order('addtime desc')->fetchAll();
$info=DI()->notorm->users_attention->select("touid")->where("uid = {$uid} and addtime between{$start} and {$end} ")->order('addtime desc')->fetchAll();
foreach($infoas$k=>$v){
foreach($infoas$k=>$v){
$userinfo=getUserInfo($v['touid']);
$userinfo=getUserInfo($v['touid']);
$v['user_nicename']=$userinfo['user_nicename'];
$v['user_nicename']=$userinfo['user_nicename'];
...
@@ -1083,7 +1083,7 @@ class Model_User extends PhalApi_Model_NotORM
...
@@ -1083,7 +1083,7 @@ class Model_User extends PhalApi_Model_NotORM
$where="familyid={$familyId} and state=2";
$where="familyid={$familyId} and state=2";
if($type==1){
if($type==1){
$where.=" and between addtime{$start} and {$end} ";
$where.=" and addtime between{$start} and {$end} ";