From 57b3ec4193567d3b7770012f3663bd495fe979ae Mon Sep 17 00:00:00 2001 From: songliang Date: Tue, 11 Jul 2023 11:15:02 +0800 Subject: [PATCH] ... --- webapp/controller/ShopController.class.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 0b94d1ed..653e0c89 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -50,10 +50,6 @@ use models\BcOrder; use services\LogService; use services\ShopAddItemService; -use function phpcommon\bnAdd_s; -use function phpcommon\bnDiv_s; -use function phpcommon\bnInit; - if (!function_exists('array_column')) { function array_column($arr2, $column_key) { @@ -421,7 +417,7 @@ class ShopController extends BaseAuthedController $order_id_base = date('YmdHis') . "10000000"; $divIdx = ($lastId) % 9999999; - $order_id = bnAdd_s($order_id_base, $divIdx); + $order_id = phpcommon\bnAdd_s($order_id_base, $divIdx); $test = SqlHelper::update($conn, 't_web2_order', array('idx' => $lastId), array('order_id' => $order_id)); if (!$test) { $this->_rspErr(5, "start purchase failed");