|
@@ -91,7 +91,7 @@ class AyrShareController extends BaseController |
|
@@ -91,7 +91,7 @@ class AyrShareController extends BaseController |
|
91
|
$this->response('同步绑定失败');
|
91
|
$this->response('同步绑定失败');
|
|
92
|
}
|
92
|
}
|
|
93
|
//执行数据库操作
|
93
|
//执行数据库操作
|
|
94
|
- $ayrShareLogic->ayr_share_add($res);
|
94
|
+ $ayrShareLogic->ayr_share_save($res);
|
|
95
|
$this->response('success');
|
95
|
$this->response('success');
|
|
96
|
}
|
96
|
}
|
|
97
|
|
97
|
|
|
@@ -108,15 +108,17 @@ class AyrShareController extends BaseController |
|
@@ -108,15 +108,17 @@ class AyrShareController extends BaseController |
|
108
|
'id.required' => 'ID不能为空'
|
108
|
'id.required' => 'ID不能为空'
|
|
109
|
]);
|
109
|
]);
|
|
110
|
$info = $ayrShareLogic->ayr_share_info();
|
110
|
$info = $ayrShareLogic->ayr_share_info();
|
|
111
|
- $data = [
|
111
|
+ if(!empty($info['title'])){
|
|
|
|
112
|
+ $data = [
|
|
112
|
// 'title'=>$info['title'],
|
113
|
// 'title'=>$info['title'],
|
|
113
|
- 'profileKey'=>$info['profile_key']
|
|
|
|
114
|
- ];
|
|
|
|
115
|
- //发送请求删除社交用户
|
|
|
|
116
|
- $ayrShareHelper = new AyrShareHelper();
|
|
|
|
117
|
- $res = $ayrShareHelper->deleted_profiles($data);
|
|
|
|
118
|
- if($res['status'] == 'fail'){
|
|
|
|
119
|
- $this->response('同步删除失败');
|
114
|
+ 'profileKey'=>$info['profile_key']
|
|
|
|
115
|
+ ];
|
|
|
|
116
|
+ //发送请求删除社交用户
|
|
|
|
117
|
+ $ayrShareHelper = new AyrShareHelper();
|
|
|
|
118
|
+ $res = $ayrShareHelper->deleted_profiles($data);
|
|
|
|
119
|
+ if($res['status'] == 'fail'){
|
|
|
|
120
|
+ $this->response('同步删除失败');
|
|
|
|
121
|
+ }
|
|
120
|
}
|
122
|
}
|
|
121
|
$ayrShareLogic->ayr_share_del();
|
123
|
$ayrShareLogic->ayr_share_del();
|
|
122
|
$this->response('success');
|
124
|
$this->response('success');
|