我遇到了这个问题,我不知道该怎么做......他们有相同的格式
$ date_expire ='2014-08-06 00:00:00';
$ date1 = date("Ymd G:i:s"); $ date2 = date_create($ date_expire);
$ diff = date_diff($ date1,$ date2); //这行有误
我想知道 shopify 架构上的嵌套块是否可能。我搜索它,但我找不到答案。如果有人知道该怎么做,请帮助我。
这是我的架构
"blocks": [
{
"type": "block_main",
"name": "Block Main",
"settings": [
{
"type": "text",
"id": "block-name",
"label": "Quote"
},
{
"type": "url",
"id": "block-link",
"label": "URL"
}
],
"blocks": [
{
"type": "sub_block",
"name": "Sub Block",
"settings": [
{
"type": "text",
"id": "sub-block-name",
"label": "Quote"
},
{
"type": "url",
"id": "sub-block-link",
"label": "URL"
}
]
}
]
}
]
Run Code Online (Sandbox Code Playgroud)