摘要: 1.使用事务添加数据: public function create() { if($this->validate()) { $trans = Yii::$app->db->beginTransaction(); $admin = new Admin(); try { $admin->setAttr 阅读全文
posted @ 2020-01-02 14:11 离岸少年 阅读(288) 评论(0) 推荐(0)