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