فهرست منبع

课程表列表

lizhen_gitee 7 ماه پیش
والد
کامیت
b9451e7ddf
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 2 2
      application/api/controller/Lesson.php
  2. 2 0
      application/api/lang/en/lesson.php

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

@@ -245,9 +245,9 @@ class Lesson extends Api
                 $slot['button_status'] = 0;//报名截止了,强制改
             }else{
 //                $slot['num_remark'] = __('剩N个名额',['number'=>$slot['num_remain']]);
-                $slot['num_remark'] = $pay_number.'/'.$slot['num_max'];
+                $slot['num_remark'] = __('预约:').$pay_number.'/'.$slot['num_max'];
                 if($slot['waitnum_max'] > 0){
-                    $slot['num_remark'] .= '--'.$wait_number.'/'.$slot['waitnum_max'];
+                    $slot['num_remark'] .= '--'. __('候补:') .$wait_number.'/'.$slot['waitnum_max'];
                 }
             }
         }

+ 2 - 0
application/api/lang/en/lesson.php

@@ -21,4 +21,6 @@ return [
     '试课信息不正确,请刷新重试' => 'the trylesson information is incorrect, please refresh and try again',
     '使用试课失败' => 'Failed to use try lesson',
     '该配套限购一次,您已经买过了' => 'This package is limited to one purchase, you have already made a purchase',
+    '预约:' => 'Booked',
+    '候补:' => 'Candidate',
 ];