|
@@ -161,6 +161,9 @@ class Returngoods extends Start_Controller {
|
|
|
if(empty($post['recorder'])){
|
|
|
echo json_encode(array('msg'=>'登记人名字必须填写!请填写','success'=>false));exit;
|
|
|
}
|
|
|
+ if(empty($post['email'])){
|
|
|
+ echo json_encode(array('msg'=>'订单邮箱必须填写!请填写','success'=>false));exit;
|
|
|
+ }
|
|
|
$time = date("Y-m-d H:i:s",time());
|
|
|
$type = $this->logic_order->getType("number = '".$post['number']."'");
|
|
|
//如果是tiktok的平台 需要添加紧急程度 和售后评价等级
|
|
@@ -189,7 +192,8 @@ class Returngoods extends Start_Controller {
|
|
|
'jjcd'=>empty($post['jjcd'])?0:$post['jjcd'],
|
|
|
'shpjxx'=>empty($post['shpjxx'])?0:$post['shpjxx'],
|
|
|
"create_time"=>$time,
|
|
|
- "update_time"=>$time
|
|
|
+ "update_time"=>$time,
|
|
|
+ 'email'=>$post['email'],
|
|
|
];
|
|
|
if($id = $this->returngoods->insert($insert_data))
|
|
|
{
|
|
@@ -213,10 +217,10 @@ class Returngoods extends Start_Controller {
|
|
|
$order_no = str_replace('%23','#',$order_no);
|
|
|
$id = isset($arg_array[1])?$arg_array[1]:0;
|
|
|
if($id > 0){
|
|
|
- $order_info = $this->logic_order->getInfo("id = ".$id." and orderinfo = '".$order_no."'",'id,orderinfo,number,shop');
|
|
|
+ $order_info = $this->logic_order->getInfo("id = ".$id." and orderinfo = '".$order_no."'",'id,orderinfo,number,shop,email');
|
|
|
|
|
|
}else{
|
|
|
- $order_info = $this->logic_order->getInfo("orderinfo = '".$order_no."'",'id,orderinfo,number,shop');
|
|
|
+ $order_info = $this->logic_order->getInfo("orderinfo = '".$order_no."'",'id,orderinfo,number,shop,email');
|
|
|
}
|
|
|
|
|
|
|