正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
| @@ -86,9 +86,15 @@ class ProjectAssociationController extends BaseController | @@ -86,9 +86,15 @@ class ProjectAssociationController extends BaseController | ||
| 86 | $this->response('success', Code::SERVER_ERROR); | 86 | $this->response('success', Code::SERVER_ERROR); |
| 87 | } | 87 | } |
| 88 | $cache = isset($cache); | 88 | $cache = isset($cache); |
| 89 | + | ||
| 90 | + try { | ||
| 89 | $search = request()->input('search'); | 91 | $search = request()->input('search'); |
| 90 | // $result = ProjectAssociationServices::getInstance()->getAiccWechatLists($isRes, $app, $cache); | 92 | // $result = ProjectAssociationServices::getInstance()->getAiccWechatLists($isRes, $app, $cache); |
| 91 | $result = ProjectAssociationServices::getInstance()->getWorkChatRoomList($search, $isRes->friend_id); | 93 | $result = ProjectAssociationServices::getInstance()->getWorkChatRoomList($search, $isRes->friend_id); |
| 94 | + }catch (\Exception $e){ | ||
| 95 | + $result = []; | ||
| 96 | + } | ||
| 97 | + | ||
| 92 | $result['info'] = [ | 98 | $result['info'] = [ |
| 93 | 'friend_id' => $isRes->friend_id ?? 0 | 99 | 'friend_id' => $isRes->friend_id ?? 0 |
| 94 | ]; | 100 | ]; |
-
请 注册 或 登录 后发表评论