Commit d8bce5f0 by LiuJunYi

会员vip控制时间

parent 4bc09007
......@@ -180,6 +180,15 @@ class Order extends Base
}
$vip_endtime = date('Y-m-d H:i:s', $vip_endtime);
$order->status = config('order_status.no_pay');
//vip到期时间
if(time()<strtotime('2019-1-1 00:00:00')){
//如果时间在2019-1-1之前,到期时间变为2019-12-31
if($year==1){
$vip_endtime = "2019-12-31 24:00:00";
}
}
$order->extras = [
'year' => $year,
'vip_endtime' => $vip_endtime,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment