作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

个人中心接口

... ... @@ -271,11 +271,11 @@ class SignController extends RestBaseController
elseif ($item['status']==4){
$item['status']='超重';
}
$item['day']=ceil((time()-$item['register_time'])/(60*60*21));
$item['day']=ceil((time()-$item['register_time'])/(60*60*24));
return $item;
});
}
$param['day']=ceil((time()-$user['register_time'])/(60*60*21));
$param['day']=ceil((time()-$user['register_time'])/(60*60*24));
$param['pregnant_week']=$user['pregnant_week'];
//返回
$this->success('周打卡信息',array(
... ...
... ... @@ -90,7 +90,7 @@ class ParamService
elseif ($weight_level=="重体力"){
$type2=[45,40,35,35];
}
if (($pregnant_week+ceil((time()-$register_time)/24*60*60*7))<=12){
if (($pregnant_week+ceil((time()-$register_time)/(24*60*60*7)))<=12){
$x=0;
}else{
$x=200;
... ...