//1.
$_mark=true;
$mySql=M('mySql');
//2.
$mySql->startTrans();
******mysql*****
//3
if($_mark){
$mySql->commit();
}else{
$mySql->rollback();
}
//1.
$_mark=true;
$mySql=M('mySql');
//2.
$mySql->startTrans();
******mysql*****
//3
if($_mark){
$mySql->commit();
}else{
$mySql->rollback();
}