作者 李美松

v6优化程序 OA绑定AICC 优化程序

@@ -92,11 +92,11 @@ class ProjectAssociationController extends BaseController @@ -92,11 +92,11 @@ class ProjectAssociationController extends BaseController
92 } catch (\Exception $exception) { 92 } catch (\Exception $exception) {
93 DB::rollBack(); 93 DB::rollBack();
94 // 数据错误,请重试 94 // 数据错误,请重试
95 - $this->response('error'); 95 + $this->response('error', Code::SERVER_ERROR);
96 } 96 }
97 if (is_null($isRes)) { 97 if (is_null($isRes)) {
98 // 请开启AICC绑定 98 // 请开启AICC绑定
99 - $this->response('success'); 99 + $this->response('success', Code::SERVER_ERROR);
100 } 100 }
101 $redis_key = 'aicc_friend_lists_' . (int)env('AICC_WECHAT_USER_ID'); 101 $redis_key = 'aicc_friend_lists_' . (int)env('AICC_WECHAT_USER_ID');
102 $result = isset($cache) ? false : redis_get($redis_key); 102 $result = isset($cache) ? false : redis_get($redis_key);