...
|
...
|
@@ -240,19 +240,20 @@ class Index extends Api |
|
|
$order_sn = Db::name('baoxiudan')->order('id desc')->limit(1)->where('order_sn', 'like', '%' . $xitong . '%')->value('order_sn');
|
|
|
$arr = explode('-', $order_sn);
|
|
|
dump($arr[3]);
|
|
|
if (empty($id)) {
|
|
|
if (empty($arr[3])) {
|
|
|
$num = '001';
|
|
|
} else {
|
|
|
if (strlen($id) == 1) {
|
|
|
$num = '00' . $id;
|
|
|
if (strstr('00', $arr[3])) {
|
|
|
echo $arr[3];
|
|
|
}
|
|
|
if (strlen($id) == 2) {
|
|
|
$num = '0' . $id;
|
|
|
if (strstr('0', $arr[3])) {
|
|
|
echo $arr[3];
|
|
|
}
|
|
|
if (strlen($id) > 2) {
|
|
|
$num = $id;
|
|
|
if (!strstr('0', $arr[3])) {
|
|
|
echo $arr[3];
|
|
|
}
|
|
|
}
|
|
|
die;
|
|
|
$up_time = substr($param['up_time'], 0, 10);
|
|
|
$data = [
|
|
|
'createtime' => time(),
|
...
|
...
|
|