Total Complexity | 69 |
Total Lines | 1093 |
Duplicated Lines | 0 % |
Changes | 8 | ||
Bugs | 0 | Features | 0 |
Complex classes like TbkService often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use TbkService, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
33 | class TbkService extends Service |
||
34 | { |
||
35 | /** |
||
36 | * 是否为沙箱 |
||
37 | * @var bool |
||
38 | */ |
||
39 | private $sandbox = false; |
||
40 | |||
41 | /** |
||
42 | * TOP分配给应用的 |
||
43 | * @var string |
||
44 | */ |
||
45 | private $app_key, $app_secret = ""; |
||
46 | |||
47 | /** |
||
48 | * API接口名称 |
||
49 | * @var string |
||
50 | */ |
||
51 | private $method = ''; |
||
52 | |||
53 | /** |
||
54 | * 签名的摘要算法 |
||
55 | * @var string |
||
56 | */ |
||
57 | private $sign_method = "md5"; |
||
58 | |||
59 | /** |
||
60 | * 需要发送的的参数 |
||
61 | * @var |
||
62 | */ |
||
63 | private $param; |
||
64 | |||
65 | /** |
||
66 | * 响应格式 |
||
67 | * @var string |
||
68 | */ |
||
69 | private $format = "json"; |
||
70 | |||
71 | /** |
||
72 | * API协议版本 |
||
73 | * @var string |
||
74 | */ |
||
75 | private $v = "2.0"; |
||
76 | |||
77 | /** |
||
78 | * 响应内容 |
||
79 | * @var |
||
80 | */ |
||
81 | private $output; |
||
82 | |||
83 | /** |
||
84 | * 是否为沙箱 |
||
85 | * @return $this |
||
86 | */ |
||
87 | public function sandbox(): self |
||
88 | { |
||
89 | $this->sandbox = true; |
||
90 | return $this; |
||
91 | } |
||
92 | |||
93 | /** |
||
94 | * 配置应用的AppKey |
||
95 | * @param string $appKey |
||
96 | * @return $this |
||
97 | */ |
||
98 | public function appKey(string $appKey): self |
||
99 | { |
||
100 | $this->app_key = $appKey; |
||
101 | return $this; |
||
102 | } |
||
103 | |||
104 | /** |
||
105 | * 应用AppSecret |
||
106 | * @param string $appSecret |
||
107 | * @return $this |
||
108 | */ |
||
109 | public function appSecret(string $appSecret): self |
||
110 | { |
||
111 | $this->app_secret = $appSecret; |
||
112 | return $this; |
||
113 | } |
||
114 | |||
115 | /** |
||
116 | * API接口名称 |
||
117 | * @param string $signMethod |
||
118 | * @return $this |
||
119 | */ |
||
120 | public function signMethod(string $signMethod): self |
||
121 | { |
||
122 | $this->sign_method = $signMethod; |
||
123 | return $this; |
||
124 | } |
||
125 | |||
126 | /** |
||
127 | * 请求参数 |
||
128 | * @param array $param |
||
129 | * @return $this |
||
130 | */ |
||
131 | public function param(array $param): self |
||
132 | { |
||
133 | $this->param = $param; |
||
134 | return $this; |
||
135 | } |
||
136 | |||
137 | /** |
||
138 | * 获取配置信息 |
||
139 | * @return $this |
||
140 | */ |
||
141 | private function getConfig(): self |
||
142 | { |
||
143 | $this->app_key = config('dtapp.taobao.tbk.app_key'); |
||
144 | $this->app_secret = config('dtapp.taobao.tbk.app_secret'); |
||
145 | return $this; |
||
146 | } |
||
147 | |||
148 | /** |
||
149 | * 订单查询 - 淘宝客-推广者-所有订单查询 |
||
150 | * https://open.taobao.com/api.htm?spm=a219a.7386797.0.0.263c669aWmp4ds&source=search&docId=43328&docType=2 |
||
151 | * @return $this |
||
152 | */ |
||
153 | public function orderDetailsGet(): self |
||
154 | { |
||
155 | $this->method = 'taobao.tbk.order.details.get'; |
||
156 | return $this; |
||
157 | } |
||
158 | |||
159 | /** |
||
160 | * 订单查询 - 淘宝客-推广者-维权退款订单查询 |
||
161 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=40173&docType=2 |
||
162 | * @return $this |
||
163 | */ |
||
164 | public function relationRefund(): self |
||
165 | { |
||
166 | $this->method = 'taobao.tbk.relation.refund'; |
||
167 | return $this; |
||
168 | } |
||
169 | |||
170 | |||
171 | /** |
||
172 | * 处罚订单 - 淘宝客-推广者-处罚订单查询 |
||
173 | * https://open.taobao.com/api.htm?spm=a219a.7386797.0.0.120a669amFgNIC&source=search&docId=40121&docType=2 |
||
174 | * @return $this |
||
175 | */ |
||
176 | public function dgPunishOrderGet(): self |
||
177 | { |
||
178 | $this->method = 'taobao.tbk.dg.punish.order.get'; |
||
179 | return $this; |
||
180 | } |
||
181 | |||
182 | /** |
||
183 | * 拉新订单&效果 - 淘宝客-推广者-新用户订单明细查询 |
||
184 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=33892&docType=2 |
||
185 | * @return $this |
||
186 | */ |
||
187 | public function DgNewUserOrderGet(): self |
||
188 | { |
||
189 | $this->method = 'taobao.tbk.dg.newuser.order.get'; |
||
190 | return $this; |
||
191 | } |
||
192 | |||
193 | /** |
||
194 | * 拉新订单&效果 - 淘宝客-推广者-拉新活动对应数据查询 |
||
195 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=36836&docType=2 |
||
196 | * @return $this |
||
197 | */ |
||
198 | public function dgNewUserOrderSum(): self |
||
199 | { |
||
200 | $this->method = 'taobao.tbk.dg.newuser.order.sum'; |
||
201 | return $this; |
||
202 | } |
||
203 | |||
204 | /** |
||
205 | * 超级红包发放个数 - 淘宝客-推广者-查询超级红包发放个数 |
||
206 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=47593&docType=2 |
||
207 | * @return $this |
||
208 | */ |
||
209 | public function dgVegasSendReport(): self |
||
210 | { |
||
211 | $this->method = 'taobao.tbk.dg.vegas.send.report'; |
||
212 | return $this; |
||
213 | } |
||
214 | |||
215 | /** |
||
216 | * 活动转链(更新版) - 淘宝客-推广者-官方活动信息获取 |
||
217 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=48340&docType=2 |
||
218 | * @return $this |
||
219 | */ |
||
220 | public function activityInfoGet(): self |
||
221 | { |
||
222 | $this->method = 'taobao.tbk.activity.info.get'; |
||
223 | return $this; |
||
224 | } |
||
225 | |||
226 | /** |
||
227 | * 活动转链 - 淘宝客-推广者-官方活动转链 |
||
228 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=41918&docType=2 |
||
229 | * @return $this |
||
230 | */ |
||
231 | public function activityLinkGet(): self |
||
232 | { |
||
233 | $this->method = 'taobao.tbk.activitylink.get'; |
||
234 | return $this; |
||
235 | } |
||
236 | |||
237 | /** |
||
238 | * 淘口令 - 淘宝客-公用-淘口令生成 |
||
239 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=31127&docType=2 |
||
240 | * @return $this |
||
241 | * @throws DtaException |
||
242 | */ |
||
243 | public function tpWdCreate(): self |
||
244 | { |
||
245 | if (isset($this->param['text']) && strlen($this->param['text']) < 5) { |
||
246 | throw new DtaException('请检查text参数长度'); |
||
247 | } |
||
248 | $this->method = 'taobao.tbk.tpwd.create'; |
||
249 | return $this; |
||
250 | } |
||
251 | |||
252 | /** |
||
253 | * 长短链 - 淘宝客-公用-长链转短链 |
||
254 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=27832&docType=2 |
||
255 | * @return $this |
||
256 | */ |
||
257 | public function spreadGet(): self |
||
258 | { |
||
259 | $this->method = 'taobao.tbk.spread.get'; |
||
260 | return $this; |
||
261 | } |
||
262 | |||
263 | /** |
||
264 | * 聚划算商品搜索接口 |
||
265 | * https://open.taobao.com/api.htm?docId=28762&docType=2&scopeId=16517 |
||
266 | * @return $this |
||
267 | */ |
||
268 | public function itemsSearch(): self |
||
269 | { |
||
270 | $this->method = 'taobao.ju.items.search'; |
||
271 | return $this; |
||
272 | } |
||
273 | |||
274 | /** |
||
275 | * 淘抢购api |
||
276 | * https://open.taobao.com/api.htm?docId=27543&docType=2&scopeId=16517 |
||
277 | * @return $this |
||
278 | */ |
||
279 | public function juTqgGet(): self |
||
280 | { |
||
281 | if (!isset($this->param['fields'])) { |
||
282 | $this->param['fields'] = "click_url,pic_url,reserve_price,zk_final_price,total_amount,sold_num,title,category_name,start_time,end_time"; |
||
283 | } |
||
284 | $this->method = 'taobao.tbk.ju.tqg.get'; |
||
285 | return $this; |
||
286 | } |
||
287 | |||
288 | /** |
||
289 | * 淘礼金 - 淘宝客-推广者-淘礼金创建 |
||
290 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=40173&docType=2 |
||
291 | * @return $this |
||
292 | */ |
||
293 | public function dgVegasTljCreate(): self |
||
294 | { |
||
295 | $this->method = 'taobao.tbk.dg.vegas.tlj.create'; |
||
296 | return $this; |
||
297 | } |
||
298 | |||
299 | /** |
||
300 | * 淘礼金 - 淘宝客-推广者-淘礼金发放及使用报表 |
||
301 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=43317&docType=2 |
||
302 | * @return $this |
||
303 | */ |
||
304 | public function dgVegasTljInstanceReport(): self |
||
305 | { |
||
306 | $this->method = 'taobao.tbk.dg.vegas.tlj.instance.report'; |
||
307 | return $this; |
||
308 | } |
||
309 | |||
310 | /** |
||
311 | * 私域用户管理 - 淘宝客-公用-私域用户邀请码生成 |
||
312 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=38046&docType=2 |
||
313 | * @return $this |
||
314 | */ |
||
315 | public function scInvIteCodeGet(): self |
||
316 | { |
||
317 | $this->method = 'taobao.tbk.sc.invitecode.get'; |
||
318 | return $this; |
||
319 | } |
||
320 | |||
321 | /** |
||
322 | * 私域用户管理 - 淘宝客-公用-私域用户备案信息查询 |
||
323 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=37989&docType=2 |
||
324 | * @return $this |
||
325 | */ |
||
326 | public function scPublisherInfoGet(): self |
||
327 | { |
||
328 | $this->method = 'taobao.tbk.sc.publisher.info.get'; |
||
329 | return $this; |
||
330 | } |
||
331 | |||
332 | /** |
||
333 | * 私域用户管理 - 淘宝客-公用-私域用户备案 |
||
334 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=37988&docType=2 |
||
335 | * @return $this |
||
336 | */ |
||
337 | public function scPublisherInfoSave(): self |
||
338 | { |
||
339 | $this->method = 'taobao.tbk.sc.publisher.info.save'; |
||
340 | return $this; |
||
341 | } |
||
342 | |||
343 | /** |
||
344 | * 商品详情&券详情查询 - 淘宝客-公用-淘宝客商品详情查询(简版) |
||
345 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.178c24advNRYpp&docId=24518&docType=2 |
||
346 | * https://open.alimama.com/#!/function?id=25 |
||
347 | * @return $this |
||
348 | */ |
||
349 | public function itemInfoGet(): self |
||
350 | { |
||
351 | $this->method = 'taobao.tbk.item.info.get'; |
||
352 | return $this; |
||
353 | } |
||
354 | |||
355 | /** |
||
356 | * 商品详情&券详情查询 - 淘宝客-公用-阿里妈妈推广券详情查询 |
||
357 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.178c24advNRYpp&docId=31106&docType=2 |
||
358 | * https://open.alimama.com/#!/function?id=25 |
||
359 | * @return $this |
||
360 | */ |
||
361 | public function couponGet(): self |
||
362 | { |
||
363 | $this->method = 'taobao.tbk.coupon.get'; |
||
364 | return $this; |
||
365 | } |
||
366 | |||
367 | /** |
||
368 | * 商品/店铺搜索 - 淘宝客-推广者-物料搜索 |
||
369 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.178c24advNRYpp&docId=35896&docType=2 |
||
370 | * https://open.alimama.com/#!/function?id=27 |
||
371 | * @return $this |
||
372 | */ |
||
373 | public function dgMaterialOptional(): self |
||
374 | { |
||
375 | $this->method = 'taobao.tbk.dg.material.optional'; |
||
376 | return $this; |
||
377 | } |
||
378 | |||
379 | /** |
||
380 | * 商品/店铺搜索 - 淘宝客-推广者-店铺搜索 |
||
381 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.178c24advNRYpp&docId=24521&docType=2 |
||
382 | * https://open.alimama.com/#!/function?id=27 |
||
383 | * @return $this |
||
384 | */ |
||
385 | public function shopGet(): self |
||
386 | { |
||
387 | if (!isset($this->param['fields'])) { |
||
388 | $this->param['fields'] = "user_id,shop_title,shop_type,seller_nick,pict_url,shop_url"; |
||
389 | } |
||
390 | $this->method = 'taobao.tbk.shop.get'; |
||
391 | return $this; |
||
392 | } |
||
393 | |||
394 | /** |
||
395 | * 商品库/榜单精选 - 淘宝客-推广者-物料精选 |
||
396 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.178c24advNRYpp&docId=33947&docType=2 |
||
397 | * http://wsd.591hufu.com/taokelianmeng/424.html |
||
398 | * https://open.alimama.com/#!/function?id=28 |
||
399 | * @return $this |
||
400 | */ |
||
401 | public function dgOpTiUsMaterial(): self |
||
402 | { |
||
403 | $this->method = 'taobao.tbk.dg.optimus.material'; |
||
404 | return $this; |
||
405 | } |
||
406 | |||
407 | /** |
||
408 | * 图文内容 - 淘宝客-推广者-图文内容输出 |
||
409 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.178c24advNRYpp&docId=31137&docType=2 |
||
410 | * https://open.alimama.com/#!/function?id=30 |
||
411 | * @return $this |
||
412 | */ |
||
413 | public function contentGet(): self |
||
414 | { |
||
415 | $this->method = 'taobao.tbk.content.get'; |
||
416 | return $this; |
||
417 | } |
||
418 | |||
419 | /** |
||
420 | * 图文内容 - 淘宝客-推广者-图文内容效果数据 |
||
421 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.178c24advNRYpp&docId=37130&docType=2 |
||
422 | * https://open.alimama.com/#!/function?id=30 |
||
423 | * @return $this |
||
424 | */ |
||
425 | public function contentEffectGet(): self |
||
426 | { |
||
427 | $this->method = 'taobao.tbk.content.effect.get'; |
||
428 | return $this; |
||
429 | } |
||
430 | |||
431 | |||
432 | /** |
||
433 | * 图文内容 - 淘宝客-推广者-商品出词 |
||
434 | * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.178c24advNRYpp&docId=37538&docType=2 |
||
435 | * @return $this |
||
436 | */ |
||
437 | public function itemWordGet(): self |
||
438 | { |
||
439 | $this->method = 'taobao.tbk.item.word.get'; |
||
440 | return $this; |
||
441 | } |
||
442 | |||
443 | /** |
||
444 | * 淘宝客-推广者-商品链接转换 |
||
445 | * https://open.taobao.com/api.htm?docId=24516&docType=2&scopeId=11653 |
||
446 | * @return $this |
||
447 | */ |
||
448 | public function itemConvert(): self |
||
449 | { |
||
450 | if (!isset($this->param['fields'])) { |
||
451 | $this->param['fields'] = "num_iid,click_url"; |
||
452 | } |
||
453 | $this->method = 'taobao.tbk.item.convert'; |
||
454 | return $this; |
||
455 | } |
||
456 | |||
457 | /** |
||
458 | * 淘宝客-公用-链接解析出商品id |
||
459 | * https://open.taobao.com/api.htm?docId=28156&docType=2 |
||
460 | * @return $this |
||
461 | */ |
||
462 | public function itemClickExtract(): self |
||
463 | { |
||
464 | $this->method = 'taobao.tbk.item.click.extract'; |
||
465 | return $this; |
||
466 | } |
||
467 | |||
468 | /** |
||
469 | * 淘宝客-公用-商品关联推荐 |
||
470 | * https://open.taobao.com/api.htm?docId=24517&docType=2 |
||
471 | * @return $this |
||
472 | */ |
||
473 | public function itemRecommendGet(): self |
||
474 | { |
||
475 | $this->method = 'taobao.tbk.item.recommend.get'; |
||
476 | return $this; |
||
477 | } |
||
478 | |||
479 | /** |
||
480 | * 淘宝客-公用-店铺关联推荐 |
||
481 | * https://open.taobao.com/api.htm?docId=24522&docType=2 |
||
482 | * @return $this |
||
483 | */ |
||
484 | public function shopRecommendGet(): self |
||
485 | { |
||
486 | $this->method = 'taobao.tbk.shop.recommend.get'; |
||
487 | return $this; |
||
488 | } |
||
489 | |||
490 | /** |
||
491 | * 淘宝客-推广者-选品库宝贝信息 |
||
492 | * https://open.taobao.com/api.htm?docId=26619&docType=2 |
||
493 | * @return $this |
||
494 | */ |
||
495 | public function uaTmFavoritesItemGet(): self |
||
496 | { |
||
497 | $this->method = 'taobao.tbk.uatm.favorites.item.get'; |
||
498 | return $this; |
||
499 | } |
||
500 | |||
501 | /** |
||
502 | * 淘宝客-推广者-选品库宝贝列表 |
||
503 | * https://open.taobao.com/api.htm?docId=26620&docType=2 |
||
504 | * @return $this |
||
505 | */ |
||
506 | public function uaTmFavoritesGet(): self |
||
507 | { |
||
508 | $this->method = 'taobao.tbk.uatm.favorites.get'; |
||
509 | return $this; |
||
510 | } |
||
511 | |||
512 | /** |
||
513 | * 淘宝客-服务商-官方活动转链 |
||
514 | * https://open.taobao.com/api.htm?docId=41921&docType=2 |
||
515 | * @return $this |
||
516 | */ |
||
517 | public function scActivityLinkToolGet(): self |
||
518 | { |
||
519 | $this->method = 'taobao.tbk.sc.activitylink.toolget'; |
||
520 | return $this; |
||
521 | } |
||
522 | |||
523 | /** |
||
524 | * 返回Array |
||
525 | * @return array|mixed |
||
526 | * @throws DtaException |
||
527 | */ |
||
528 | public function toArray() |
||
571 | } |
||
572 | |||
573 | /** |
||
574 | * 返回Xml |
||
575 | * @return mixed |
||
576 | * @throws DtaException |
||
577 | */ |
||
578 | public function toXml() |
||
587 | } |
||
588 | |||
589 | /** |
||
590 | * 网络请求 |
||
591 | * @throws DtaException |
||
592 | */ |
||
593 | private function http(): void |
||
594 | { |
||
595 | //生成签名 |
||
596 | $sign = $this->createSign(); |
||
597 | //组织参数 |
||
598 | $strParam = $this->createStrParam(); |
||
599 | $strParam .= 'sign=' . $sign; |
||
600 | //访问服务 |
||
601 | if (empty($this->sandbox)) { |
||
602 | $url = 'http://gw.api.taobao.com/router/rest?' . $strParam; |
||
603 | } else { |
||
604 | $url = 'http://gw.api.tbsandbox.com/router/rest?' . $strParam; |
||
605 | } |
||
606 | $result = file_get_contents($url); |
||
607 | $result = json_decode($result, true); |
||
608 | $this->output = $result; |
||
609 | } |
||
610 | |||
611 | /** |
||
612 | * 签名 |
||
613 | * @return string |
||
614 | * @throws DtaException |
||
615 | */ |
||
616 | private function createSign(): string |
||
634 | } |
||
635 | |||
636 | /** |
||
637 | * 组参 |
||
638 | * @return string |
||
639 | */ |
||
640 | private function createStrParam(): string |
||
641 | { |
||
642 | $strParam = ''; |
||
643 | foreach ($this->param as $key => $val) { |
||
644 | if ($key !== '' && $val !== '') { |
||
645 | $strParam .= $key . '=' . urlencode($val) . '&'; |
||
646 | } |
||
647 | } |
||
648 | return $strParam; |
||
649 | } |
||
650 | |||
651 | /** |
||
652 | * 获取活动物料 |
||
653 | * @return array[] |
||
654 | */ |
||
655 | public function getActivityMaterialIdList(): array |
||
656 | { |
||
657 | return [ |
||
658 | [ |
||
659 | // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628646?_k=tcswm1 |
||
660 | 'name' => '口碑', |
||
661 | 'list' => [ |
||
662 | [ |
||
663 | 'name' => '口碑主会场活动(2.3%佣金起)', |
||
664 | 'material_id' => 1583739244161 |
||
665 | ], |
||
666 | [ |
||
667 | 'name' => '生活服务分会场活动(2.3%佣金起)', |
||
668 | 'material_id' => 1583739244162 |
||
669 | ] |
||
670 | ] |
||
671 | ], |
||
672 | [ |
||
673 | // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628647?_k=hwggf9 |
||
674 | // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10630427?_k=sdet4e |
||
675 | // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10630361?_k=nq6zgt |
||
676 | 'name' => '饿了么', |
||
677 | 'list' => [ |
||
678 | [ |
||
679 | 'name' => '聚合页(6%佣金起)', |
||
680 | 'material_id' => 1571715733668 |
||
681 | ], |
||
682 | [ |
||
683 | 'name' => '新零售(4%佣金起)', |
||
684 | 'material_id' => 1585018034441 |
||
685 | ], |
||
686 | [ |
||
687 | 'name' => '餐饮', |
||
688 | 'material_id' => 1579491209717 |
||
689 | ], |
||
690 | ] |
||
691 | ], |
||
692 | [ |
||
693 | // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10634663?_k=zqgq01 |
||
694 | 'name' => '卡券(饭票)', |
||
695 | 'list' => [ |
||
696 | [ |
||
697 | 'name' => '饿了么卡券(1元以下商品)', |
||
698 | 'material_id' => 32469 |
||
699 | ], |
||
700 | [ |
||
701 | 'name' => '饿了么卡券投放全网商品库', |
||
702 | 'material_id' => 32470 |
||
703 | ], |
||
704 | [ |
||
705 | 'name' => '饿了么卡券(5折以下)', |
||
706 | 'material_id' => 32603 |
||
707 | ], |
||
708 | [ |
||
709 | 'name' => '饿了么头部全国KA商品库', |
||
710 | 'material_id' => 32663 |
||
711 | ], |
||
712 | [ |
||
713 | 'name' => '饿了么卡券招商爆品库', |
||
714 | 'material_id' => 32738 |
||
715 | ], |
||
716 | ] |
||
717 | ], |
||
718 | ]; |
||
719 | } |
||
720 | |||
721 | /** |
||
722 | * 获取官方物料API汇总 |
||
723 | * https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628875?_k=gpov9a |
||
724 | * @return array |
||
725 | */ |
||
726 | public function getMaterialIdList(): array |
||
1126 | ], |
||
1127 | ] |
||
1128 | ], |
||
1129 | ]; |
||
1130 | } |
||
1131 | } |
||
1132 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths