新增订单生成函数

This commit is contained in:
augushong
2020-10-06 12:46:00 +08:00
parent f42dd54294
commit c756fe2b60

View File

@@ -36,7 +36,6 @@ function json_message($data = [], $code = 0, $msg = '')
$msg = $data; $msg = $data;
$data = []; $data = [];
} }
} else if ($data instanceof Url) { } else if ($data instanceof Url) {
$data = [ $data = [
'jump_to_url' => (string)$data 'jump_to_url' => (string)$data
@@ -258,3 +257,9 @@ function check_permission($key,$admin_id = null)
return false; return false;
} }
function get_order_sn($start = '', $end = '')
{
return $start . date('YmdHis') . mt_rand(1000, 9999) . $end;
}