Ver Fonte

wesmiler 报恩寺项目提交

wesmiler há 4 anos atrás
pai
commit
406ff20592
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Services/MemberService.php

+ 1 - 1
app/Services/MemberService.php

@@ -411,7 +411,7 @@ class MemberService extends BaseService
             $vipExpire = time()+365*24*3600;
             $vipExpire = time()+365*24*3600;
         }
         }
 
 
-        if(!$this->model::where(['id'=> $userId,'mark'=> 1])->update(['is_vip'=> 1,'vip_expire'=> $vipExpire]))){
+        if(!$this->model::where(['id'=> $userId,'mark'=> 1])->update(['is_vip'=> 1,'vip_expire'=> $vipExpire])){
             \DB::rollBack();
             \DB::rollBack();
             return message('更新会员有效期失败,请刷新后重试',false);
             return message('更新会员有效期失败,请刷新后重试',false);
         }
         }