Commit b53699a0 authored by hujun's avatar hujun

修改事务

parent c1985ac7
...@@ -41,19 +41,13 @@ class ADistrict extends BaseModel ...@@ -41,19 +41,13 @@ class ADistrict extends BaseModel
$agents = new AAgents(); $agents = new AAgents();
$agents_data['district_id'] = $id; $agents_data['district_id'] = $id;
$agents_data['level'] = 30; $agents_data['level'] = 30;
$agents_edit = $agents->editData($agents_data, $agents_id,'id'); $agents->editData($agents_data, $agents_id,'id');
if ($agents_edit) {
$resutlt = $id; $resutlt = $id;
$this->commit(); $this->commit();
} else { } else {
$resutlt = false; $resutlt = false;
$this->rollback(); $this->rollback();
} }
} else {
$resutlt = false;
$this->rollback();
}
return $resutlt; return $resutlt;
} }
......
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