|
@@ -144,9 +144,14 @@ class Returngoods extends Start_Controller {
|
|
|
echo json_encode(array('msg'=>'店铺信息异常!','success'=>false));exit;
|
|
|
}
|
|
|
if(empty($post['cate_one'])){
|
|
|
- echo json_encode(array('msg'=>'一级分类缺失!请填写','success'=>false));exit;
|
|
|
+ echo json_encode(array('msg'=>'原因一级分类缺失!请填写','success'=>false));exit;
|
|
|
|
|
|
}
|
|
|
+ if(in_array($post['cate_one'],[1,3])){
|
|
|
+ if(empty($post['cate_two'])){
|
|
|
+ echo json_encode(array('msg'=>'原因二级分类缺失!请填写','success'=>false));exit;
|
|
|
+ }
|
|
|
+ }
|
|
|
$time = date("Y-m-d H:i:s",time());
|
|
|
$insert_data =[
|
|
|
"number"=>$post['number'],
|