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

+ 1 - 1
app/Http/Controllers/Api/V1/AlbumController.php

xqd
@@ -1377,7 +1377,7 @@ class AlbumController extends Controller
         }
         $select_info = ['goods_id' => $data['product_id']];
         if ($userAuth->up_agent_id != 0) {
-            $agent = AlbumAgentModel::where('id'. 'up_agent_id')->first();
+            $agent = AlbumAgentModel::where('id', $userAuth->up_agent_id)->first();
             $agent->favoriteCount++;
             $agent->interactive++;
             $agent->newCount = $agent->pointCount + $agent->favoriteCount + $agent->callCount + $agent->share_times + $agent->get_count;