废话不多说,详情见代码所示:
$config = [
'id' => 38,
'pid' => 37,
'name' => '香港六合彩', // 彩票名字
'createLottery' => [
'delay' => 60,
'start' => [
['2019-08-13', '92', '2019-08-10 21:30:00', '2019-08-13 21:30:00'],//周二
['2019-08-15', '93', '2019-08-13 21:30:00', '2019-08-15 21:30:00'],//周四
['2019-08-17', '94', '2019-08-15 21:30:00', '2019-08-17 21:30:00'],//周六
]
],
];
$start = $config['createLottery']['start'];
$strTime = $start[0][0];
$delay = $config['createLottery']['delay'];
$strYear = date('Y', strtotime($strTime));//开始的年
$strWeek = date('W', strtotime($strTime));//开始年内的第几周
$total = 52;/