From ea9172d2c0f62cbaecf9071747cd0e77001e8beb Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Thu, 21 Sep 2023 10:25:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E9=A2=9D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/logic/Zone.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/app/logic/Zone.php b/app/logic/Zone.php index 9fdb1e3..e00eaaa 100644 --- a/app/logic/Zone.php +++ b/app/logic/Zone.php @@ -360,16 +360,18 @@ class Zone } $amount = round($selectedPattern['amount']); $pinyin = PinyinNumber::getPinyin($amount,true); + $amount_format = number_format($amount); + $image_url = get_image_url($selectedPattern['image']); $data[$i][] = [ - 'amount' => $amount, + 'amount' => $amount_format, 'pinyin' => $pinyin, - 'image' => get_image_url($selectedPattern['image']) + 'image' => $image_url ]; $save_data[$i][] = [ 'id' => $selectedPattern['id'], - 'amount' => $amount, + 'amount' => $amount_format, 'pinyin' => $pinyin, - 'image' => get_image_url($selectedPattern['image']) + 'image' => $image_url ]; } @@ -445,16 +447,17 @@ class Zone # 金额拼音 $amount = round($selectedPattern['amount']); $pinyin = PinyinNumber::getPinyin($amount,true); + $amount_format = number_format($amount); # 返回给用户数据 $data[$i][] = [ - 'amount' => $amount, + 'amount' => $amount_format, 'pinyin' => $pinyin, 'image' => $numberImage ]; # 保存到系统数据 $save_data[$i][] = [ 'id' => $selectedPattern['id'], - 'amount' => $amount, + 'amount' => $amount_format, 'pinyin' => $pinyin, 'image' => $numberImage ];