zz 6 年之前
父節點
當前提交
92b936b335
共有 1 個文件被更改,包括 4 次插入0 次删除
  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)