Selaa lähdekoodia

注释加桌log

songdb 4 vuotta sitten
vanhempi
commit
bb8452066b

+ 3 - 3
app/Modules/User/Services/QappAddDeskTopService.php

@@ -19,7 +19,7 @@ class QappAddDeskTopService
      */
     public static function incrAddDeskTop(int $uid, string $field, $num = 1): bool
     {
-        myLog('incrAddDeskTop')->info('start', compact('uid', 'field'));
+        //myLog('incrAddDeskTop')->info('start', compact('uid', 'field'));
 
         // 参数判断
         if ($uid < 1 || $num < 1 ||
@@ -31,7 +31,7 @@ class QappAddDeskTopService
         $user        = User::getUser($uid);
         $sendOrderId = (int)getProp($user, 'send_order_id');
         $channelId   = (int)getProp($user, 'distribution_channel_id');
-        myLog('incrAddDeskTop')->info('user_data', compact('uid', 'sendOrderId', 'channelId'));
+        //myLog('incrAddDeskTop')->info('user_data', compact('uid', 'sendOrderId', 'channelId'));
         if (empty($sendOrderId) || empty($channelId)) {
             return false;
         }
@@ -51,7 +51,7 @@ class QappAddDeskTopService
         }
 
         // 增加计数
-        myLog('incrAddDeskTop')->info('end', compact('date', 'sendOrderId', 'field', 'num'));
+        //myLog('incrAddDeskTop')->info('end', compact('date', 'sendOrderId', 'field', 'num'));
         return QappUserAddDesktopRealStats::incrDesktopRealStat($date, $sendOrderId, $field, $num);
     }
 }

+ 1 - 1
app/Modules/User/Services/UserService.php

@@ -49,7 +49,7 @@ class UserService
 
     public static function qappAddDesktop(int $uid, int $status)
     {
-        myLog('incrAddDeskTop')->info('qappAddDesktop', compact('uid', 'status'));
+        //myLog('incrAddDeskTop')->info('qappAddDesktop', compact('uid', 'status'));
         $log = QappUserAddDestop::where('uid', $uid)->orderBy('id', 'desc')->first();
         if ((!$log && $status == 1) || ($log && $log->status != $status)) {
             if ($status == 1) {