|
@@ -230,11 +230,10 @@ class User extends Controller
|
|
|
|
|
|
public function shareUserV1()
|
|
|
{
|
|
|
- $userId = 1;
|
|
|
- /* $userId = Session::get('user_id');
|
|
|
- if (empty($userId)) {
|
|
|
- return $this->renderJson(config('status.not_logged'), 'Log in please!');
|
|
|
- }*/
|
|
|
+ $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)) {
|