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

个人中心接口

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