Merge remote-tracking branch 'origin/master' into akun
正在显示
5 个修改的文件
包含
4 行增加
和
10 行删除
| @@ -65,7 +65,7 @@ class ProjectLogic extends BaseLogic | @@ -65,7 +65,7 @@ class ProjectLogic extends BaseLogic | ||
| 65 | public function getProjectInfo($id){ | 65 | public function getProjectInfo($id){ |
| 66 | $info = $this->model->with('payment')->with('deploy_build')->with('deploy_optimize')->with('online_check') | 66 | $info = $this->model->with('payment')->with('deploy_build')->with('deploy_optimize')->with('online_check') |
| 67 | ->with('project_after')->where(['id'=>$id])->first()->toArray(); | 67 | ->with('project_after')->where(['id'=>$id])->first()->toArray(); |
| 68 | - $info['online_check']['name'] = (new Manage())->getName(!empty($info['online_check']['created_manage_id']) ?? ''); | 68 | + $info['online_check']['name'] = (new Manage())->getName($info['online_check']['created_manage_id'] ?? 0); |
| 69 | $info['deploy_optimize']['minor_keywords'] = !empty($info['deploy_optimize']['minor_keywords']) ? json_decode($info['deploy_optimize']['minor_keywords']) : []; | 69 | $info['deploy_optimize']['minor_keywords'] = !empty($info['deploy_optimize']['minor_keywords']) ? json_decode($info['deploy_optimize']['minor_keywords']) : []; |
| 70 | $info['init_domain'] = $this->getInitDomain($info['serve_id'])['domain']; | 70 | $info['init_domain'] = $this->getInitDomain($info['serve_id'])['domain']; |
| 71 | if($info['extend_type'] != 0){ | 71 | if($info['extend_type'] != 0){ |
| @@ -64,8 +64,8 @@ class BlogLogic extends BaseLogic | @@ -64,8 +64,8 @@ class BlogLogic extends BaseLogic | ||
| 64 | $info = $this->model->read(['id'=>$id],['id','url']); | 64 | $info = $this->model->read(['id'=>$id],['id','url']); |
| 65 | if($info['url'] != $route){ | 65 | if($info['url'] != $route){ |
| 66 | $this->addUpdateNotify(RouteMap::SOURCE_BLOG,$route); | 66 | $this->addUpdateNotify(RouteMap::SOURCE_BLOG,$route); |
| 67 | - $this->curlDelRoute(['route'=>$info['url'],'new_route'=>$route]); | ||
| 68 | } | 67 | } |
| 68 | + $this->curlDelRoute(['route'=>$info['url'],'new_route'=>$route]); | ||
| 69 | return true; | 69 | return true; |
| 70 | } | 70 | } |
| 71 | 71 |
| @@ -96,8 +96,8 @@ class NewsLogic extends BaseLogic | @@ -96,8 +96,8 @@ class NewsLogic extends BaseLogic | ||
| 96 | $info = $this->model->read(['id' => $id], ['id', 'url']); | 96 | $info = $this->model->read(['id' => $id], ['id', 'url']); |
| 97 | if ($info['url'] != $route) { | 97 | if ($info['url'] != $route) { |
| 98 | $this->addUpdateNotify(RouteMap::SOURCE_NEWS,$route); | 98 | $this->addUpdateNotify(RouteMap::SOURCE_NEWS,$route); |
| 99 | - $this->curlDelRoute(['route'=>$info['url'],'new_route'=>$route]); | ||
| 100 | } | 99 | } |
| 100 | + $this->curlDelRoute(['route'=>$info['url'],'new_route'=>$route]); | ||
| 101 | return true; | 101 | return true; |
| 102 | } | 102 | } |
| 103 | 103 |
| @@ -332,8 +332,8 @@ class ProductLogic extends BaseLogic | @@ -332,8 +332,8 @@ class ProductLogic extends BaseLogic | ||
| 332 | $info = $this->model->read(['id'=>$id]); | 332 | $info = $this->model->read(['id'=>$id]); |
| 333 | if($info['route'] != $route){ | 333 | if($info['route'] != $route){ |
| 334 | $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT,$route); | 334 | $this->addUpdateNotify(RouteMap::SOURCE_PRODUCT,$route); |
| 335 | - $this->curlDelRoute(['route'=>$info['route'],'new_route'=>$route]); | ||
| 336 | } | 335 | } |
| 336 | + $this->curlDelRoute(['route'=>$info['route'],'new_route'=>$route]); | ||
| 337 | return $route; | 337 | return $route; |
| 338 | } | 338 | } |
| 339 | 339 |
| @@ -39,15 +39,9 @@ class Manage extends Base | @@ -39,15 +39,9 @@ class Manage extends Base | ||
| 39 | public function getName($id){ | 39 | public function getName($id){ |
| 40 | $name = ''; | 40 | $name = ''; |
| 41 | if(!empty($id)){ | 41 | if(!empty($id)){ |
| 42 | - $info = Common::get_user_cache('manager',$id,'A'); | ||
| 43 | - if(empty($info)){ | ||
| 44 | $info = $this->read(['id'=>$id],['id','name']); | 42 | $info = $this->read(['id'=>$id],['id','name']); |
| 45 | if($info !== false){ | 43 | if($info !== false){ |
| 46 | $name = $info['name']; | 44 | $name = $info['name']; |
| 47 | - Common::set_user_cache($info,'manager',$id,'A'); | ||
| 48 | - } | ||
| 49 | - }else{ | ||
| 50 | - $name = $info['name']; | ||
| 51 | } | 45 | } |
| 52 | } | 46 | } |
| 53 | return $name; | 47 | return $name; |
-
请 注册 或 登录 后发表评论