zz %!s(int64=6) %!d(string=hai) anos
pai
achega
92b936b335
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      app/Console/Commands/BookTest.php

+ 4 - 0
app/Console/Commands/BookTest.php

@@ -6,6 +6,8 @@ use App\Modules\Book\Services\BookSubscribleChapterService;
 use App\Modules\Subscribe\Services\ChapterOrderService;
 use App\Modules\YunQi\Models\BookUser;
 use App\Modules\YunQi\Models\YqUserBidRelation;
+use App\Modules\YunQi\Models\YqZsyTest;
+use App\Modules\YunQi\Services\YqZsyTestService;
 use GuzzleHttp\Client;
 use Illuminate\Console\Command;
 
@@ -372,6 +374,8 @@ class BookTest extends Command
             if($from_bids){
                 foreach ($from_bids as $from_bid){
                     $bid = $from_bid->from_bid;
+                    $test = YqZsyTestService::getByBid($bid);
+                    if($test) continue;
                     $time = $from_bid->created_at->format('Y-m-d H:i:s');
                     $fee = $chapter_model->where('uid',$item->uid)
                         ->where('bid',$bid)