$day=‘2022’;
KaTeX parse error: Expected 'EOF', got '&' at position 49: …/vip.php?type=0&̲apikey=123456&d…day;
r
e
s
=
f
i
l
e
g
e
t
c
o
n
t
e
n
t
s
(
res = file_get_contents(
res=filegetcontents(url);
r
e
s
=
j
s
o
n
d
e
c
o
d
e
(
res = json_decode(
res=jsondecode(res,true);
h
o
l
i
d
a
y
s
=
M
(
′
h
o
l
i
d
a
y
s
′
)
;
f
o
r
e
a
c
h
(
holidays = M('holidays'); foreach(
holidays=M(′holidays′);foreach(res[‘data’][‘2021’] as
k
e
y
=
>
key=>
key=>val){
$collect[‘date’] =
d
a
y
.
day.
day.key;
$collect[‘is_rest’] = 1;
h
o
l
i
d
a
y
s
−
>
a
d
d
(
holidays->add(
holidays−>add(collect) ;
}
2021-07-16 php获取法定节假日调休接口 http://tool.bitefu.net/jiari/vip.php?type=0&apikey=123456&d=‘.$day;
最新推荐文章于 2022-11-04 15:03:07 发布