質問編集履歴
3
実現したいこと2 が解決と追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,13 +24,19 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
日付の表示したいです。
|
27
|
+
~~日付の表示したいです。~~
|
28
|
-
|
28
|
+
|
29
|
-
商品の更新日か掲載日とか。
|
29
|
+
~~商品の更新日か掲載日とか。~~
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
-
|
33
|
+
解決しました(2020-03-23 22:01)
|
34
|
+
|
35
|
+
```php
|
36
|
+
|
37
|
+
echo date('Y.n.j', $response_json['products'][$i]['pickups'][$i]['update_date']);
|
38
|
+
|
39
|
+
```
|
34
40
|
|
35
41
|
|
36
42
|
|
2
JSONを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -112,82 +112,118 @@
|
|
112
112
|
|
113
113
|
```json
|
114
114
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
115
|
+
{
|
116
|
+
|
117
|
+
"products": [
|
118
|
+
|
119
|
+
{
|
120
|
+
|
121
|
+
"name": "商品名",
|
122
|
+
|
123
|
+
"sales_price": 12345,
|
124
|
+
|
125
|
+
"id": 14930〜〜〜,
|
126
|
+
|
127
|
+
"image_url": "https://img21.shop-pro.jp/PA01444/833/product/14930〜〜〜〜.png?cmsp_timestamp=20200323191536",
|
128
|
+
|
129
|
+
"pickups": [
|
130
|
+
|
131
|
+
{
|
132
|
+
|
133
|
+
"pickup_type": 0,
|
134
|
+
|
135
|
+
"order_num": null,
|
136
|
+
|
137
|
+
"make_date": 1584023875,
|
138
|
+
|
139
|
+
"update_date": 1584023875
|
140
|
+
|
141
|
+
}
|
142
|
+
|
143
|
+
]
|
144
|
+
|
145
|
+
},
|
146
|
+
|
147
|
+
{
|
148
|
+
|
149
|
+
"name": "商品名",
|
150
|
+
|
151
|
+
"sales_price": 12345,
|
152
|
+
|
153
|
+
"id": 14924〜〜〜〜,
|
154
|
+
|
155
|
+
"image_url": "https://img21.shop-pro.jp/PA01444/833/product/14924〜〜〜〜.png?cmsp_timestamp=20200311140002",
|
156
|
+
|
157
|
+
"pickups": [
|
158
|
+
|
159
|
+
{
|
160
|
+
|
161
|
+
"pickup_type": 0,
|
162
|
+
|
163
|
+
"order_num": null,
|
164
|
+
|
165
|
+
"make_date": 1583907889,
|
166
|
+
|
167
|
+
"update_date": 1583907889
|
168
|
+
|
169
|
+
},
|
170
|
+
|
171
|
+
{
|
172
|
+
|
173
|
+
"pickup_type": 1,
|
174
|
+
|
175
|
+
"order_num": null,
|
176
|
+
|
177
|
+
"make_date": 1583907076,
|
178
|
+
|
179
|
+
"update_date": 1583907076
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
]
|
184
|
+
|
185
|
+
},
|
186
|
+
|
187
|
+
{
|
188
|
+
|
189
|
+
"name": "商品名",
|
190
|
+
|
191
|
+
"sales_price": 12345,
|
192
|
+
|
193
|
+
"id": 14923〜〜〜〜,
|
194
|
+
|
195
|
+
"image_url": "https://img21.shop-pro.jp/PA01444/833/product/14923〜〜〜〜.png?cmsp_timestamp=20200311002302",
|
196
|
+
|
197
|
+
"pickups": [
|
198
|
+
|
199
|
+
{
|
200
|
+
|
201
|
+
"pickup_type": 0,
|
202
|
+
|
203
|
+
"order_num": null,
|
204
|
+
|
205
|
+
"make_date": 1583847904,
|
206
|
+
|
207
|
+
"update_date": 1583847904
|
208
|
+
|
209
|
+
}
|
210
|
+
|
211
|
+
]
|
212
|
+
|
213
|
+
}
|
214
|
+
|
215
|
+
],
|
216
|
+
|
217
|
+
"meta": {
|
218
|
+
|
219
|
+
"total": 3,
|
220
|
+
|
221
|
+
"limit": 3,
|
222
|
+
|
223
|
+
"offset": 0
|
224
|
+
|
225
|
+
}
|
226
|
+
|
227
|
+
}
|
192
228
|
|
193
229
|
```
|
1
JSONを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -103,3 +103,91 @@
|
|
103
103
|
|
104
104
|
|
105
105
|
上記2件の解決方法がわかると助かります。
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
jsonの内容は以下になります。
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
```json
|
114
|
+
|
115
|
+
Array
|
116
|
+
|
117
|
+
(
|
118
|
+
|
119
|
+
[products] => Array
|
120
|
+
|
121
|
+
(
|
122
|
+
|
123
|
+
[0] => Array
|
124
|
+
|
125
|
+
(
|
126
|
+
|
127
|
+
[name] => 商品名
|
128
|
+
|
129
|
+
[sales_price] =>
|
130
|
+
|
131
|
+
[id] => 12345 ID番号
|
132
|
+
|
133
|
+
[image_url] => https://img21.shop-pro.jp/〜〜
|
134
|
+
|
135
|
+
[pickups] => Array
|
136
|
+
|
137
|
+
(
|
138
|
+
|
139
|
+
[0] => Array
|
140
|
+
|
141
|
+
(
|
142
|
+
|
143
|
+
[pickup_type] => 0
|
144
|
+
|
145
|
+
[order_num] =>
|
146
|
+
|
147
|
+
[make_date] => 1584023875
|
148
|
+
|
149
|
+
[update_date] => 1584023875
|
150
|
+
|
151
|
+
)
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
)
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
)
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
[1] => Array
|
164
|
+
|
165
|
+
(
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
〜略〜
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
)
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
[meta] => Array
|
178
|
+
|
179
|
+
(
|
180
|
+
|
181
|
+
[total] => 3
|
182
|
+
|
183
|
+
[limit] => 3
|
184
|
+
|
185
|
+
[offset] => 0
|
186
|
+
|
187
|
+
)
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
)
|
192
|
+
|
193
|
+
```
|