|
@@ -1067,7 +1067,7 @@ class Customer extends Start_Controller {
|
|
|
$orderinfo = $this->input->post('orderinfo',true);
|
|
|
$post['shop'] = $sp['id'];
|
|
|
$post['user'] = $sp['shopuser'];
|
|
|
- $post['number'] = $sp['shortname'].'-'.substr(date('ymd',time()),1).'-'.(substr(strval($num+1+1000),1,3));//编号
|
|
|
+ $post['number'] = $sp['shortname'].'-'.date('ymd',time()).'-'.(substr(strval($num+1+1000),1,3));//编号
|
|
|
if($orderinfo != "")
|
|
|
{
|
|
|
$ordefin = $this->fullorder->get_orderinfo($orderinfo);
|
|
@@ -2072,7 +2072,7 @@ class Customer extends Start_Controller {
|
|
|
$ddpost['type'] = 1;//发货仓库
|
|
|
$ddpost['capital'] = 3;//资金支付状况,全部付款
|
|
|
$num = $this->fullorder->find_count('gtime = "'.date('Ymd',$dtime).'" and shop = '.$shopid);
|
|
|
- $ddpost['number'] = $shop['shortname'].'-'.substr(date('ymd',$dtime),1).'-'.(substr(strval($num+1+1000),1,3));//编号
|
|
|
+ $ddpost['number'] = $shop['shortname'].'-'.date('ymd',$dtime).'-'.(substr(strval($num+1+1000),1,3));//编号
|
|
|
$ddpost['orderinfo'] = preg_replace('/[^0-9]/', '', $value['0']);//订单号
|
|
|
$d = $this->fullorder->get_orderinfo($ddpost['orderinfo']);
|
|
|
if(isset($d['id']))
|