Browse Source

Merge branch 'kuaiyingyong' of iqiyoo:zhuishuyun_wap into kuaiyingyong

tgz 2 years ago
parent
commit
399ac67370
1 changed files with 3 additions and 5 deletions
  1. 3 5
      app/Modules/User/Services/UserService.php

+ 3 - 5
app/Modules/User/Services/UserService.php

@@ -67,6 +67,9 @@ class UserService
         if (!$log) {
             //第一次加桌 没有任何记录,加桌状态为1
             if($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));
             }
@@ -97,11 +100,6 @@ class UserService
             //相等 不做处理
             return false;
         }
-
-        // 加桌统计
-        if (!$log && $status == 1) {
-            QappAddDeskTopService::incrAddDeskTop($uid, QuickConst::FIELD_ADD_DESKTOP);
-        }
     }
 
     /**