From 9441d0705c37d799fe3da283b1d5655f3a6eaedf Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 2 Aug 2024 16:07:41 +0800 Subject: [PATCH] 1 --- webapp/controller/BigwheelController.class.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/webapp/controller/BigwheelController.class.php b/webapp/controller/BigwheelController.class.php index 63bf642f..f2571f0e 100644 --- a/webapp/controller/BigwheelController.class.php +++ b/webapp/controller/BigwheelController.class.php @@ -358,6 +358,9 @@ class BigwheelController extends BaseAuthedController { $info = array( 'drawed_times' => $data['drawed_times'], 'total_times' => self::MAX_DRAW_TIMES, + 'single_src_cost' => $priceInfo['price_single'], + 'double_src_cost' => $priceInfo['price_double'], + 'double_cost' => $priceInfo['price_double'] * $priceInfo['discount_double'], 'single_cost' => $priceInfo['price_single'] * $priceInfo['discount_single'], 'double_cost' => $priceInfo['price_double'] * $priceInfo['discount_double'], 'items1' => array(), @@ -443,27 +446,32 @@ class BigwheelController extends BaseAuthedController { $elements = array(); array_push($elements, array( 'ele_type' => 2, + 'color' => '#ffffff', 'lang_key' => 'Marquee_rewards_get_1', - "lang_params" => array(), + 'lang_params' => array(), )); array_push($elements, array( 'ele_type' => 1, - "text" => myself()->_getUserInfo(array('name'))['name'], + //'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(), + 'lang_params' => array(), )); array_push($elements, array( 'ele_type' => 2, + 'color' => '#ff3f3f', 'lang_key' => $itemMeta['name'], - "lang_params" => array(), + 'lang_params' => array(), )); array_push($elements, array( 'ele_type' => 2, + 'color' => '#ffffff', 'lang_key' => 'Marquee_rewards_get_3', - "lang_params" => array(), + 'lang_params' => array(), )); error_log(json_encode($elements)); $content = myself()->_callServiceStatic('NoticeService', 'buildCustom', $elements);