...
|
...
|
@@ -194,7 +194,7 @@ class SignController extends RestBaseController |
|
|
Db::name('user_score_log')->insert(['score'=>$score,'create_time'=>time(),'action'=>'打卡','user_id'=>$this->getUserId(),'now_score'=>$user['score']+$score]);
|
|
|
|
|
|
//判断是否需要进行周打卡
|
|
|
if (Db::name('user_week_sign')->where(['user_id'=>$this->getUserId(),'create_time'=>[ '<', $beginToday-($score['week_sign']*24*60*60)]])->find()){
|
|
|
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;
|
...
|
...
|
|