|
@@ -19,7 +19,7 @@ class Piaoliuping extends Api
|
|
|
$vip_endtime = model('wallet')->getWallet($this->auth->id,'vip_endtime');
|
|
|
if($vip_endtime < time()){
|
|
|
|
|
|
- $plp_unvip_daysnum = config('site.plp_unvip_daysnum');
|
|
|
+ $plp_unvip_daysnum = intval(config('site.plp_unvip_daysnum'));
|
|
|
if($plp_unvip_daysnum > -1){
|
|
|
|
|
|
$starttime = strtotime(date('Y-m-d'));
|
|
@@ -31,7 +31,7 @@ class Piaoliuping extends Api
|
|
|
];
|
|
|
$count = Db::name('piaoliuping_log')->where($where)->count('id');
|
|
|
if($count >= $plp_unvip_daysnum){
|
|
|
- $this->error('非vip每天只能捡3个');
|
|
|
+ $this->error('非vip每天只能捡'.$plp_unvip_daysnum.'个');
|
|
|
}
|
|
|
}
|
|
|
|