dyjh %!s(int64=6) %!d(string=hai) anos
pai
achega
f64092cdca
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/Http/Controllers/Api/V1/AlbumController.php

+ 2 - 0
app/Http/Controllers/Api/V1/AlbumController.php

xqd xqd
@@ -306,6 +306,7 @@ class AlbumController extends Controller
                 $userAuth->up_agent_id = 0;
             }
             $userAuth->save();
+            $user['up_agent_id'] = $userAuth->up_agent_id;
             $token = $userAuth->createToken($userAuth->id . '-' . $userAuth->openid)->accessToken;
             return $this->api(compact('token', 'user'));
         } else {
@@ -476,6 +477,7 @@ class AlbumController extends Controller
 
 
 
+
     /**
      * @api {get} /api/album/goods-detail 商品详细(goods-detail)
      * @apiDescription 商品列表(goods-detail)