mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-10 11:52:49 +08:00
新增订单生成函数
This commit is contained in:
@@ -36,7 +36,6 @@ function json_message($data = [], $code = 0, $msg = '')
|
||||
$msg = $data;
|
||||
$data = [];
|
||||
}
|
||||
|
||||
} else if ($data instanceof Url) {
|
||||
$data = [
|
||||
'jump_to_url' => (string)$data
|
||||
@@ -258,3 +257,9 @@ function check_permission($key,$admin_id = null)
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
function get_order_sn($start = '', $end = '')
|
||||
{
|
||||
return $start . date('YmdHis') . mt_rand(1000, 9999) . $end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user