Browse Source

transform

zz 6 years ago
parent
commit
9674af81bb
1 changed files with 14 additions and 0 deletions
  1. 14 0
      app/Console/Commands/BookTest.php

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

@@ -511,6 +511,20 @@ class BookTest extends Command
                         'reward_balance'=>$old_user->reward_balance,
                     ]);
                 }
+
+                //年费
+                $year = DB::table('year_orders')->where('uid',$froce_user->uid)->orderBy('id','desc')->first();
+                if($year){
+                    DB::table('year_orders')->insert([[
+                        'uid'=>$v->id,
+                        'begin_time'=>$year->begin_time,
+                        'end_time'=>$year->end_time,
+                        'distribution_channel_id'=>4815,
+                        'created_at'=>$year->created_at,
+                        'updated_at'=>date('Y-m-d H:i:s'),
+                        'fee'=>0,
+                    ]]);
+                }
             }
 
         }