|
@@ -438,10 +438,6 @@ class Lesson extends Api
|
|
|
if($num_remain >= $number){
|
|
|
$this->success('success',1);
|
|
|
}
|
|
|
-
|
|
|
- if($num_remain > 0){
|
|
|
- $this->error('可预约名额不足');
|
|
|
- }
|
|
|
|
|
|
|
|
|
$wait_remain = 0;
|
|
@@ -458,8 +454,8 @@ class Lesson extends Api
|
|
|
$this->success('success',2);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- $this->error('可候补名额不足');
|
|
|
+
|
|
|
+ $this->error('可预约名额不足');
|
|
|
|
|
|
}
|
|
|
|
|
@@ -521,9 +517,9 @@ class Lesson extends Api
|
|
|
}
|
|
|
|
|
|
}else{
|
|
|
- if($num_remain > 0){
|
|
|
+
|
|
|
$this->error(__('预约还有名额,不能候补'));
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
if($wait_remain < $number){
|
|
|
$this->error(__('候补名额只剩N名',['number'=>$wait_remain]));
|