| xqd
@@ -259,8 +259,9 @@ class HomeService
|
|
|
throw new VipException("开通VIP即可解锁");
|
|
|
}else{
|
|
|
$limit = UserVipLimit::query()->where('user_id',$user->id)->first();
|
|
|
- if($limit->weixin>=get_vip_config("weixin")){
|
|
|
- throw new Exception("每天只能解锁10次");
|
|
|
+ $weixin_num = get_vip_config("weixin");
|
|
|
+ if($limit->weixin>=$weixin_num){
|
|
|
+ throw new Exception("每天只能解锁".$weixin_num."次");
|
|
|
}else{
|
|
|
//增加记录
|
|
|
UserVipLimit::query()->where('user_id',$user->id)->increment('weixin',1);
|