|
@@ -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,
|
|
|
+ ]]);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|