|
@@ -48,7 +48,7 @@ class ProjectAssociationController extends BaseController |
|
@@ -48,7 +48,7 @@ class ProjectAssociationController extends BaseController |
|
48
|
$image = request()->post('image', '');
|
48
|
$image = request()->post('image', '');
|
|
49
|
$data = compact('project_id', 'user_id', 'friend_id', 'nickname', 'user_name', 'image');
|
49
|
$data = compact('project_id', 'user_id', 'friend_id', 'nickname', 'user_name', 'image');
|
|
50
|
$this->ProjectAssociationLogic->saveWeChatData($data);
|
50
|
$this->ProjectAssociationLogic->saveWeChatData($data);
|
|
51
|
- $this->response('success');
|
51
|
+ $this->response('绑定成功');
|
|
52
|
}
|
52
|
}
|
|
53
|
|
53
|
|
|
54
|
/**
|
54
|
/**
|
|
@@ -70,15 +70,18 @@ class ProjectAssociationController extends BaseController |
|
@@ -70,15 +70,18 @@ class ProjectAssociationController extends BaseController |
|
70
|
$bool = $this->ProjectAssociationLogic->saveProject($project_id, $status);
|
70
|
$bool = $this->ProjectAssociationLogic->saveProject($project_id, $status);
|
|
71
|
if (empty($bool)) {
|
71
|
if (empty($bool)) {
|
|
72
|
// 保存数据失败
|
72
|
// 保存数据失败
|
|
73
|
- $this->response('error', Code::SERVER_ERROR);
|
73
|
+ $this->response('绑定AICC数据失败!', Code::SERVER_ERROR);
|
|
74
|
}
|
74
|
}
|
|
75
|
} // 关闭状态
|
75
|
} // 关闭状态
|
|
76
|
elseif (!is_null($isRes) && (!is_null($status) && empty($status))) {
|
76
|
elseif (!is_null($isRes) && (!is_null($status) && empty($status))) {
|
|
77
|
- $res = $this->ProjectAssociationLogic->closedState($isRes, $status);
|
|
|
|
78
|
- $this->response($res['message'], $res['code']);
|
77
|
+ $bool = $this->ProjectAssociationLogic->closedState($isRes, $status);
|
|
|
|
78
|
+ if (empty($bool)) {
|
|
|
|
79
|
+ // 关闭aicc绑定失败
|
|
|
|
80
|
+ $this->response('关闭aicc绑定失败!', Code::SERVER_ERROR);
|
|
|
|
81
|
+ }
|
|
79
|
} elseif (is_null($isRes)) {
|
82
|
} elseif (is_null($isRes)) {
|
|
80
|
// 请开启AICC绑定
|
83
|
// 请开启AICC绑定
|
|
81
|
- $this->response('error', Code::SERVER_ERROR);
|
84
|
+ $this->response('success');
|
|
82
|
}
|
85
|
}
|
|
83
|
$cache = isset($cache);
|
86
|
$cache = isset($cache);
|
|
84
|
$result = $this->ProjectAssociationLogic->getAiccWechatLists($isRes, $cache);
|
87
|
$result = $this->ProjectAssociationLogic->getAiccWechatLists($isRes, $cache);
|