浏览代码

获取有赞分类信息

wufeng 2 年之前
父节点
当前提交
4960d657bf
共有 1 个文件被更改,包括 1 次插入3 次删除
  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;
-
     }
 }