From 55f70f26ba3e1128462393b05d5d33d0feb33449 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Sun, 18 Aug 2024 17:09:38 +0800 Subject: [PATCH] 1 --- webapp/controller/BagController.class.php | 38 ++++++++++++++++++----- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index 73b9aaa5..b0369344 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -455,14 +455,36 @@ class BagController extends BaseAuthedController { } private function sendNotice($itemMeta,$awardNum){ - $elements = array( - array( - 'ele_type' => 2, - 'color' => '#ff3f3f', - 'lang_key' => $itemMeta['name'], - 'lang_params' => array(), - ) - ); + $elements = array(); + array_push($elements, array( + 'ele_type' => 2, + 'color' => '#ffffff', + 'lang_key' => 'Marquee_rewards_get_1', + 'lang_params' => array(), + )); + array_push($elements, array( + 'ele_type' => 1, + //'color' => '#', + 'text' => myself()->_getUserInfo(array('name'))['name'], + )); + array_push($elements, array( + 'ele_type' => 2, + 'color' => '#ffffff', + 'lang_key' => 'Marquee_rewards_get_2', + 'lang_params' => array(), + )); + array_push($elements, array( + 'ele_type' => 2, + 'color' => '#ff3f3f', + 'lang_key' => $itemMeta['name'], + 'lang_params' => array(), + )); + array_push($elements, array( + 'ele_type' => 2, + 'color' => '#ffffff', + 'lang_key' => 'Marquee_rewards_get_3', + 'lang_params' => array(), + )); if ($itemMeta['id'] == V_ITEM_BCEG){ array_push($elements, array( 'ele_type' => 1,