合并分支 'master-server' 到 'master'
gx脚本导出产品 查看合并请求 !1142
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -100,17 +100,17 @@ class DownloadProject extends Command | @@ -100,17 +100,17 @@ class DownloadProject extends Command | ||
| 100 | * @time :2023/9/14 13:56 | 100 | * @time :2023/9/14 13:56 |
| 101 | */ | 101 | */ |
| 102 | public function getCategoryList(){ | 102 | public function getCategoryList(){ |
| 103 | - $data = Common::get_user_cache('product_category',$this->user['project_id']); | 103 | + $data = Common::get_user_cache('product_category',1225); |
| 104 | if(empty($data)){ | 104 | if(empty($data)){ |
| 105 | $categoryModel = new Category(); | 105 | $categoryModel = new Category(); |
| 106 | $data = []; | 106 | $data = []; |
| 107 | - $cateList = $categoryModel->list(['project_id'=>$this->user['project_id']],['id','title']); | 107 | + $cateList = $categoryModel->list(['project_id'=>1225],['id','title']); |
| 108 | if(!empty($cateList)){ | 108 | if(!empty($cateList)){ |
| 109 | foreach ($cateList as $value){ | 109 | foreach ($cateList as $value){ |
| 110 | $data[$value['id']] = $value['title']; | 110 | $data[$value['id']] = $value['title']; |
| 111 | } | 111 | } |
| 112 | } | 112 | } |
| 113 | - Common::set_user_cache($data,'product_category',$this->user['project_id']); | 113 | + Common::set_user_cache($data,'product_category',1225); |
| 114 | } | 114 | } |
| 115 | return $data; | 115 | return $data; |
| 116 | } | 116 | } |
-
请 注册 或 登录 后发表评论