...
|
...
|
@@ -133,16 +133,16 @@ class SignController extends RestBaseController |
|
|
* @return sleep:睡前打卡记录(null为未进行睡前打卡)
|
|
|
*/
|
|
|
public function daySign(){
|
|
|
$param=$this->request->param();
|
|
|
if ($param['status']==1){
|
|
|
$type='morning';
|
|
|
}elseif ($param['status']==2){
|
|
|
$type='noon';
|
|
|
}elseif ($param['status']==3){
|
|
|
$type='night';
|
|
|
}elseif ($param['status']==4){
|
|
|
$type='sleep';
|
|
|
}
|
|
|
// $param=$this->request->param();
|
|
|
// if ($param['status']==1){
|
|
|
// $type='morning';
|
|
|
// }elseif ($param['status']==2){
|
|
|
// $type='noon';
|
|
|
// }elseif ($param['status']==3){
|
|
|
// $type='night';
|
|
|
// }elseif ($param['status']==4){
|
|
|
// $type='sleep';
|
|
|
// }
|
|
|
//用户信息
|
|
|
$user=Db::name('user')->where('id',$this->getUserId())->find();
|
|
|
//当天签到记录
|
...
|
...
|
|