hrjy 2 years ago
parent
commit
49fc89e265
2 changed files with 6 additions and 7 deletions
  1. 1 1
      app/admin/model/auction/Auction.php
  2. 5 6
      public/nginx.htaccess

+ 1 - 1
app/admin/model/auction/Auction.php

@@ -47,7 +47,7 @@ class Auction extends BaseModel
         $day = strtotime(date('Y-m-d'));
         $tomorrow = strtotime(date('Y-m-d', strtotime('+1 day')));
         foreach ($list as $k => $v){
-           $list[$k]['b_count'] = AuctionBooking::where([['create_time', '>=', $day], ['create_time', '<=', $tomorrow], ['auction_id', '=', $list[$k]['id']]])->count();
+           $list[$k]['b_count'] = AuctionBooking::where([['frequency', '=', $v['frequency']], ['auction_id', '=', $v['id']]])->count();
 
 
 //           $list[$k]['u_count'] = AuctionBooking::alias('a')

+ 5 - 6
public/nginx.htaccess

@@ -1,6 +1,5 @@
- location / { 
-   if (!-e $request_filename) {
-   rewrite  ^(.*)$  /index.php?s=/$1  last;
-   break;
-    }
- }
+location / {
+        if (!-e $request_filename){
+                rewrite  ^(.*)$  /index.php?s=$1  last;   break;
+        }
+}