|
@@ -57,11 +57,11 @@ class Subscribe extends Base
|
|
|
//判断分类是否有
|
|
|
$old_cate_one_id = $cate_one_id = Db::name('goods_cate')->where('title',$v[1])->value('id');
|
|
|
$old_cate_two_id = $cate_two_id = Db::name('goods_cate')->where('title',$v[2])->value('id');
|
|
|
- echo $old_cate_one_id;exit();
|
|
|
if(empty($cate_one_id)){
|
|
|
$cate_one_id = Db::name('goods_cate')->getLastInsID(array('title'=>$v[0]));
|
|
|
$cate_one_id = Db::name('goods_cate')->getLastInsID(array('title'=>$v[1],'level'=>2,'pid'=>$cate_one_id));
|
|
|
}
|
|
|
+ echo $cate_two_id;exit();
|
|
|
if(empty($cate_two_id)){
|
|
|
$cate_two_id = Db::name('goods_cate')->getLastInsID(array('title'=>$v[1],'level'=>2,'pid'=>$cate_one_id));
|
|
|
}
|