chuweiqiang hai 1 ano
pai
achega
6c037fb0ba
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      application/api/controller/Books.php

+ 2 - 1
application/api/controller/Books.php

@@ -225,12 +225,13 @@ class Books extends Api
                     $list['is_certificate'] = 0;
                     $list['is_certificate'] = 0;
                     $list['free_end_time'] = $cer['free_end_time'];
                     $list['free_end_time'] = $cer['free_end_time'];
                 }else{
                 }else{
+                    $list['is_certificate'] = 1;
                     //免费/付费
                     //免费/付费
                     $lists['data'][$k]['is_free'] = 1;
                     $lists['data'][$k]['is_free'] = 1;
                     if($v['price'] <= 0){
                     if($v['price'] <= 0){
                         $lists['data'][$k]['is_free'] = 0;
                         $lists['data'][$k]['is_free'] = 0;
                     }
                     }
-                    $list['is_certificate'] = 1;
+
                 }
                 }
             }
             }
         }else{
         }else{