修复同个广告位被两个时间段保存后,因有一个时间段调整不能满足投放时间,而不能自动删除的BUG

This commit is contained in:
cloud 2020-06-26 01:40:32 +08:00
parent 1268d75b3e
commit 4af17c7e21
1 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,8 @@ class ajax extends appadmin {
$sqlupd = true;
}
//获取sql执行结果查看是否存在错误
if($error = $this->tsql->error()){
$error = $this->tsql->error();
if($error){
$elstr = $error;
// 清楚掉已存在,但修改后无法达到要求的广告位
if($sqlupd){