dongasai 6 bulan lalu
induk
melakukan
e6e64b8e43
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      app/Module/UrsPromotion/Models/UrsUserMapping.php

+ 3 - 0
app/Module/UrsPromotion/Models/UrsUserMapping.php

@@ -164,6 +164,9 @@ class UrsUserMapping extends ModelCore
                 'user_id' => $userId,
                 'mapping_time' => now(),
                 'status' => self::STATUS_VALID,
+                'is_active' => self::ACTIVE_YES, // 新用户默认为活跃状态
+                'last_activity_check' => now(), // 设置初始检查时间
+                'active_days_count' => 1, // 新用户默认活跃天数为1
             ]
         );
     }