Commit 1745b4f5 by 冷斌

踢人

parent 724a4477
......@@ -359,7 +359,7 @@ class Model_User extends PhalApi_Model_NotORM
$start = strtotime(date("Y-m-d",strtotime("-15 day")));
$end = strtotime(date('Y-m-d 23:59:59'));
$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 ($info as $k => $v) {
$userinfo = getUserInfo($v['touid']);
$v['user_nicename']=$userinfo['user_nicename'];
......@@ -1083,7 +1083,7 @@ class Model_User extends PhalApi_Model_NotORM
$where = "familyid={$familyId} and state=2";
if ($type == 1) {
$where .= " and between addtime {$start} and {$end} ";
$where .= " and addtime between {$start} and {$end} ";
$list=DI()->notorm->users_family->select('id, uid')->where($where)->fetchAll();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment