|
|
@@ -5,6 +5,7 @@ namespace App\Http\Controllers\Game;
|
|
|
|
|
|
use App\Game\Block;
|
|
|
use App\Game\Config\GameBasicConfig;
|
|
|
+use Carbon\Carbon;
|
|
|
use App\Game\GameCard;
|
|
|
use App\Game\GlobalUserInfo;
|
|
|
use App\Game\Route;
|
|
|
@@ -217,6 +218,25 @@ class WebRouteController extends Controller
|
|
|
->all();
|
|
|
|
|
|
|
|
|
+ // sharePop:用户注册后,从第二天开始,每日首次登录弹一次
|
|
|
+ $sharePop = 0;
|
|
|
+ if ($user && isset($user['UserID'])) {
|
|
|
+ $userModel = GlobalUserInfo::getGameUserInfo('UserID', $user['UserID']);
|
|
|
+ if ($userModel && $userModel->RegisterDate) {
|
|
|
+ $registerDate = Carbon::parse($userModel->RegisterDate)->startOfDay();
|
|
|
+ $today = Carbon::today();
|
|
|
+
|
|
|
+ // 仅从注册次日开始
|
|
|
+ if ($today->greaterThan($registerDate)) {
|
|
|
+ $lastLogonDate = $userModel->LastLogonDate ? Carbon::parse($userModel->LastLogonDate) : null;
|
|
|
+ // 当天首次登录:上次登录时间小于今天 00:00 或不存在
|
|
|
+ if (!$lastLogonDate || $lastLogonDate->lt($today)) {
|
|
|
+ $sharePop = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$data['conf']=[
|
|
|
'hall'=>env("CONFIG_24680_HALL")??GameBasicConfig::$HallServer,
|
|
|
'DOLLAR'=>env("CONFIG_24680_DOLLAR")??GameBasicConfig::$DOLLAR,
|
|
|
@@ -254,6 +274,7 @@ class WebRouteController extends Controller
|
|
|
'outLimit' => ['cashapp' => 2000,'paypal' => 800],
|
|
|
'withdrawChannel' => ['cashapp','paypal'],
|
|
|
'freeChannel' => ['paypal'],
|
|
|
+ 'sharePop' => $sharePop,
|
|
|
];
|
|
|
|
|
|
|