Commit f58b3ab1 authored by liuyuzhen's avatar liuyuzhen

下单相关

parent bec0d172
......@@ -915,11 +915,7 @@ class OrderConfirmUtil {
public function makeOrderSn($pay_id) {
//记录生成子订单的个数,如果生成多个子订单,该值会累加
static $num;
if (empty($num)) {
$num = 1;
} else {
$num ++;
}
$num = rand(0,99);
return (date('y',time()) % 9+1) . sprintf('%013d', $pay_id) . sprintf('%02d', $num);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment