作者 lyh

变更数据

@@ -77,7 +77,11 @@ class ShareUser extends Command @@ -77,7 +77,11 @@ class ShareUser extends Command
77 } 77 }
78 //删除用户第三方配置 78 //删除用户第三方配置
79 if(!empty($v['profile_key'])){ 79 if(!empty($v['profile_key'])){
80 - $this->del_profiles($v); 80 + $res = $this->del_profiles($v);
  81 + if($res === false){
  82 + //删除失败-跳过
  83 + continue;
  84 + }
81 } 85 }
82 //更新数据库 86 //更新数据库
83 $this->save_ayr_share($ayr_share_model,$v); 87 $this->save_ayr_share($ayr_share_model,$v);
@@ -99,8 +103,8 @@ class ShareUser extends Command @@ -99,8 +103,8 @@ class ShareUser extends Command
99 ]; 103 ];
100 $res = $ayr_share_helper->deleted_profiles($data_profiles); 104 $res = $ayr_share_helper->deleted_profiles($data_profiles);
101 if($res['status'] == 'fail'){ 105 if($res['status'] == 'fail'){
102 - echo '第三方删除失败';  
103 - return true; 106 + echo '第三方删除失败'.json_encode($data_profiles,true);
  107 + return false;
104 } 108 }
105 return true; 109 return true;
106 } 110 }