From 554958b3ce4ad7d49410b57c4b36baabb9d8ae28 Mon Sep 17 00:00:00 2001 From: songliang Date: Sun, 25 Jun 2023 14:06:58 +0800 Subject: [PATCH] ... --- webapp/controller/ShopController.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 5bdad290..14bb6294 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -43,6 +43,16 @@ use mt\Dailyselection; use models\Transaction; use models\BcOrder; +if (!function_exists('array_column')) { + function array_column($arr2, $column_key) { + $data = []; + foreach ($arr2 as $arr) { + $data[] = $arr[$column_key]; + } + return $data; + } +} + class ShopController extends BaseAuthedController {