wufeng 2 anos atrás
pai
commit
1cf81e298a
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      app/admin/controller/Goodup.php
  2. 1 1
      app/common.php

+ 1 - 1
app/admin/controller/Goodup.php

@@ -2521,7 +2521,7 @@ class Goodup extends Base
         //计算毛利率
         $budget = get_budget($good['cat_id'],$param['relaComNo'],$param['platform_id']);
 
-        $top_cat_id = made($good['id']);//获取所有分类
+        $top_cat_id = made($good['cat_id']);//获取所有分类
         $top_cat_id = isset($top_cat_id[0]['id']) ? $top_cat_id[0]['id'] : 0;//获取顶级分类id
 
         $sale_cost_fee = 0;

+ 1 - 1
app/common.php

@@ -457,7 +457,7 @@ if (function_exists('made') == false) {
         if (Cache::has($key)) return Cache::get($key);
         else {
             $rs = get_cat_data($cat_id);
-            Cache::set($key, $rs, 3600 * 24 * 30);
+            Cache::set($key, $rs, 3600 * 24);
             return $rs;
         }
 //    $str = Db::name('cat')->where(['id'=>$var])->find();