|
@@ -232,7 +232,7 @@ class UserController extends BaseController
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- $fee_pool = [0,30,50,120,50,50,50,150];
|
|
|
+ $tomorrow_pool = $fee_pool = [0,30,50,120,50,50,50,150];
|
|
|
$day = [0,'一','二','三','四','五','六','七'];
|
|
|
list($sign,$sign_count) = ReadRecordService::getByMultiField($this->uid,'sign_day','sign_counts');
|
|
|
if ($sign && $sign == date('Y-m-d')) {
|
|
@@ -252,10 +252,13 @@ class UserController extends BaseController
|
|
|
if($sign_count >=8){
|
|
|
$fee_pool[1] = 50;
|
|
|
}
|
|
|
- $tomorrow = (($sign_count+1) % 7 == 0? 7:($sign_count+1) % 7);
|
|
|
|
|
|
+ $tomorrow = (($sign_count+1) % 7 == 0? 7:($sign_count+1) % 7);
|
|
|
+ if($sign_count+1 >=8){
|
|
|
+ $tomorrow_pool[1] = 50;
|
|
|
+ }
|
|
|
|
|
|
- $data = ['sign_count'=>$sign_count,'fee'=>$fee,'fee_pool'=>$fee_pool,'day'=>$day,'book1'=>$book1,'book2'=>$book2,'tomorrow_fee'=>$fee_pool[$tomorrow]];
|
|
|
+ $data = ['sign_count'=>$sign_count,'fee'=>$fee,'fee_pool'=>$fee_pool,'day'=>$day,'book1'=>$book1,'book2'=>$book2,'tomorrow_fee'=>$tomorrow_pool[$tomorrow]];
|
|
|
return view($page,$data);
|
|
|
}
|
|
|
$fee = UserSignService::signToday($this->uid,$version);
|
|
@@ -266,8 +269,11 @@ class UserController extends BaseController
|
|
|
if($sign_count >=8){
|
|
|
$fee_pool[1] = 50;
|
|
|
}
|
|
|
+ if($sign_count+1 >=8){
|
|
|
+ $tomorrow_pool[1] = 50;
|
|
|
+ }
|
|
|
$tomorrow = (($sign_count+1) % 7 == 0? 7:($sign_count+1) % 7);
|
|
|
- $data = ['sign_count'=>$sign_count,'fee'=>$fee,'fee_pool'=>$fee_pool,'day'=>$day,'book1'=>$book1,'book2'=>$book2,'tomorrow_fee'=>$fee_pool[$tomorrow]];
|
|
|
+ $data = ['sign_count'=>$sign_count,'fee'=>$fee,'fee_pool'=>$fee_pool,'day'=>$day,'book1'=>$book1,'book2'=>$book2,'tomorrow_fee'=>$tomorrow_pool[$tomorrow]];
|
|
|
return view($page,$data);
|
|
|
}
|
|
|
|