正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -543,7 +543,7 @@ class Member extends Frontend | @@ -543,7 +543,7 @@ class Member extends Frontend | ||
543 | //折合svip价格 | 543 | //折合svip价格 |
544 | $user_province = Db::name('user_province')->where(['user_id'=>$this->auth->id,'expiration_time'=>['gt',time()]])->select(); | 544 | $user_province = Db::name('user_province')->where(['user_id'=>$this->auth->id,'expiration_time'=>['gt',time()]])->select(); |
545 | $deduct_price = []; | 545 | $deduct_price = []; |
546 | - $ratio_price = $price['vipprice']/30; | 546 | + $ratio_price = $price['vipprice']/(365*24*60*60); |
547 | dump($ratio_price); | 547 | dump($ratio_price); |
548 | foreach($user_province as $key => $u_p){ | 548 | foreach($user_province as $key => $u_p){ |
549 | $ratio_day = ($u_p['expiration_time']-time())/(24*60*60); | 549 | $ratio_day = ($u_p['expiration_time']-time())/(24*60*60); |
-
请 注册 或 登录 后发表评论