setter
parent
9cc57fe64e
commit
aa7d3eeb08
|
@ -1003,8 +1003,9 @@ class User extends Base
|
||||||
$domain = $this->request->domain();
|
$domain = $this->request->domain();
|
||||||
|
|
||||||
$res = OrderRepository::getInstance()->mine($userId, $tag, $page, $size);
|
$res = OrderRepository::getInstance()->mine($userId, $tag, $page, $size);
|
||||||
$res['list'] = $res['list']->each(function ($item) use ($domain) {
|
$orderStatusTextList = OrderRepository::getInstance()->orderStatusTextList();
|
||||||
$item->skus->each(function ($sku) use ($domain) {
|
$res['list'] = $res['list']->each(function ($item) use ($domain,$orderStatusTextList) {
|
||||||
|
$item->skus->each(function ($sku) use ($domain,$orderStatusTextList) {
|
||||||
if (!$sku->spec_text) {
|
if (!$sku->spec_text) {
|
||||||
$sku->spec_text = [];
|
$sku->spec_text = [];
|
||||||
$sku->spec_info = [];
|
$sku->spec_info = [];
|
||||||
|
@ -1015,7 +1016,9 @@ class User extends Base
|
||||||
}
|
}
|
||||||
$sku->spu_cover = resourceJoin($sku->spu_cover, $domain);
|
$sku->spu_cover = resourceJoin($sku->spu_cover, $domain);
|
||||||
$sku->sku_cover = resourceJoin($sku->sku_cover, $domain);
|
$sku->sku_cover = resourceJoin($sku->sku_cover, $domain);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
$item->status_text = $orderStatusTextList[$item["status"]];
|
||||||
});
|
});
|
||||||
return $this->json(0, 'success', $res);
|
return $this->json(0, 'success', $res);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue