作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

修改问题文档

@@ -544,6 +544,7 @@ class Member extends Frontend @@ -544,6 +544,7 @@ class Member extends Frontend
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']/30;
  547 + dump($ratio_price);
547 foreach($user_province as $key => $u_p){ 548 foreach($user_province as $key => $u_p){
548 $ratio_day = ($u_p['expiration_time']-time())/(24*60*60); 549 $ratio_day = ($u_p['expiration_time']-time())/(24*60*60);
549 $deduct_price[] = $ratio_price*$ratio_day; 550 $deduct_price[] = $ratio_price*$ratio_day;