Commit b53699a0 authored by hujun's avatar hujun

修改事务

parent c1985ac7
......@@ -41,15 +41,9 @@ class ADistrict extends BaseModel
$agents = new AAgents();
$agents_data['district_id'] = $id;
$agents_data['level'] = 30;
$agents_edit = $agents->editData($agents_data, $agents_id,'id');
if ($agents_edit) {
$resutlt = $id;
$this->commit();
} else {
$resutlt = false;
$this->rollback();
}
$agents->editData($agents_data, $agents_id,'id');
$resutlt = $id;
$this->commit();
} else {
$resutlt = false;
$this->rollback();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment