...
|
...
|
@@ -116,7 +116,7 @@ class LoginController extends HomeBaseController |
|
|
*/
|
|
|
public function chooseAge() {
|
|
|
if (cmf_is_user_login()) {
|
|
|
if(!session('baby_age')) {
|
|
|
// if(!session('baby_age')) {
|
|
|
$baby_model = new BabyModel();
|
|
|
$where = [
|
|
|
'delete_time' => 0
|
...
|
...
|
@@ -132,9 +132,9 @@ class LoginController extends HomeBaseController |
|
|
}
|
|
|
$this->assign('babyList',json_encode($list));
|
|
|
return $this->fetch(':choose');
|
|
|
} else {
|
|
|
return redirect($this->request->root() . '/');
|
|
|
}
|
|
|
// } else {
|
|
|
// return redirect($this->request->root() . '/');
|
|
|
// }
|
|
|
} else {
|
|
|
return redirect($this->request->root() . '/');
|
|
|
}
|
...
|
...
|
|