...
|
...
|
@@ -98,15 +98,15 @@ class SignController extends RestBaseController |
|
|
}
|
|
|
|
|
|
//判断是否需要进行周打卡
|
|
|
if (!Db::name('user_week_sign')->where(['user_id'=>$this->getUserId()])->find()){
|
|
|
$is_week=1;
|
|
|
}
|
|
|
else if (Db::name('user_week_sign')->where(['user_id'=>$this->getUserId(),'create_time'=>[ '<', $beginToday-(7*24*60*60)]])->find()){
|
|
|
$is_week=1;
|
|
|
}else{
|
|
|
$is_week=0;
|
|
|
}
|
|
|
// $is_week=1;
|
|
|
// if (!Db::name('user_week_sign')->where(['user_id'=>$this->getUserId()])->find()){
|
|
|
// $is_week=1;
|
|
|
// }
|
|
|
// else if (Db::name('user_week_sign')->where(['user_id'=>$this->getUserId(),'create_time'=>[ '<', $beginToday-(7*24*60*60)]])->find()){
|
|
|
// $is_week=1;
|
|
|
// }else{
|
|
|
// $is_week=0;
|
|
|
// }
|
|
|
$is_week=1;
|
|
|
|
|
|
$this->success('首页信息',array(
|
|
|
'sign'=>$data['sign'],
|
...
|
...
|
|