Browse Source

'补充加卓人数统计'

zhuchengjie 2 years ago
parent
commit
cadabed7ff
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/Modules/User/Services/UserService.php

+ 4 - 0
app/Modules/User/Services/UserService.php

@@ -84,6 +84,10 @@ class UserService
             //如果有记录,但是都是0 没有1的记录
             $oneexists = QappUserAddDestop::where('uid', $uid)->where('status', 1)->exists();
             if(!$oneexists && $status == 1){
+
+                // 加桌统计
+                QappAddDeskTopService::incrAddDeskTop($uid, QuickConst::FIELD_ADD_DESKTOP);
+
                 $job = new UserAddDeskJob($uid);
                 dispatch($job)->onConnection('rabbitmq')->onQueue('qapp_user_add_desk')->delay(now()->addMinutes(3));
                 return false;