lizhen_gitee 8 months ago
parent
commit
2635f8c7e3
2 changed files with 2 additions and 1 deletions
  1. 1 1
      application/api/controller/Lesson.php
  2. 1 0
      application/api/lang/en/lesson.php

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

@@ -303,7 +303,7 @@ class Lesson extends Api
             'o.endtime' => ['gt',time()],
             'o.remain' => ['egt',$number_hours], //不能只是大于0,还得大于等于报名人数
             'o.order_status' => 1,
-//            'o.use_status'   => 1, //已激活的
+//            'o.use_status'   => 1, //已激活的。未激活的也要展示,但是变灰
         ];
         $package_list = Db::name('package_order')->alias('o')
             ->join('lesson_package p','o.package_id = p.id','LEFT')

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

@@ -20,4 +20,5 @@ return [
     '下单失败' => 'Order failed',
     '试课信息不正确,请刷新重试' => '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',
 ];