作者 lyh

gx

... ... @@ -14,7 +14,7 @@ use App\Models\AyrShare\AyrShare as AyrShareModel;
class AyrShareController extends BaseController
{
//生成名称前缀
const TITLE = 'global_so:';
const TITLE = 'global_so_';
/**
* @name :(社交列表)lists
* @author :lyh
... ... @@ -41,9 +41,13 @@ class AyrShareController extends BaseController
$share_info = $ayrShareHelper->get_profiles_users($info['profile_key']);
if(isset($share_info['activeSocialAccounts'])){
$str = json_encode($share_info['activeSocialAccounts']);
$ayrShareLogic->ayr_share_edit(['bind_plat_from'=>$str]);
if($str != $info['bind_plat_from']){
$res = $ayrShareLogic->ayr_share_edit(['bind_plat_from'=>$str]);
}else{
$res = false;
}
}
$this->response('success');
$this->response('success',Code::SUCCESS,['is_true'=>$res]);
}
/**
* @name :(创建ayr_share账户)create_account
... ... @@ -53,7 +57,7 @@ class AyrShareController extends BaseController
*/
public function create_account(AyrShareLogic $ayrShareLogic){
$param = [
'title'=>self::TITLE.$this->param['name'],
'title'=>self::TITLE.$this->user['project_id'].':'.$this->param['name'],
];
//发送请求注册社交用户
$ayrShareHelper = new AyrShareHelper();
... ...