|
...
|
...
|
@@ -176,17 +176,6 @@ class ReplaceHtmlLogic extends BaseLogic |
|
|
|
if($info === false){
|
|
|
|
$this->fail('当前数据不存在');
|
|
|
|
}
|
|
|
|
if($info['source'] == 0){//当前数据是替换的所有页面
|
|
|
|
$data = $this->sourceTypeInfo($info['project_id']);
|
|
|
|
$typeInfo = $data[$this->param['name'] ?? '所有页面'];
|
|
|
|
if($typeInfo['source'] != 0){//回滚页面
|
|
|
|
$info['source'] = $typeInfo['source'];
|
|
|
|
$info['is_custom'] = $typeInfo['is_custom'];
|
|
|
|
$info['is_list'] = $typeInfo['is_list'];
|
|
|
|
$replaceId = $this->saveResultReplaceHtml($info);
|
|
|
|
return $this->success(['id'=>$replaceId]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$replaceId = $this->saveResultReplaceHtml($info);
|
|
|
|
return $this->success(['id'=>$replaceId]);
|
|
|
|
}
|
...
|
...
|
|