lizhen_gitee 7 kuukautta sitten
vanhempi
commit
25216f0e2d

+ 2 - 2
application/api/controller/Lesson.php

@@ -451,7 +451,7 @@ class Lesson extends Api
 
         //候补数量足够
         if($wait_remain >= $number){
-            $this->success('success',2);
+            $this->success(__('预约空位不足,是否转为候补?'),2);
         }
 
         //两者都不够了
@@ -750,7 +750,7 @@ class Lesson extends Api
             $package_order = Db::name('package_order')->where($map)->where('find_in_set(:lesson_ids,lesson_ids)', ['lesson_ids' => $info['lesson_id']])->find();
             if(!$package_order){
                 Db::rollback();
-                $this->error('没有找到足够预约人数的配套,请刷新重试');
+                $this->error('没有找到足够候补人数的配套');
             }
 
             //扣除一节。延迟到转正的时候处理

+ 4 - 1
application/api/lang/en/lesson.php

@@ -12,7 +12,8 @@ return [
     '预约人数错误' => 'Wrong number of people booked',
     '课程已经结束了,不能再进行预约' => 'The course has ended and no more reservations can be made',
 
-    '预约名额只剩N名' => 'There are only {:number} reservation places left',
+    '预约名额只剩N名' => 'There are only {:number} reserved spots left',
+    '候补名额只剩N名' => 'There are only {:number} candidate spots left',
     '套餐信息不正确,请刷新重试' => 'The package information is incorrect, please refresh and try again',
     '该套餐余额不足,可以使用其他支付方式' => 'The balance of this package is insufficient, you can use other payment methods',
     '扣除套餐余额失败' => 'Failed to deduct package balance',
@@ -23,4 +24,6 @@ return [
     '该配套限购一次,您已经买过了' => 'This package is limited to one purchase, you have already made a purchase',
     '预约:' => 'Booked:',
     '候补:' => 'Candidate:',
+    '预约空位不足,是否转为候补?' => 'Insufficient reserved seats, should I switch to a backup?',
+    '没有找到足够候补人数的配套' => 'We could not find a package with enough candidates',
 ];

+ 1 - 0
application/api/lang/zh-cn/lesson.php

@@ -3,5 +3,6 @@
 return [
     '剩N个名额' => '剩{:number}个名额',
     '预约名额只剩N名' => '预约名额只剩{:number}名',
+    '候补名额只剩N名' => '候补名额只剩{:number}名',
 
 ];