Browse Source

获取有赞分类信息

wufeng 2 năm trước cách đây
mục cha
commit
4960d657bf
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      app/common.php

+ 1 - 3
app/common.php

@@ -453,11 +453,9 @@ if(!function_exists('get_yz_cat_info')){
                 ->field('id,yz_cat_id,yz_cat_name,parent_cid')
                 ->where(['yz_cat_id'=>$yz_cat_id,'status'=>1])
                 ->findOrEmpty();
-//            if($rs)  \think\facade\Cache::set($key,$rs,36000);
+            if($rs)  \think\facade\Cache::set($key,$rs,36000);
         }
-
         return $rs;
-
     }
 }