diff --git a/common/helpers/order_helper.php b/common/helpers/order_helper.php index 17d522b1..3128f1cd 100644 --- a/common/helpers/order_helper.php +++ b/common/helpers/order_helper.php @@ -18,7 +18,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); * */ if ( ! function_exists('create_order_no')) { - function create_order_no($city_id = 350200, $source = '', $pay_type = 1, $order_type = 1) + function create_order_no($city_id = 350200, $source = '') { switch ($source) { @@ -35,7 +35,7 @@ if ( ! function_exists('create_order_no')) $source_id = sprintf("%02d", 0); } - return $city_id . $source_id . $pay_type . $order_type . date('Ymd') . sprintf("%06d", rand(1,999999)); + return $city_id . $source_id . date('mdHis') . sprintf("%06d", rand(1,999999)); } }