[]]); } /** * 分享商品 * @return \think\response\Json */ public function shareUser() { $userId = Session::get('user_id'); if (empty($userId)) { return $this->renderJson(config('status.not_logged'), 'Log in please!'); } $goodsId = $this->request->param('goodsId'); if (empty($goodsId)){ return $this->renderError('Invalid goods'); } $encryptUserId = encrypt($userId); $url = url('/index/index/productDetail?goodsId=' . $goodsId . '&key=' . $encryptUserId); //todo 发邮件 return $this->renderSuccess([]); } }