|
@@ -213,6 +213,11 @@ class Returngoods extends Start_Controller {
|
|
|
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 =[
|
|
|
"cate_one"=> $post['cate_one'],
|