Explorar el Código

修改模型日志

LD hace 5 años
padre
commit
0fb16c7f71
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 2 2
      app/Http/Controllers/TestController.php
  2. 1 1
      app/OwnerFeeDetail.php

+ 2 - 2
app/Http/Controllers/TestController.php

@@ -768,7 +768,7 @@ class TestController extends Controller
 
     public function reNewBatches3()
     {
-        $batches = Batch::query()->where('id', '>', 95812)->get('code');
+        $batches = Batch::query()->where('id', '>', 97397)->get('code');
         $batchCodes = $batches->map(function ($batch) {
             return $batch['code'];
         })->toArray();
@@ -795,7 +795,7 @@ class TestController extends Controller
 //        dd($logs);
         foreach ($batchCodes as $code) {
 //            $request=Cache::get('temp'.$code)['description'];
-            $request = Log::query()->select('description')->where('CREATED_AT', '>=', '2021-04-09')
+            $request = Log::query()->select('description')->where('CREATED_AT', '>=', '2021-04-14')
                 ->where('method', "issued_newBatch")
                 ->where('description', 'like', "%{$code}%")
                 ->first();

+ 1 - 1
app/OwnerFeeDetail.php

@@ -9,7 +9,7 @@ use App\Traits\ModelLogChanging;
 
 class OwnerFeeDetail extends Model
 {
-    use ModelLogChanging;
+//    use ModelLogChanging;
 
     protected $fillable = [
         "owner_id",         //货主ID