正在显示
1 个修改的文件
包含
11 行增加
和
9 行删除
| @@ -27,17 +27,19 @@ class AyrShareController extends BaseController | @@ -27,17 +27,19 @@ class AyrShareController extends BaseController | ||
| 27 | $share_list = $ayrShareModel->platforms; | 27 | $share_list = $ayrShareModel->platforms; |
| 28 | $lists = $ayrShareModel->lists($this->map,$this->page,$this->row,'id',['id','name','title','profile_key','bind_platforms','operator_id','created_at','updated_at']); | 28 | $lists = $ayrShareModel->lists($this->map,$this->page,$this->row,'id',['id','name','title','profile_key','bind_platforms','operator_id','created_at','updated_at']); |
| 29 | foreach ($lists['list'] as $k => $v){ | 29 | foreach ($lists['list'] as $k => $v){ |
| 30 | - if(!empty($v['profile_key'])){ | ||
| 31 | - $ayrShareHelper = new AyrShareHelper(); | ||
| 32 | - $share_info = $ayrShareHelper->get_profiles_users($v['profile_key']); | ||
| 33 | - if(isset($share_info['activeSocialAccounts'])){ | ||
| 34 | - $str = json_encode($share_info['activeSocialAccounts']); | ||
| 35 | - if($str != $v['bind_platforms']){ | 30 | +// if(!empty($v['profile_key'])){ |
| 31 | +// $ayrShareHelper = new AyrShareHelper(); | ||
| 32 | +// $share_info = $ayrShareHelper->get_profiles_users($v['profile_key']); | ||
| 33 | +// if(isset($share_info['activeSocialAccounts'])){ | ||
| 34 | +// $str = json_encode($share_info['activeSocialAccounts']); | ||
| 35 | +// if($str != $v['bind_platforms']){ | ||
| 36 | +// $ayrShareLogic->ayr_share_edit(['bind_platforms'=>$str]); | ||
| 37 | +// } | ||
| 38 | +// } | ||
| 39 | +// } | ||
| 40 | + $str = json_encode(["facebook","fbg","gmb","instagram","linkedin","pinterest","reddit","telegram","tiktok","twitter","youtube"]); | ||
| 36 | $ayrShareLogic->ayr_share_edit(['bind_platforms'=>$str]); | 41 | $ayrShareLogic->ayr_share_edit(['bind_platforms'=>$str]); |
| 37 | } | 42 | } |
| 38 | - } | ||
| 39 | - } | ||
| 40 | - } | ||
| 41 | $lists['share_list'] = $share_list; | 43 | $lists['share_list'] = $share_list; |
| 42 | $this->response('列表',Code::SUCCESS,$lists); | 44 | $this->response('列表',Code::SUCCESS,$lists); |
| 43 | } | 45 | } |
-
请 注册 或 登录 后发表评论