作者 李美松

Merge branch 'develop' into lms

@@ -62,12 +62,14 @@ class AyrShareController extends BaseController @@ -62,12 +62,14 @@ class AyrShareController extends BaseController
62 if(isset($share_info['activeSocialAccounts'])){ 62 if(isset($share_info['activeSocialAccounts'])){
63 $str = json_encode($share_info['activeSocialAccounts']); 63 $str = json_encode($share_info['activeSocialAccounts']);
64 if($str != $info['bind_platforms']){ 64 if($str != $info['bind_platforms']){
65 - $res = $ayrShareLogic->ayr_share_edit(['bind_platforms'=>$str],$this->param['id']); 65 + $ayrShareLogic->ayr_share_edit(['bind_platforms'=>$str],$this->param['id']);
  66 + $res = true;
66 }else{ 67 }else{
67 $res = false; 68 $res = false;
68 } 69 }
69 }else{ 70 }else{
70 - $res = $ayrShareLogic->ayr_share_edit(['bind_platforms'=>''],$this->param['id']); 71 + $ayrShareLogic->ayr_share_edit(['bind_platforms'=>''],$this->param['id']);
  72 + $res = true;
71 } 73 }
72 $this->response('success',Code::SUCCESS,['is_true'=>$res]); 74 $this->response('success',Code::SUCCESS,['is_true'=>$res]);
73 } 75 }