Browse Source

活动详情

lizhen_gitee 1 năm trước cách đây
mục cha
commit
1a6b5d2198
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      application/api/controller/Active.php

+ 3 - 0
application/api/controller/Active.php

@@ -53,6 +53,9 @@ class Active extends Api
         }
         $info = info_domain_image($info,['image']);
 
+        //几人已报名
+        $info['payednumber'] = Db::name('order')->where('active_id',$id)->where('status',1)->count();
+
         $this->success(1,$info);
     }