作者 lyh

ayr绑定账号返回

@@ -64,18 +64,13 @@ class AyrShareController extends BaseController @@ -64,18 +64,13 @@ class AyrShareController extends BaseController
64 $str = json_encode($share_info['activeSocialAccounts']); 64 $str = json_encode($share_info['activeSocialAccounts']);
65 if($str != $info['bind_platforms']){ 65 if($str != $info['bind_platforms']){
66 $ayrShareLogic->ayr_share_edit(['bind_platforms'=>$str],$this->param['id']); 66 $ayrShareLogic->ayr_share_edit(['bind_platforms'=>$str],$this->param['id']);
67 - $res = true;  
68 - }else{  
69 - $res = false;  
70 } 67 }
71 }else{ 68 }else{
72 if(!empty($info['bind_platforms'])){ 69 if(!empty($info['bind_platforms'])){
73 $ayrShareLogic->ayr_share_edit(['bind_platforms'=>''],$this->param['id']); 70 $ayrShareLogic->ayr_share_edit(['bind_platforms'=>''],$this->param['id']);
74 - return true;  
75 } 71 }
76 - $res = false;  
77 } 72 }
78 - $this->response('success',Code::SUCCESS,['is_true'=>$res]); 73 + $this->response('success',Code::SUCCESS,$share_info['activeSocialAccounts'] ?? []);
79 } 74 }
80 /** 75 /**
81 * @name :(创建ayr_share账户)create_account 76 * @name :(创建ayr_share账户)create_account