This commit is contained in:
xiaoyu
2023-07-15 20:27:00 +08:00
parent 8ebf1f92e3
commit 9449bced34
+2 -2
View File
@@ -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));
}
}