no message
This commit is contained in:
parent
b233037210
commit
deca843139
@ -192,9 +192,22 @@ class Arma extends Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$aSchemaPro = json_decode($oArticleSchema->schema_pro, true);
|
||||||
|
|
||||||
|
$ii = 0;
|
||||||
|
foreach ($aSchemaPro as $aSchemaProRow) {
|
||||||
|
if ($aSchemaProRow["type"] == "photo") {
|
||||||
|
foreach ($aSchemaProRow["data"] as $sSchemaProRowData) {
|
||||||
|
$sFilePath = env("dir_base")."public/".$sSchemaProRowData;
|
||||||
|
$sImgA = $this->imgPathByUrl($sFilePath);
|
||||||
|
$ii += $this->imgDelByPath($sImgA);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$oArticleSchema->delete();
|
$oArticleSchema->delete();
|
||||||
|
|
||||||
$sMsg = "ok,同时删除了{$i}张图片。";
|
$sMsg = "ok,同时删除了{$i}张原始图片,和{$ii}张pro图片。";
|
||||||
|
|
||||||
return $sMsg;
|
return $sMsg;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user