diff --git a/app/Controller/Api/V1/Group/GiftController.php b/app/Controller/Api/V1/Group/GiftController.php index 7bf086a54bcc2bb92c4f1fde9e107750f7100145..71d87e7f236d158f4d060dd9d3207e64577d9bea 100644 --- a/app/Controller/Api/V1/Group/GiftController.php +++ b/app/Controller/Api/V1/Group/GiftController.php @@ -219,6 +219,7 @@ class GiftController extends CController } $j['follow_status'] = $follow_status; $j['is_fans'] = $is_fans; + $j['mine_id'] = data_get($model, 'mine_id',''); $return[] = $j; } } else { @@ -266,6 +267,8 @@ class GiftController extends CController } $j['follow_status'] = $follow_status; $j['is_fans'] = $is_fans; + $j['mine_id'] = data_get($model, 'mine_id',''); + $return[] = $j; } } diff --git a/app/Service/GiftService.php b/app/Service/GiftService.php index 24c86c9ebe27d7614b02fb18fcf870ffdbbd858a..8b43cafe0a044931740c6e3348531cd240ba9c44 100644 --- a/app/Service/GiftService.php +++ b/app/Service/GiftService.php @@ -136,6 +136,7 @@ class GiftService extends BaseService if (!empty($idnum)) { if (!isset($idnums[$idnum])) { $idnums[$idnum]['points'] = 0; + $idnums[$idnum]['mine_id'] = data_get($v, 'mine_id', ''); $idnums[$idnum]['player_id'] = $playerId; $idnums[$idnum]['head_img'] = $headImg; $idnums[$idnum]['follow_status'] = $follow_status; @@ -145,6 +146,7 @@ class GiftService extends BaseService $idnums[$idnum]['points'] += $points; } else { $idnums[$k]['points'] = empty($points)? 0: $points; + $idnums[$k]['mine_id'] = data_get($v, 'mine_id', ''); $idnums[$k]['player_id'] = $playerId; $idnums[$k]['head_img'] = $headImg; $idnums[$k]['is_fans'] = $is_fans;