Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into bate
正在显示
3 个修改的文件
包含
5 行增加
和
5 行删除
| @@ -240,8 +240,8 @@ class ProductController extends BaseController | @@ -240,8 +240,8 @@ class ProductController extends BaseController | ||
| 240 | } | 240 | } |
| 241 | $v['status_text'] = Product::statusMap()[$v['status']] ?? ''; | 241 | $v['status_text'] = Product::statusMap()[$v['status']] ?? ''; |
| 242 | //获取当前用户选择的模版 | 242 | //获取当前用户选择的模版 |
| 243 | - $template_id = $this->getTemplateId(Bemplate::SOURCE_PRODUCT,BTemplate::IS_DETAIL); | ||
| 244 | - $v['is_renovation'] = $this->getIsRenovation(Bemplate::SOURCE_PRODUCT,BTemplate::IS_DETAIL,$template_id,$v['id']); | 243 | + $template_id = $this->getTemplateId(BTemplate::SOURCE_PRODUCT,BTemplate::IS_DETAIL); |
| 244 | + $v['is_renovation'] = $this->getIsRenovation(BTemplate::SOURCE_PRODUCT,BTemplate::IS_DETAIL,$template_id,$v['id']); | ||
| 245 | $v['url'] = $this->user['domain'].$v['route']; | 245 | $v['url'] = $this->user['domain'].$v['route']; |
| 246 | //获取当前数据扩展字段及值 | 246 | //获取当前数据扩展字段及值 |
| 247 | $v['extend'] = $this->getExtendInfo($v['id']); | 247 | $v['extend'] = $this->getExtendInfo($v['id']); |
| @@ -418,8 +418,8 @@ class ProjectLogic extends BaseLogic | @@ -418,8 +418,8 @@ class ProjectLogic extends BaseLogic | ||
| 418 | 'role_menu'=>implode(',',$ids), | 418 | 'role_menu'=>implode(',',$ids), |
| 419 | 'project_id'=>$project_id, | 419 | 'project_id'=>$project_id, |
| 420 | 'type'=>1, | 420 | 'type'=>1, |
| 421 | - 'operator_id'=>$this->manager['id'], | ||
| 422 | - 'create_id'=>$this->manager['id'], | 421 | + 'operator_id'=>0, |
| 422 | + 'create_id'=>0, | ||
| 423 | ]; | 423 | ]; |
| 424 | $roleModel->add($data); | 424 | $roleModel->add($data); |
| 425 | } | 425 | } |
| @@ -119,7 +119,7 @@ class ProjectServer extends BaseService | @@ -119,7 +119,7 @@ class ProjectServer extends BaseService | ||
| 119 | * @method :post | 119 | * @method :post |
| 120 | * @time :2023/12/29 9:34 | 120 | * @time :2023/12/29 9:34 |
| 121 | */ | 121 | */ |
| 122 | - public function initModule($project_id){ | 122 | + public static function initModule($project_id){ |
| 123 | $info = DB::connection('custom_mysql')->table('gl_custom_module')->first(); | 123 | $info = DB::connection('custom_mysql')->table('gl_custom_module')->first(); |
| 124 | if(empty($info)){ | 124 | if(empty($info)){ |
| 125 | $data = [ | 125 | $data = [ |
-
请 注册 或 登录 后发表评论