|
@@ -54,6 +54,7 @@ class StoreExchangeOrder extends BaseModel
|
|
|
$data = ($data = $model->page((int)$where['page'], (int)$where['limit'])->select()) && count($data) ? $data->toArray() : [];
|
|
|
foreach ($data as &$v) {
|
|
|
$v['nickname'] = User::where('uid', $v['uid'])->value('nickname');
|
|
|
+ $v['giftnickname'] = User::where('uid', $v['gift_uid'])->value('nickname');
|
|
|
$v['status_name'] = $v['status'] == 1 ? "已使用" : "未使用";
|
|
|
$_info = StoreOrderCartInfo::where('cart_id', $v['cart_id'])->field('cart_info')->select();
|
|
|
$_info = count($_info) ? $_info->toArray() : [];
|