Ver Fonte

获取有赞分类信息

wufeng há 2 anos atrás
pai
commit
4960d657bf
1 ficheiros alterados com 1 adições e 3 exclusões
  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;
-
     }
 }