|
@@ -502,12 +502,13 @@ class orderSn
|
|
|
|
|
|
|
|
public static function getLiveOrderSn()
|
|
public static function getLiveOrderSn()
|
|
|
{
|
|
{
|
|
|
|
|
+ $prefix = 'ZB';
|
|
|
$respond = LiveOrderSnClass::add(['id' => null]);
|
|
$respond = LiveOrderSnClass::add(['id' => null]);
|
|
|
$id = $respond['id'] ?? 0;
|
|
$id = $respond['id'] ?? 0;
|
|
|
if (empty($id)) {
|
|
if (empty($id)) {
|
|
|
util::fail('单号没有生成');
|
|
util::fail('单号没有生成');
|
|
|
}
|
|
}
|
|
|
- return $id;
|
|
|
|
|
|
|
+ return $prefix . $id;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|