【类 型】:fix 站点表航线锁定操作失败时 错误提示

【原  因】:不应该时提示成功
【过  程】:删掉退出提示成功那一行 不用提示 报异常等事务回滚就行
【影  响】:
This commit is contained in:
tk 2024-08-07 13:38:19 +08:00
parent 4a5e41ec64
commit 4eb9be8e49

View File

@ -573,7 +573,6 @@ class PlaneController extends PublicController
// 如果 $_REQUEST['runing'] 为空字符串 或者null将其设置为 null
$data['runing'] = trim($_REQUEST['runing']) === '' ? null : trim($_REQUEST['runing']);
if (!$rsDb->where($where)->save($data)) {
exit(json_encode(array('status' => 1, 'msg' => '站点航线执行操作成功!')));
throw new Exception('站点航线执行操作失败!');
}