From aa628ff2dd587b25ad8e0103997f83e2c720e604 Mon Sep 17 00:00:00 2001 From: zm <zm@iemsoft.cn> Date: Tue, 30 Mar 2021 20:00:32 +0800 Subject: [PATCH] 修改提货BUG --- plugins/exchange/forms/api/CodeForm.php | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/plugins/exchange/forms/api/CodeForm.php b/plugins/exchange/forms/api/CodeForm.php index d9214db..2554673 100644 --- a/plugins/exchange/forms/api/CodeForm.php +++ b/plugins/exchange/forms/api/CodeForm.php @@ -56,6 +56,7 @@ $newData[] = [ 'code' => $item->code, + 'card_no' => $item->card_no, 'r_raffled_at' => $item->r_raffled_at, 'last_num' => $last_num, 'status' => $item->status, @@ -93,12 +94,14 @@ throw new \Exception('数据不存在'); } $rewards = CommonModel::getFormatRewards($codeModel->r_rewards); + $card_platform = CommonModel::getLibrary($codeModel->library_id,\Yii::$app->mall->id); return [ 'code' => ApiCode::CODE_SUCCESS, 'msg' => '获取成功', 'data' => [ 'codeModel' => $codeModel, 'rewards' => $rewards, + 'card_platform' => $card_platform ], ]; } catch (\Exception $exception) { -- Gitblit v1.8.0