|
|
@@ -569,11 +569,11 @@ class Index extends Controller
|
|
|
* @throws DataNotFoundException
|
|
|
* @return mixed
|
|
|
*/
|
|
|
- public function getAwards()
|
|
|
+ public function getAwardLog()
|
|
|
{
|
|
|
$awards = Db::table('awards_order')->alias('o')
|
|
|
->leftJoin('awards_gift g', 'o.gift_id = g.id')
|
|
|
- ->field(['g.name as giftName', 'o.type', 'o.create_at'])
|
|
|
+ ->field(['g.name as giftName', 'o.type', 'o.create_at', 'o.gift_id'])
|
|
|
->select();
|
|
|
|
|
|
$res = [];
|
|
|
@@ -583,8 +583,10 @@ class Index extends Controller
|
|
|
$type = '排名奖';
|
|
|
}
|
|
|
$res[] = [
|
|
|
+ 'giftId' => $val['gift_id'],
|
|
|
'giftName' => $val['giftName'],
|
|
|
- 'type' => $type,
|
|
|
+ 'typeLabel' => $type,
|
|
|
+ 'type' => $val['type'],
|
|
|
'createAt' => date('y-m-d h:i:s', $val['create_at'])
|
|
|
];
|
|
|
}
|