作者 邓超

预热邮件

@@ -76,6 +76,7 @@ class HotMailArchive { @@ -76,6 +76,7 @@ class HotMailArchive {
76 $this->db->delete(listsSql::$table,['id'=>$item['id']]); 76 $this->db->delete(listsSql::$table,['id'=>$item['id']]);
77 } 77 }
78 } 78 }
  79 + return true;
79 }); 80 });
80 81
81 $this->move($fid); 82 $this->move($fid);
@@ -403,12 +403,14 @@ trait DbQuery { @@ -403,12 +403,14 @@ trait DbQuery {
403 try { 403 try {
404 if($call($this->getClient(),...$params)){ 404 if($call($this->getClient(),...$params)){
405 $this->getClient()->commit(); 405 $this->getClient()->commit();
  406 + return true;
406 } 407 }
407 }catch (\Throwable $e){ 408 }catch (\Throwable $e){
408 409
409 } 410 }
410 411
411 $this->getClient()->rollBack(); 412 $this->getClient()->rollBack();
  413 + return false;
412 } 414 }
413 415
414 416