Tree před 2 měsíci
rodič
revize
3858db5c79

+ 18 - 0
app/Game/PageModule.php

@@ -84,6 +84,10 @@ class PageModule extends Model
                 return $this->handleGameTabs();
             case 'GameTab':
                 return $this->handleTab();
+
+            case 'ModuleHomeWithdraw':
+                return $this->handleWithdraw();
+
             case 'ModuleSmallGameList':
             case 'ModuleRollSmallGameList':
                 return $this->handleSmallGameList();
@@ -94,6 +98,20 @@ class PageModule extends Model
         }
     }
 
+
+    private function handleWithdraw()
+    {
+
+        return [
+            'title'=>$this->title,
+            'type' => $this->type,
+            'api' => $this->api,
+            'tabtype' =>$this->tabtype,
+            'tabs' => "",
+        ];
+    }
+
+
     private function handleAutoBanner()
     {
         return [

+ 12 - 10
app/Http/Controllers/Admin/RechargeController.php

@@ -1195,6 +1195,7 @@ class RechargeController extends Controller
                     'valid_h_2' => (int)$request->valid_h_2 ?: 0,
                     'gift_id' => (int)$request->gift_id ?: 0,
                     'gift_name' => $request->gift_name ?: '',
+                    'recommend' => round((float)$request->recommend ?: 0, 2),
                 ];
 
             // 处理每日奖励
@@ -1256,16 +1257,17 @@ class RechargeController extends Controller
     public function gift_update(Request $request, $id)
     {
         if ($request->isMethod('post')) {
-            $data = [
-                'bonus_instantly' => (int)$request->bonus_instantly ?: 0,
-                'total_bonus' => (int)$request->total_bonus ?: 0,
-                'first_pay' => (int)$request->first_pay ?: 0,
-                'is_vip' => (int)$request->is_vip ?: 0,
-                'valid_h' => (int)$request->valid_h ?: 0,
-                'valid_h_2' => (int)$request->valid_h_2 ?: 0,
-                'gift_id' => (int)$request->gift_id ?: 0,
-                'gift_name' => $request->gift_name ?: '',
-            ];
+                $data = [
+                    'bonus_instantly' => (int)$request->bonus_instantly ?: 0,
+                    'total_bonus' => (int)$request->total_bonus ?: 0,
+                    'first_pay' => (int)$request->first_pay ?: 0,
+                    'is_vip' => (int)$request->is_vip ?: 0,
+                    'valid_h' => (int)$request->valid_h ?: 0,
+                    'valid_h_2' => (int)$request->valid_h_2 ?: 0,
+                    'gift_id' => (int)$request->gift_id ?: 0,
+                    'gift_name' => $request->gift_name ?: '',
+                    'recommend' => round((float)$request->recommend ?: 0, 2),
+                ];
 
             // 处理每日奖励
             if ($request->has('day_rewards_enable') && $request->day_rewards_enable) {

+ 3 - 30
app/Http/Controllers/Game/RechargeController.php

@@ -42,20 +42,12 @@ class RechargeController
             ->orderByDesc('sort')->get()->toArray();
 
         $list = DB::table('agent.dbo.recharge_gear')
-            ->select('id','money','favorable_price','give','first_pay','gift_id')
+            ->select('id','money','favorable_price','give','first_pay','gift_id','recommend')
             ->where('first_pay', 0)
             ->orderBy('money', 'asc')->where('status', 1)->get();
-        $list2 = DB::table('agent.dbo.recharge_gear')
-            ->select('id','money','favorable_price','give','first_pay','gift_id')
-            ->where('first_pay', 0)
-            ->orderBy('money', 'asc')->where('status', 2)->get();
 
-        $p=[];
 
-        foreach ($list2 as $val) {
-            $val->favorable_price = $val->favorable_price + $val->give;
-            $p[$val->money]=$val;
-        }
+        $p=[];
 
         $gear=\GuzzleHttp\json_encode($names);
         foreach ($list as &$val) {
@@ -66,26 +58,7 @@ class RechargeController
 
             $val->gear = $gear;
         }
-
-        $cpf_first=true;
-
-        $user=$request->user();
-        if($user){
-            $info = DB::table(TableName::QPAccountsDB() . 'AccountWithDrawInfo')
-                ->where('UserID', $user->UserID)
-                ->select('PixNum')
-                ->first();
-            if(!empty($info->PixNum)){
-                if(!Util::validateCpf($info->PixNum)){
-                    $info->PixNum="";
-                    DB::table(TableName::QPAccountsDB() . 'AccountWithDrawInfo')
-                        ->where('UserID', $user->UserID)->update(['PixNum' => $info->PixNum]);
-                }else{
-                    $cpf_first=false;
-                }
-            }
-        }
-        return apiReturnSuc(['list'=>$list,'bonus_show'=>false,'cpf_first'=>$cpf_first]);
+        return apiReturnSuc(['list'=>$list,'bonus_show'=>false]);
     }
 
 

+ 16 - 5
app/Http/Controllers/Game/WebPageModuleController.php

@@ -20,15 +20,26 @@ class WebPageModuleController extends Controller
     public function PageModules(Request $request,$page_id){
 
 
-//        if(!GameCard::getOuroGameInfo()){
-//            (new GameController())->CheckOuroGamePort();
-//        }
-
         $modules = PageModule::with(['subs' => function ($query) {
             $query->with('subs'); // 递归加载子模块
         }])->where('page_id', $page_id)->whereNull('parent_id')->orderBy('pos_index')->get();
 
-//        var_dump($modules);
+        if($request->input('abc')){
+
+            // 遍历打印每个模块及其子模块
+            foreach ($modules as $module) {
+                echo "=== Module ID: {$module->id} ===\n";
+                echo "Type: {$module->type}\n";
+                echo "Subs Count: " . $module->subs->count() . "\n";
+                //echo "Subs Data:\n";
+                //print_r($module->subs->toArray());
+                echo "\n\n";
+                echo "\br\br";
+            }
+
+        }
+
+
         return response()->json([
             'code' => 0,
             'data' => $modules->map(function (PageModule $module) {

+ 6 - 0
app/Http/Controllers/Game/WebRouteController.php

@@ -158,6 +158,8 @@ class WebRouteController extends Controller
 
         $registerBonus = SystemStatusInfo::OnlyGetCacheValue('GrantScoreCountNew') ?? 1000;
 
+        $recommendGame = '/game/pgsoft/lunch?gid=68';
+
         $data['conf']=[
             'bb'=>$bb,
             'hall'=>env("CONFIG_24680_HALL")??GameBasicConfig::$HallServer,
@@ -170,6 +172,10 @@ class WebRouteController extends Controller
 
             'registerBonus' =>$registerBonus,
 
+            'recommendGame' => $recommendGame,
+
+            //'getStateToWhereRaw' =>RouteService::getStateToWhereRaw($request),
+
             'popWheel'=>0,
             'firstBonus'=>$firstBonus,
             'popFirst'=>$firstBonus,

+ 8 - 2
resources/views/admin/recharge/gift_add.blade.php

@@ -53,7 +53,7 @@
                                 </div>
 
                                 <div class="row">
-                                    <div class="col-md-6">
+                                    <div class="col-md-4">
                                         <div class="form-group">
                                             <label>是否首充</label>
                                             <select class="form-control" name="first_pay">
@@ -62,7 +62,7 @@
                                             </select>
                                         </div>
                                     </div>
-                                    <div class="col-md-6">
+                                    <div class="col-md-4">
                                         <div class="form-group">
                                             <label>是否VIP</label>
                                             <select class="form-control" name="is_vip">
@@ -71,6 +71,12 @@
                                             </select>
                                         </div>
                                     </div>
+                                    <div class="col-md-4">
+                                        <div class="form-group">
+                                            <label>推荐充值档位值</label>
+                                            <input type="number" step="0.01" class="form-control" name="recommend" placeholder="推荐充值金额" value="0">
+                                        </div>
+                                    </div>
                                 </div>
 
                                 <hr>

+ 2 - 0
resources/views/admin/recharge/gift_list.blade.php

@@ -31,6 +31,7 @@
                                         <th>立即获得(%)</th>
                                         <th>首充</th>
                                         <th>VIP</th>
+                                        <th>推荐充值档位值</th>
                                         <th>配置倒计时(小时)</th>
                                         <th>到期后倒计时(小时)</th>
                                         <th>每日奖励</th>
@@ -49,6 +50,7 @@
                                         <td>{{ $item->bonus_instantly }}%</td>
                                         <td>{{ $item->first_pay ? '是' : '否' }}</td>
                                         <td>{{ $item->is_vip ? '是' : '否' }}</td>
+                                        <td>{{ number_format($item->recommend ?? 0, 2) }}</td>
                                         <td>{{ $item->valid_h }}</td>
                                         <td>{{ $item->valid_h_2 ?? 0 }}</td>
                                         <td>

+ 8 - 2
resources/views/admin/recharge/gift_update.blade.php

@@ -53,7 +53,7 @@
                                 </div>
 
                                 <div class="row">
-                                    <div class="col-md-6">
+                                    <div class="col-md-4">
                                         <div class="form-group">
                                             <label>是否首充</label>
                                             <select class="form-control" name="first_pay">
@@ -62,7 +62,7 @@
                                             </select>
                                         </div>
                                     </div>
-                                    <div class="col-md-6">
+                                    <div class="col-md-4">
                                         <div class="form-group">
                                             <label>是否VIP</label>
                                             <select class="form-control" name="is_vip">
@@ -71,6 +71,12 @@
                                             </select>
                                         </div>
                                     </div>
+                                    <div class="col-md-4">
+                                        <div class="form-group">
+                                            <label>推荐充值档位值</label>
+                                            <input type="number" step="0.01" class="form-control" name="recommend" placeholder="推荐充值金额" value="{{ number_format($info->recommend ?? 0, 2, '.', '') }}">
+                                        </div>
+                                    </div>
                                 </div>
 
                                 <hr>