正在显示
1 个修改的文件
包含
0 行增加
和
11 行删除
| @@ -176,17 +176,6 @@ class ReplaceHtmlLogic extends BaseLogic | @@ -176,17 +176,6 @@ class ReplaceHtmlLogic extends BaseLogic | ||
| 176 | if($info === false){ | 176 | if($info === false){ |
| 177 | $this->fail('当前数据不存在'); | 177 | $this->fail('当前数据不存在'); |
| 178 | } | 178 | } |
| 179 | - if($info['source'] == 0){//当前数据是替换的所有页面 | ||
| 180 | - $data = $this->sourceTypeInfo($info['project_id']); | ||
| 181 | - $typeInfo = $data[$this->param['name'] ?? '所有页面']; | ||
| 182 | - if($typeInfo['source'] != 0){//回滚页面 | ||
| 183 | - $info['source'] = $typeInfo['source']; | ||
| 184 | - $info['is_custom'] = $typeInfo['is_custom']; | ||
| 185 | - $info['is_list'] = $typeInfo['is_list']; | ||
| 186 | - $replaceId = $this->saveResultReplaceHtml($info); | ||
| 187 | - return $this->success(['id'=>$replaceId]); | ||
| 188 | - } | ||
| 189 | - } | ||
| 190 | $replaceId = $this->saveResultReplaceHtml($info); | 179 | $replaceId = $this->saveResultReplaceHtml($info); |
| 191 | return $this->success(['id'=>$replaceId]); | 180 | return $this->success(['id'=>$replaceId]); |
| 192 | } | 181 | } |
-
请 注册 或 登录 后发表评论