mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 03:22:51 +08:00
新增订单生成函数
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user