...
|
...
|
@@ -327,7 +327,7 @@ class SignController extends RestBaseController |
|
|
$data=Db::name('user_week_sign')->where('user_id',$this->getUserId())->select()->toArray();
|
|
|
foreach ($data as $k=>$v){
|
|
|
$data[$k]['week']=floor(($data[$k]['create_time'] - $user['register_time']) / 7 * 24 * 60 * 60);
|
|
|
$data[$k]['week_time']=date('Y-m-d',strtotime('+'."$data[$k][week]".' week',$data[$k]['create_time']));
|
|
|
$data[$k]['week_time']=date('Y-m-d',strtotime('+'."$data[$k]['week']".' week',$data[$k]['create_time']));
|
|
|
}
|
|
|
//返回
|
|
|
$this->success('周打卡提交成功',[$param,$data]);
|
...
|
...
|
|