Commit 55f9bf67 by 冷斌

update

parent 3da2e2df
......@@ -157,7 +157,7 @@ class MallController extends HomebaseController {
setAgentProfit($uid,$total);
$endtime=$addtime+60*60*24*30*$giftcount;
$endtime=strtotime(date('Y-m-d',strtotime("+{$giftcount} month")));
$Users_vip=M("users_vip");
......@@ -165,7 +165,8 @@ class MallController extends HomebaseController {
if($uservip){
if($uservip['endtime'] > $addtime){
$endtime=$uservip['endtime']+60*60*24*30*$giftcount;
$endtimeVip = date("Y-m-d", $uservip['endtime']);
$endtime=strtotime(date('Y-m-d',strtotime("{$endtimeVip} +{$giftcount} month")));
}
$data=array(
'endtime'=>$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