|
...
|
...
|
@@ -48,7 +48,7 @@ class ProjectAssociationController extends BaseController |
|
|
|
$image = request()->post('image', '');
|
|
|
|
$data = compact('project_id', 'user_id', 'friend_id', 'nickname', 'user_name', 'image');
|
|
|
|
$this->ProjectAssociationLogic->saveWeChatData($data);
|
|
|
|
$this->response('success');
|
|
|
|
$this->response('绑定成功');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -70,15 +70,18 @@ class ProjectAssociationController extends BaseController |
|
|
|
$bool = $this->ProjectAssociationLogic->saveProject($project_id, $status);
|
|
|
|
if (empty($bool)) {
|
|
|
|
// 保存数据失败
|
|
|
|
$this->response('error', Code::SERVER_ERROR);
|
|
|
|
$this->response('绑定AICC数据失败!', Code::SERVER_ERROR);
|
|
|
|
}
|
|
|
|
} // 关闭状态
|
|
|
|
elseif (!is_null($isRes) && (!is_null($status) && empty($status))) {
|
|
|
|
$res = $this->ProjectAssociationLogic->closedState($isRes, $status);
|
|
|
|
$this->response($res['message'], $res['code']);
|
|
|
|
$bool = $this->ProjectAssociationLogic->closedState($isRes, $status);
|
|
|
|
if (empty($bool)) {
|
|
|
|
// 关闭aicc绑定失败
|
|
|
|
$this->response('关闭aicc绑定失败!', Code::SERVER_ERROR);
|
|
|
|
}
|
|
|
|
} elseif (is_null($isRes)) {
|
|
|
|
// 请开启AICC绑定
|
|
|
|
$this->response('error', Code::SERVER_ERROR);
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
$cache = isset($cache);
|
|
|
|
$result = $this->ProjectAssociationLogic->getAiccWechatLists($isRes, $cache);
|
...
|
...
|
|