<?php
header("Access-Control-Allow-Origin: http://diuvin.shop");
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
date_default_timezone_set('Asia/Kolkata');
$serviceNowTimeFormatted = date('Y-m-d H:i:s');

$jsonData = '{
    "data": [
         {
            "id": 9,
            "typeNameCode": 9309,
            "categoryCode": "BigAward",
            "categoryName": "电子大奖",
            "state": 1,
            "sort": 0,
            "categoryImg": "https://ossimg.92gopay.com/92GO/gamecategory/gamecategory_20250310183938125h.png"
        },
        {
            "id": 4,
            "typeNameCode": 9304,
            "categoryCode": "Slot",
            "categoryName": "电子游戏",
            "state": 1,
            "sort": 1,
            "categoryImg": "https://ossimg.dkwinpicture.com/dkwin/gamecategory/gamecategory_20250415173832et78.png"
        },
        {    "id": 1,
            "typeNameCode": 9301,
            "categoryCode": "Lottery",
            "categoryName": "彩票",
            "state": 1,
            "sort": 70,
            "categoryImg": "https://ossimg.dkwinpicture.com/dkwin/gamecategory/gamecategory_20250415173821c3nc.png"
         },
        {
            "id": 5,
            "typeNameCode": 9305,
            "categoryCode": "Sport",
            "categoryName": "体育游戏",
            "state": 1,
            "sort": 10,
            "categoryImg": "https://ossimg.dkwinpicture.com/dkwin/gamecategory/gamecategory_20250415173804wys6.png"
        },
        {
            "id": 6,
            "typeNameCode": 9306,
            "categoryCode": "Video",
            "categoryName": "视讯游戏",
            "state": 1,
            "sort": 35,
            "categoryImg": "https://ossimg.dkwinpicture.com/dkwin/gamecategory/gamecategory_20250415173752vark.png"
       },
        {
            "id": 7,
            "typeNameCode": 9307,
            "categoryCode": "Chess",
            "categoryName": "棋牌游戏",
            "state": 1,
            "sort": 2,
            "categoryImg": "https://ossimg.dkwinpicture.com/dkwin/gamecategory/gamecategory_20250415173736i7ur.png"
        },
        {
            "id": 3,
            "typeNameCode": 9303,
            "categoryCode": "Fish",
            "categoryName": "捕鱼游戏",
            "state": 1,
            "sort": 20,
            "categoryImg": "https://ossimg.dkwinpicture.com/dkwin/gamecategory/gamecategory_20250415173718e6hq.png"
        },
        {
            "id": 8,
            "typeNameCode": 9308,
            "categoryCode": "Flash",
            "categoryName": "小游戏",
            "state": 1,
            "sort": 60,
            "categoryImg": "https://ossimg.dkwinpicture.com/dkwin/gamecategory/gamecategory_20250415173710hgao.png"
        }
    ],
    "code": 0,
    "msg": "Succeed",
    "msgCode": 0,
    "serviceNowTime": "' . $serviceNowTimeFormatted . '"
}';

$data = json_decode($jsonData, true);

$response = json_encode($data, JSON_PRETTY_PRINT);

header('Content-Type: application/json');
echo $response;

?>