success('', ChatLogic::getChatRecord($this->userId)); } /** * @notes 聊天配置 * @return \think\response\Json * @author 段誉 * @date 2022/3/14 15:01 */ public function chatConfig() { $result = CommonChatLogic::getConfig(); return $this->success($result['msg'], [], $result['code']); } /** * @notes 商品详情 * @return \think\response\Json * @author 段誉 * @date 2022/3/24 14:23 */ public function goods() { $params = (new ChatGoodsValidate())->goCheck(); $result = CommonChatLogic::getChatGoodsDetail($params); return $this->success('', $result); } }