Commit f58b3ab1 authored by liuyuzhen's avatar liuyuzhen

下单相关

parent bec0d172
...@@ -915,11 +915,7 @@ class OrderConfirmUtil { ...@@ -915,11 +915,7 @@ class OrderConfirmUtil {
public function makeOrderSn($pay_id) { public function makeOrderSn($pay_id) {
//记录生成子订单的个数,如果生成多个子订单,该值会累加 //记录生成子订单的个数,如果生成多个子订单,该值会累加
static $num; static $num;
if (empty($num)) { $num = rand(0,99);
$num = 1;
} else {
$num ++;
}
return (date('y',time()) % 9+1) . sprintf('%013d', $pay_id) . sprintf('%02d', $num); 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