|
@@ -459,7 +459,18 @@ class Home extends Base { |
|
@@ -459,7 +459,18 @@ class Home extends Base { |
459
|
*/
|
459
|
*/
|
460
|
public function move(){
|
460
|
public function move(){
|
461
|
$this->moveCopy(function (Mail $mailInstance,$uid,$origin_folder,$to_origin_folder){
|
461
|
$this->moveCopy(function (Mail $mailInstance,$uid,$origin_folder,$to_origin_folder){
|
|
|
462
|
+ try {
|
462
|
return $mailInstance->move($uid,$origin_folder,$to_origin_folder);
|
463
|
return $mailInstance->move($uid,$origin_folder,$to_origin_folder);
|
|
|
464
|
+ }catch (\Throwable $e){
|
|
|
465
|
+ if(app()->request('move_err_copy')){
|
|
|
466
|
+ // 复制成功
|
|
|
467
|
+ if($mailInstance->copy($uid,$origin_folder,$to_origin_folder)){
|
|
|
468
|
+ return $mailInstance->deleted($uid,$origin_folder);
|
|
|
469
|
+ }
|
|
|
470
|
+ }
|
|
|
471
|
+ }
|
|
|
472
|
+ return false;
|
|
|
473
|
+
|
463
|
});
|
474
|
});
|
464
|
}
|
475
|
}
|
465
|
|
476
|
|