wupengfei 2 years ago
parent
commit
6f8bd92bcf
2 changed files with 2 additions and 2 deletions
  1. 1 1
      .idea/workspace.xml
  2. 1 1
      application/nutrition/controller/Learn.php

+ 1 - 1
.idea/workspace.xml

@@ -193,7 +193,7 @@
       <workItem from="1669682447842" duration="24394000" />
       <workItem from="1669769873624" duration="5352000" />
       <workItem from="1669776182613" duration="18162000" />
-      <workItem from="1669855685721" duration="18717000" />
+      <workItem from="1669855685721" duration="18929000" />
     </task>
     <servers />
   </component>

+ 1 - 1
application/nutrition/controller/Learn.php

@@ -74,7 +74,7 @@ class Learn extends Controller
            $phone = input('phone');
            $user_id = User::where('phone|email',$phone)->value('id');
            if(!$user_id)$this->error('用户不存在');
-           if(!empty($data['end_time']))$this->error('请选择时间');
+           if(empty($data['end_time']))$this->error('请选择时间');
            $data['user_id'] = $user_id;
            if(isset($data['end_time'])) $data['end_int'] = strtotime($data['end_time']);
         }